TOP Contributors

  1. MIKROE (2658 codes)
  2. Alcides Ramos (355 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 (136934 times)
  2. FAT32 Library (70053 times)
  3. Network Ethernet Library (56013 times)
  4. USB Device Library (46328 times)
  5. Network WiFi Library (41936 times)
  6. FT800 Library (41249 times)
  7. GSM click (29040 times)
  8. mikroSDK (26438 times)
  9. PID Library (26435 times)
  10. microSD click (25391 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: 1582 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

Barometer 2 click

0

Barometer 2 Click is a digital barometer on a Click board™. Barometer 2 is equipped with the LPS35HW, an absolute piezoresistive pressure sensor with ceramic, water resistant package, manufactured using a proprietary technology.

[Learn More]

LP WiFi click

0

LP WiFi Click is a compact add-on board that represents an ultra-low-power Wi-Fi solution. This board features the DA16200, a fully integrated Wi-Fi module with ultra-low power consumption, best RF performance, and a comfortable development environment from Dialog Semiconductor.

[Learn More]

SPI Extend click

0

SPI Extend Click is a compact add-on board for applications that require extending the SPI communication bus over a long distance. This board features the LTC4332, an SPI slave extender device, from Analog Devices. Using a ±60V fault protected differential transceiver, the LTC4332 can transmit SPI data, including an interrupt signal, up to 2MHz over two twisted-pair cables.

[Learn More]