How does it work?
ccRF2 Click is based on the CC1120, a high-performance RF transceiver for narrowband systems from Texas Instruments. At the center of the CC1120, there is a fully integrated fractional-N ultra-high-performance frequency synthesizer which brings excellent phase noise performance, providing very high selectivity and blocking performance. This flexible receiver is amplified by a low noise amplifier (LNA) and converted in quadrature (I/Q) to the intermediate frequency (IF), after which high dynamic range ADCs digitize the signals. The transmitter is based on direct synthesis of the RF frequency, so to use the spectrum effectively, the CC1120 has extensive data filtering and shaping in TX mode to support high throughput data communication in narrowband channels. The CC1120 also brings down other techniques like eWOR, sniff mode, antenna diversity, WaveMatch, and more.
Antenna diversity can increase performance if enabled in a multipath environment, while the CC1120 automatically controls the required onboard antenna switch. The AGC module of the CC1120 returns an estimate of the signal strength (RSSI) received by the antenna. In addition, there is also an integrated temperature sensor for FS calibration. The transmission is done by one of the supported modulations (2-FSK, 2-GFSK, 4-FSK, MSK, and OOK). Besides the support for retransmissions, and automatic acknowledgment of received packages, the CC1120 also has TCXO, power modes, built-in coding gain support for increased range and robustness, and many more.
The CC1120 uses an SPI serial interface to communicate with the host MCU. In addition, this Click board™ features an RST pin for resetting the CC1120 and a few user-configurable pins labeled GP0, GP2, and GP3 that can be used for monitoring different signals or setting modes. The Clear Channel Assessment (CCA) indicates if the current channel is free or busy with two flags available on GP2 and GP0 while the current CCA state is viewable on GP3. In synchronous serial operation mode, GP0 is explicitly used for serial data input for TX operation.
The ccRF 2 Click uses u.Fl connector for adding the appropriate u.Fl Sub-GHz antenna, offered by Mikroe, and it shouldn’t be powered up without one according to the used frequency. Also, this Click board™ features an 868/915MHz impedance-matched, multi-function, integrated ceramic passive component switch for the Texas Instruments CC1120 chipset.
This Click board™ can only be operated with a 3.3V logic voltage level. The board must perform appropriate logic voltage level conversion before using MCUs with different logic levels. However, the Click board™ comes equipped with a library containing functions and an example code that can be used as a reference for further development.
Specifications
Type
ccRF,Sub-1 GHz Transceievers
Applications
Can be used for home and building automation, industrial monitoring and control, wireless metering, and more
On-board modules
CC1120 – RF transceiver for narrowband systems from Texas Instruments
Key Features
High performance, excellent receiver sensitivity, low phase noise, high spectral efficiency, low power consumption, configurable data rates, various modulation formats, worldwide compliance, broad peripherals and support functions, and more
Interface
GPIO,SPI
Feature
No ClickID
Compatibility
mikroBUS™
Click board size
S (28.6 x 25.4 mm)
Input Voltage
3.3V
Pinout diagram
This table shows how the pinout on ccRF2 Click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Onboard settings and indicators
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | – | Power LED Indicator |
ccRF2 Click electrical specifications
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | – | 3.3 | – | V |
Operating frequency | 868 | – | 928 | MHz |
Receiver Sensitivity | -110 | – | -127 | dBm |
Output Power | – | – | +16 | dBm |
Data Rates | 0 | – | 200 | kbps |
Software Support
We provide a library for the ccRF 2 Click as well as a demo application (example), developed using Mikroe compilers. The demo can run on all the main Mikroe development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
Library Description
This library contains API for ccRF 2 Click driver.
Key functions
-
Function receives RX data from the transmit module of the CC1120 single-chip radio transceiver.
-
Function sends TX data to the receive module of the CC1120 single-chip radio transceiver.
-
Function sets RX mode of the CC1120 single-chip radio transceiver on the ccRF 2 Click board.
Example Description
This example demonstrates the use of ccRF 2 click board.
void application_task ( void )
{
#ifdef DEMO_APP_RECEIVER
uint8_t num_bytes = ccrf2_receive_rx_data( &ccrf2, &rx_buffer[ 0 ] );
if ( num_bytes )
{
log_printf( &logger, " Received message: " );
for ( uint8_t cnt = 3; cnt < rx_buffer[ 0 ]; cnt++ )
{
log_printf( &logger, "%c", rx_buffer[ cnt ] );
}
log_printf( &logger, " Packet number: %u", ccrf2.packet_counter );
log_printf( &logger, "rn----------------------rn" );
}
#endif
#ifdef DEMO_APP_TRANSMITTER
ccrf2_send_tx_data( &ccrf2, TEXT_TO_SEND, strlen( TEXT_TO_SEND ) );
log_printf( &logger, " Sent message: MikroErn" );
log_printf( &logger, " Packet number: %urn", ccrf2.packet_counter );
log_printf( &logger, "----------------------rn" );
Delay_ms( 2000 );
#endif
}
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.ccRf2
Additional notes and informations
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. A UART terminal is available in all Mikroe compilers.
mikroSDK
This Click board™ is supported with mikroSDK – Mikroe 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.
For more information about mikroSDK, visit the official page.