micrfrx
2.1.0.0
|
MICRF RX Click is a compact add-on board for high-sensitivity applications, including remote keyless entry, tire pressure monitoring systems, and remote actuation systems. This board features the MICRF220, an ASK/OOK 315MHz receiver with RSSI and squelch capabilities from Microchip to offer top-notch RF performance. This super-heterodyne, image-reject RF receiver provides a -110dBm sensitivity at 1kbps and a 0.1% Bit Error Rate (BER), supporting adjustable demodulator filter bandwidths for bit rates up to 14.4kbps.
We provide a library for the MICRF RX 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 RX Click driver.
micrfrx_cfg_setup
Config Object Initialization function. micrfrx_init
Initialization function. micrfrx_enable_device
This function enables device by setting the SHD pin to low logic state. micrfrx_wait_ready
This function waits for all training bytes to arrive which indicates data ready. micrfrx_read_packet
This function reads data packet and stores it in a packet_buf only if the MICRFRX_PREAMBLE bytes are received successfully. This example demonstrates the use of MICRF RX click board by reading and parsing packet messages received from the transmitter.
The demo application is composed of two sections :
Initializes the driver and enables the device and squelch mode.
Waits for a data ready indication, then reads all packet data, verifies the CRC bytes in a packet, and displays its data as well as the RSSI value on the USB UART.
The MICRF TX click board is a compatible transmitter for the MICRF RX 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 MICRFRX_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.