Skip to content
This repository was archived by the owner on Jun 9, 2025. It is now read-only.

Commit b3dda64

Browse files
committed
MikroSDK library for USB UART 3 click
0 parents  commit b3dda64

File tree

228 files changed

+45859
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

228 files changed

+45859
-0
lines changed

README.md

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
![MikroE](http://www.mikroe.com/img/designs/beta/logo_small.png)
2+
3+
---
4+
5+
# USBUART3 Click
6+
7+
- **CIC Prefix** : USBUART3
8+
- **Author** : Katarina Perendic
9+
- **Verison** : 1.0.0
10+
- **Date** : maj 2018.
11+
12+
---
13+
14+
### Software Support
15+
16+
We provide a library for the USBUART3 Click on our [LibStock](https://libstock.mikroe.com/projects/view/2422/usb-uart-3-click)
17+
page, as well as a demo application (example), developed using MikroElektronika
18+
[compilers](http://shop.mikroe.com/compilers). The demo can run on all the main
19+
MikroElektronika [development boards](http://shop.mikroe.com/development-boards).
20+
21+
**Library Description**
22+
23+
Initializes and defines UART bus driver, and defines driver's functions for comunication (reading and writing) between USB UART 3 clicks.
24+
25+
Key functions :
26+
27+
- ``` void usbuart3_writeByte(uint8_t input) ``` - Write Single Byte
28+
- ``` uint8_t usbuart3_readByte() ``` - Read Single Byte
29+
- ``` uint8_t usbuart3_byteReady() ``` - Check for new byte received
30+
31+
**Examples Description**
32+
33+
The application is composed of three sections :
34+
35+
- System Initialization - Intializes UART module
36+
- Application Initialization - Driver intialization
37+
- Application Task - (code snippet) - Checks if new data byte have received in rx buffer (ready for reading),
38+
and if ready than reads one byte from rx buffer. In second case aplication task writes
39+
message data via UART.
40+
41+
42+
```.c
43+
void applicationTask()
44+
{
45+
char tmp;
46+
uint8_t rdyFlag;
47+
48+
// RECEIVER - UART polling
49+
50+
rdyFlag = usbuart3_byteReady();
51+
52+
if (1 == rdyFlag)
53+
{
54+
tmp = usbuart3_readByte();
55+
mikrobus_logWrite( &tmp, _LOG_BYTE );
56+
}
57+
58+
// TRANSMITER - TX each 2 sec
59+
60+
/* for (tmp = 0; tmp < 9; tmp++)
61+
{
62+
usbuart3_writeByte( MESSAGE_DATA[tmp] );
63+
mikrobus_logWrite( "MESSAGE SENT", _LOG_LINE );
64+
}
65+
Delay_ms(2000);*/
66+
67+
}
68+
```
69+
70+
The full application code, and ready to use projects can be found on our
71+
[LibStock](https://libstock.mikroe.com/projects/view/2422/usb-uart-3-click) page.
72+
73+
Other mikroE Libraries used in the example:
74+
75+
- UART
76+
77+
**Additional notes and informations**
78+
79+
Depending on the development board you are using, you may need
80+
[USB UART click](http://shop.mikroe.com/usb-uart-click),
81+
[USB UART 2 Click](http://shop.mikroe.com/usb-uart-2-click) or
82+
[RS232 Click](http://shop.mikroe.com/rs232-click) to connect to your PC, for
83+
development systems with no UART to USB interface available on the board. The
84+
terminal available in all Mikroelektronika
85+
[compilers](http://shop.mikroe.com/compilers), or any other terminal application
86+
of your choice, can be used to read the message.
87+
88+
---
89+
### Architectures Supported
90+
91+
#### mikroC
92+
93+
| STM | KIN | CEC | MSP | TIVA | PIC | PIC32 | DSPIC | AVR | FT90x |
94+
|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|
95+
| x | x | x | x | x | x | x | x | x | x |
96+
97+
#### mikroBasic
98+
99+
| STM | KIN | CEC | MSP | TIVA | PIC | PIC32 | DSPIC | AVR | FT90x |
100+
|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|
101+
| x | x | x | x | x | x | x | x | x | x |
102+
103+
#### mikroPascal
104+
105+
| STM | KIN | CEC | MSP | TIVA | PIC | PIC32 | DSPIC | AVR | FT90x |
106+
|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|
107+
| x | x | x | x | x | x | x | x | x | x |
108+
109+
---
110+
---

0 commit comments

Comments
 (0)