irda2 2.0.0.0
|
IrDA2 click features the TFDU4101 infrared transceiver module as well as MCP2120 infrared encoder/decoder from Microchip connected with the 7.3728 MHz external crystal. The click is designed to run on either 3.3V or 5V power supply. It communicates with the target board via UART interface and the following mikroBUS™ pins: AN, RST, CS.
We provide a library for the IrDA2 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 IrDA2 Click driver.
irda2_cfg_setup
Config Object Initialization function. irda2_init
Initialization function. irda2_default_cfg
Click Default Configuration function. irda2_generic_write
This function writes a desired number of data bytes by using UART serial interface. irda2_generic_read
This function reads a desired number of data bytes by using UART serial interface. irda2_reset
This function executes a device reset operation. This example demonstrates the use of an IrDA 2 click board by showing the communication between the two click boards.
The demo application is composed of two sections :
Initalizes device and makes an initial log.
Depending on the selected application mode, it reads all the received data or sends the desired text message once per second.
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.