MiWi Click Board
MiWi Click Board
The MiWi Click Board™ is a sub-gigahertz radio transceiver Click Board™, which offers a reliable FSK or OOK communication solution, with the maximum data rates of 40kbps and 16kbps, respectively. The radio transceiver module used on this Click Board™ has plenty of features that make it a perfect choice for compact designs: It has very good reception sensitivity, an onboard PCB antenna, a high level of components integration, built-in packet handling routines with automatic CRC generation, 64 bytes of transmit/receive FIFO buffer, built-in Sync Word recognition, clock/data synchronisation and recovery and many more.
Software Support
We provide a library for the MiWi Click Board™ on our Libstock page, as well as a demo application (example), developed using MikroElektronika compilers and mikroSDK. The provided click library is mikroSDK standard compliant. The demo application can run on all the main MikroElektronika development boards.
Library Description
Library carries generic functions which are enough to have complete control over the MiWi Click Board™.
Key functions
void miwi_writeReg(uint8_t address, uint8_t value)
- Writes data to register
uint8_t miwi_readReg(uint8_t address)
- Reads data from register
void miwi_writeFIFO(uint8_t Data)
- Writes data to FIFO buffer
uint8_t miwi_readFIFO()
- Reads data from FIFO buffer
Example Description
Demo application is modified version of Microchip's application for MRF89XA devices. Application is in the form of a console app with simple UI which allows operations such as register_read or write but also TX and RX routines.
This function (code snippet) continuously transmits predefined packet with delay of 100 ms between each transaction.
void RadioApp_txPredefinedPacket() { uint8_t input; uint8_t tmpPacket[ 6 ] = { 80, 65, 67, 75, 69, 84 }; ConsolePut_constString("Transmitting predefined packet at"); RadioApp_printMiniStatus(PR_TX_MODE); ConsolePut_constString("Press (Ctrl+z) to exit"); ConsolePut_newLine(); while (1) { if (ConsoleGet_ready()) { input = ConsoleGet(); ConsolePut(input); if (input == 26) return; } miwi_sendPacket(&tmpPacket[0], 6); _miwi_rfMode = _MIWI_RF_STANDBY; Delay_ms( 100 ); } }
The full application code, and ready to use projects can be found on our Libstock page.
Other MikroElektronika libraries used in the example:
- SPI
- UART
Additional Notes and Information
Depending on the development board you are using, you may need a 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. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.
MIKROSDK
The MiWi Click Board™ is supported with mikroSDK - MikroElektronika Software Development Kit. To ensure proper operation of mikroSDK compliant click board demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
MiWi Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.