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_mode_setup
This function allows IrDA 2 click mode to be set. irda2_pwr_setup
This function allows IrDA 2 click power mode to be set. irda2_reset
This function executes a device reset operation. This example demonstrates the use of IrDA 2 click boards. The example can perform both roles, transmitter and receiver.
The demo application is composed of two sections :
Initializes UART driver and all used control pins. Also clears the response buffer.
Demonstrates the use of IrDA clicks which can be used as transmitter or receiver. There are four different examples in this project.
Uncomment one of the below macros to select which example will be executed. By default the DEMO_APP_TRANSMITTER_1 example is selected.
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.