TOP Contributors

  1. MIKROE (2751 codes)
  2. Alcides Ramos (372 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (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 (139060 times)
  2. FAT32 Library (71592 times)
  3. Network Ethernet Library (56989 times)
  4. USB Device Library (47330 times)
  5. Network WiFi Library (43006 times)
  6. FT800 Library (42297 times)
  7. GSM click (29777 times)
  8. mikroSDK (27874 times)
  9. PID Library (26858 times)
  10. microSD click (26129 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: 1947 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

Silent Step 3 Click

0

Silent Step 3 Click is the complete integrated bipolar step motor driver solution, rich with many features that allow extremely smooth and silent operation of the connected motor while being able to provide up to 4A peak motor current and withstand up to 30V supply voltage. The specialized TMC2660 IC driver from Trinamic company far exceeds the capabilities of similar step motor drivers that are commonly used.

[Learn More]

PHT click

5

PHT Click is a compact add-on board that contains a PHT combo sensor. This board features the MS8607, a digital combination sensor providing 3 environmental measurements all-in-one: pressure, humidity, and temperature from TE Connectivity Measurement Specialties.

[Learn More]

MAC Address click

1

MAC Address click provides a unique node address for your application. It also has 1Kbit of writable EEPROM memory. MAC Address click carries the 24AA025E64 2K I2C Serial EEPROM with EUI-64 node identity. The click is designed to run on either 3.3V or 5V power supply.

[Learn More]