usbuart2 2.0.0.0
|
USB UART 2 click provides USB isolation and carries the ADUM4160BRWZ USB port isolator. The click is designed to run on either 3.3V or 5V power supply. It communicates with the target microcontroller over UART interface, with additional functionality provided the following pins on the mikroBUS™ line: RST, CS, PWM, INT.
We provide a library for the USBUART2 Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
This library contains API for USBUART2 Click driver.
usbuart2_cfg_setup
Config Object Initialization function. usbuart2_init
Initialization function. usbuart2_pwr_ctrl
This function sets the click turns click on. usbuart2_set_cts
This function sets CTS pin. usbuart2_send_command
This function is used for sending commands. This example reads and processes data from USB UART 2 clicks.
The demo application is composed of two sections :
Initializes driver and power module.
Reads data and echos it back to device and logs it to board.
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. UART terminal is available in all MikroElektronika compilers.