TOP Contributors

  1. MIKROE (2662 codes)
  2. Alcides Ramos (357 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (137028 times)
  2. FAT32 Library (70154 times)
  3. Network Ethernet Library (56032 times)
  4. USB Device Library (46355 times)
  5. Network WiFi Library (41970 times)
  6. FT800 Library (41297 times)
  7. GSM click (29072 times)
  8. mikroSDK (26509 times)
  9. PID Library (26452 times)
  10. microSD click (25439 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
mikroSDK Library

MiWi 2 click

Rating:

0

Author: MIKROE

Last Updated: 2018-02-26

Package Version: 1.0.0.1

mikroSDK Library: 1.0.0.0

Category: Sub-1 GHz Transceivers

Downloaded: 3779 times

Not followed.

License: MIT license  

MiWi 2 click is a sub-gigahertz radio transceiver click board, which offers a reliable FSK or OOK communication solution, with the maximum data rates of 200kbps and 40kbps, respectively.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "MiWi 2 click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "MiWi 2 click" changes.

Do you want to report abuse regarding "MiWi 2 click".

  • Information
  • Comments (0)

mikroSDK Library Blog

MiWi 2 click

MiWi 2 click

Native view of the MiWi 2 click board.

View full image
MiWi 2 click

MiWi 2 click

Front and back view of the MiWi 2 click board.

View full image

Library Description

Library carries generic functions which are enough to have complete control over MiWi click.

Key functions

void miwi2_writeReg(uint8_t address, uint8_t value)- Writes data to the register

uint8_t miwi2_readReg(uint8_t address)- Reads data from the register

void miwi2_writeFIFO(uint8_t Data)- Writes data to the FIFO buffer

uint8_t miwi2_readFIFO()- Reads data from the FIFO buffer

Examples 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;
        }

        miwi2_sendPacket(&tmpPacket[0], 6);
        _miwi2_rfMode = _MIWI2_RF_STANDBY;
        Delay_ms( 100 );
    }
}

Other MikroElektronika libraries used in the example:

  • SPI
  • UART

Additional notes and information

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. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.

 

ALSO FROM THIS AUTHOR

H-Bridge Driver click

0

H-Bridge Driver Click is a compact add-on board that contains an H-bridge gate driver, also known as a full-bridge pre-driver. This board features the MC33883, an H-Bridge gate driver with an integrated charge pump and independent high and low side gate drive channels from NXP Semiconductors.

[Learn More]

EEPROM 6 click

0

EEPROM 6 Click is a compact add-on board that contains a serial EEPROM memory that operates from the 1-Wire interface. This board features the DS28EC20, a 20480-bit EEPROM organized as 80 memory pages of 256 bits each from Analog Devices. As a specific feature, blocks of eight memory pages can be write-protected or put in “EPROM-Emulation” Mode, where bits can only be changed from a 1 to a 0 state. It communicates with MCU at 15.4kbps or 90kbps over the 1-Wire protocol and has a 64-bit registration number that ensures error-free device selection.

[Learn More]

Ambient 21 click

0

Ambient 21 Click is a compact add-on board used to measure the amount of the present ambient light. This board features ams AG's TSL2591, a very-high sensitivity light-to-digital converter that transforms light intensity to a digital signal output capable of the direct I2C interface. It combines one broadband photodiode (visible plus infrared) and one infrared-responding photodiode on a single CMOS integrated circuit, providing a flexible and wide operating range of up to 88klx with an excellent responsivity close to the human eyes' response. The TSL2591 also has a programmable interrupt function and an integrated filter to reduce unwanted IR signals from the environment, improving lux accuracy across various light sources.

[Learn More]