TOP Contributors

  1. MIKROE (2663 codes)
  2. Alcides Ramos (358 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 (137099 times)
  2. FAT32 Library (70236 times)
  3. Network Ethernet Library (56124 times)
  4. USB Device Library (46434 times)
  5. Network WiFi Library (42075 times)
  6. FT800 Library (41387 times)
  7. GSM click (29116 times)
  8. mikroSDK (26562 times)
  9. PID Library (26489 times)
  10. microSD click (25487 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

ISM RX 2 click

Rating:

5

Author: MIKROE

Last Updated: 2020-09-07

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Sub-1 GHz Transceivers

Downloaded: 1601 times

Not followed.

License: MIT license  

ISM RX 2 Click is a compact add-on board that contains a pin configurable, low current, sub-GHz EZRadio® receiver. This board features the Si4356, a standalone Sub-GHz RF receiver IC, from Silicon Labs, which provides a true plug-and-play receive option.

No Abuse Reported

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

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

Do you want to report abuse regarding "ISM RX 2 click".

  • mikroSDK Library 2.0.0.0
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroBasic PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

mikroSDK Library Blog

ISM RX 2 Click

ISM RX 2 Click

Native view of the ISM RX 2 Click board.

View full image
ISM RX 2 Click

ISM RX 2 Click

Front and back view of the ISM RX 2 Click board.

View full image

Library Description

Library provides function for initializing device and control over GPIO pin states.

Key functions:

  • void ismrx2_initialize_device ( void ) - Function for waking up device and reseting it
  • uint8_t ismrx2_get_data_pin_state ( void ) - Function for getting data pin pin state

Examples description

The application is composed of three sections :

  • System Initialization - Initialize GPIO pins and LOG module
  • Application Initialization - Initilize device
  • Application Task - Wait for data pin to go down and starts sampling and waiting for sync word if it's received collect data to buffer till it receive 0 byte
void application_task ( )
{
//---------------------------------------------------------Manchester example
    if ( MANCHESTER_EXAMPLE == example_type )
    {
        if ( ISMRX2_PIN_STATE_LOW == ismrx2_get_data_pin_state() )
        {
            //Collecting data till timeout
            sample_collecter();
            //Filtering data for validation
            filter_sample();
            
            if ( ISMRX2_DEV_OK == valid_data )
            {
                //Extracting manchester data
                man_sort();
                //Extracting bit data
                bit_sort();
                //Extracting decoded data
                data_sort();
                //Logs result if valid data received ( first byte 0xFF )
                if ( ISMRX2_DEV_OK == valid_data )
                {
                    data_tmp =  &data_buf[ 1 ];
                    mikrobus_logWrite( " - RX data: ", _LOG_TEXT );
                    mikrobus_logWrite( data_tmp, _LOG_LINE );
                    mikrobus_logWrite( "*********************", _LOG_LINE );
                }

                Delay_ms( 50 );
            }
            //Resets every counter and flag
            reset_to_default(  );
        }
    }
//-----------------------------------------------------------------------------

//--------------------------------------------------------------- Basic example
    if ( DEFAULT_EXAMPLE == example_type )
    {
        if ( ISMRX2_PIN_STATE_LOW == ismrx2_get_data_pin_state() )
        {
            state = read_rf_data( &data_buf[ 0 ] );
            if ( ISMRX2_DEV_OK == state )
            {
                mikrobus_logWrite( " - RX data: ", _LOG_TEXT );
                mikrobus_logWrite( data_buf, _LOG_LINE );
                mikrobus_logWrite( "*********************", _LOG_LINE );
                Delay_ms( 50 );
            }
        }
    }
//-----------------------------------------------------------------------------
}

Additional Functions :

  • uint8_t read_rf_data ( uint8_t *read_buff ) - Function for reading data from RF antenna till you get 0 byte.
  • void min_max_check ( uint8_t check_b ) - Function for getting max and min sample data values.
  • void bit_sort ( ) - Extracting bit data from manchester buffer.
  • void data_sort ( ) - Extracting data from bit buffer.
  • void man_set_data ( uint16_t smp_cnt, uint8_t man_data ) - Function that sets data to manchester buffer
  • void man_sort ( ) - Function for extracting data from sample buffer.
  • void sample_collecter ( ) - Collecting data from pin.
  • void filter_sample ( ) - Filtering collected data.
  • void reset_to_default ( ) - Resets flags and counters to default values.

Other mikroE Libraries used in the example:

  • UART

Additional notes and informations

Depending on the development board you are using, you may need USB UART clickUSB 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

EVE click - Example

0

This is a sample program which demonstrates the use of EVE click board. EVE click can be used to drive TFT with on board FT800 chip.

[Learn More]

Unique ID click

5

Unique ID click carries DS2401, an enhanced silicon serial number IC. The chip uses 1-wire communications for interfacing with the target board microcontroller.

[Learn More]

Heart Rate click

0

Heart Rate click is a heart rate monitoring and pulse oximetry measuring Click board™. It features an advanced oximeter and heart rate monitoring sensor, which relies on two integrated LEDs, a photosensitive element, and a very accurate and advanced low noise analog front end, to provide clean and accurate readings.

[Learn More]