micrftx
2.1.0.0
|
MICRF TX Click is a compact add-on board designed as a powerful RF transmitter for data transmission over the 315MHz frequency band. This board features the MICRF112, a high-performance RF transmitter IC from Microchip, renowned for its efficiency in operation. This Click boardâ„¢ stands out for its ease of use, requiring only a simple crystal oscillator to set the frequency, and supports both ASK and FSK modulation types with a Phase-Locked Loop (PLL) for stable frequency.
We provide a library for the MICRF TX 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 MICRF TX Click driver.
micrftx_cfg_setup
Config Object Initialization function. micrftx_init
Initialization function. micrftx_send_data
This function builds and sends a packet of data. The packet format is as follows (MSB first, manchester IEEE 802.3): MICRFTX_TRAINING_BYTES, PREABMLE, LEN, DATA_IN, CRC16 (calculated from whole packet excluding training bytes). This example demonstrates the use of MICRF TX Click board by sending a predefined message to the receiver.
The demo application is composed of two sections :
Initialized the driver and logger.
Sends a predefined message every 3 seconds and displays it on the USB UART.
The MICRF RX Click board is a compatible receiver for the MICRF TX Click.
Here are a few steps for troubleshooting if you are experiencing issues running this example:
- Make sure the MICRF TX Click is set to ASK mode with on-board jumpers.
- Check the MCU clock configuration, use an external oscillator instead of the MCU's internal one for better accuracy on manchester data rate delay.
- Measure the actual data rate on the data line and adjust the MICRFTX_MAN_BIT_LEN_US value accordingly.
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.