the stm spirit1 low-power rf transceiver · stm spirit1 low-power rf module: ... fsk in digital...

16
STM SPIRIT1 low-power RF module: overview and implementation Introduction Main features Block diagram Overview about the supported digital modulations Power consumption characterization The Spirit1 on the SC SCXV Formula SAE race car Integrating the Spirit1 on a custom PCB Analog and TLC Electronics - Emilio Fazzoletto - 2015 1 Course: Analog and Telecommunication Electronics Prof: Dante Del Corso Student: Emilio Fazzoletto

Upload: nguyentuyen

Post on 23-Apr-2018

219 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: The STM SPIRIT1 low-power RF transceiver · STM SPIRIT1 low-power RF module: ... FSK In digital modulation, an analog carrier signal is modulated by a discrete signal. ... (ASK) modulation

STM SPIRIT1 low-power RF module: overview and implementation

• Introduction • Main features • Block diagram • Overview about the supported digital modulations • Power consumption characterization • The Spirit1 on the SC SCXV Formula SAE race car • Integrating the Spirit1 on a custom PCB

Analog and TLC Electronics - Emilio Fazzoletto - 2015

1

Course: Analog and Telecommunication Electronics Prof: Dante Del Corso Student: Emilio Fazzoletto

Page 2: The STM SPIRIT1 low-power RF transceiver · STM SPIRIT1 low-power RF module: ... FSK In digital modulation, an analog carrier signal is modulated by a discrete signal. ... (ASK) modulation

Introduction

• The SPIRIT1 is a very low-power RF transceiver, intended for RF wireless applications in the sub-1 GHz band, avaible in a QFN20 4x4 mm package

• It is design to operate in different frequency bands (169, 315, 433, 868, and 915 MHz) with a data rate up to 500kbps with low power consumption

• Its typical applications are WSN, Smart Grids and IoT (Internet of Things) in general

• It integrates the whole system in a singol chip, the only important external component is the antenna

Analog and TLC Electronics - Emilio Fazzoletto - 2015

2

Page 3: The STM SPIRIT1 low-power RF transceiver · STM SPIRIT1 low-power RF module: ... FSK In digital modulation, an analog carrier signal is modulated by a discrete signal. ... (ASK) modulation

Main features

• CRC (cyclic redundancy checks) on the data as well as FEC (Forward Error Correction) encoding/decoding on the packet

• optional automatic acknowledgement, retransmission, and timeout protocol engine

• embedded CSMA/CA (Carrier Sense Multiple Access with Collision Avoidance) engine

• Embedded AES (Advanced Encryption Standard) 128-bit engine

• The SPIRIT1 supports different modulation schemes: 2-FSK, GFSK, OOK, ASK, and MSK

• Transmitted/received data bytes are buffered in two different three-level FIFOs (TX FIFO and RX FIFO), accessible via the SPI interface for host processing

Analog and TLC Electronics - Emilio Fazzoletto - 2015

3

Page 4: The STM SPIRIT1 low-power RF transceiver · STM SPIRIT1 low-power RF module: ... FSK In digital modulation, an analog carrier signal is modulated by a discrete signal. ... (ASK) modulation

Block Diagram The chip integrates the radio transmitter and receiver (including LNA, ADCs, modulator/demodulator and frequency synthesizers) and in addition the digital interface (based on SPI + GPIO) necessary to communicate with a uC (micro-controller)

Analog and TLC Electronics - Emilio Fazzoletto - 2015

4

Page 5: The STM SPIRIT1 low-power RF transceiver · STM SPIRIT1 low-power RF module: ... FSK In digital modulation, an analog carrier signal is modulated by a discrete signal. ... (ASK) modulation

LNA, Mixer, ADC

Analog and TLC Electronics - Emilio Fazzoletto - 2015

• The Low Noise Amplifier, first block of RX chain. The effect of noise from subsequent stages is reduced by the gain of LNA, while the noise of LNA itself is directly injected into the received signal. Thus, it is imperative for LNA to boost signal power while adding as little noise and distortion as possible.

• The mixer brings down the received RF signal to IF signal for ease in further processing like filtering, amplification, and digitization. Two mixers are necessary to realize a QA demodulator.

• Two ADC are placed at the end of the analog receiving chain in order to digitalize the information stream. The digitalized data can then be sent by an external processing unit. No data are provided by STM about the ADCs used in the Spirit1 module.

5

Page 6: The STM SPIRIT1 low-power RF transceiver · STM SPIRIT1 low-power RF module: ... FSK In digital modulation, an analog carrier signal is modulated by a discrete signal. ... (ASK) modulation

PA, Frequency Synthesizer

Analog and TLC Electronics - Emilio Fazzoletto - 2015

• In the transmitting chain a power amplifier convert a low-power radio-frequency signal into a larger signal of significant power in order to drive the antenna. The input is generated by the RF synthesizer, while the output level can be configured between -30 dBm and +11 dBm in 0.5 dB steps

• A frequency synthesizers generate the feeding signal of the PA. The Spirit1 includes a fast startup Freq. Synth. with a settling time of 6 μs and the typical frequency resolution is 33Hz. A crystal connected to XIN and XOUT is used to provide a clock signal to the frequency synthesizer. The allowed clock signal frequency is either 24, 26, 48, or 52 MHz.

6

Page 7: The STM SPIRIT1 low-power RF transceiver · STM SPIRIT1 low-power RF module: ... FSK In digital modulation, an analog carrier signal is modulated by a discrete signal. ... (ASK) modulation

Digital Modulations - FSK

In digital modulation, an analog carrier signal is modulated by a discrete signal. According to one definition of digital signal, the modulated signal is a digital signal, and according to another definition, the modulation is a form of digital-to-analog conversion Binary frequency-shift keying (2-FSK) • Frequency-shift keying (FSK) is a type of frequency

modulation scheme in which digital information is transmitted through discrete frequency changes of a carrier wave (typically a sine wave).

• FSK is the most common form of digital modulation in the high-frequency radio spectrum, and has important applications in telephone circuits

• BFSK uses a pair of discrete frequencies to transmit binary (0s and 1s) information

• The demodulation of a binary FSK signal can be done using very efficient algorithms, even on low-power microcontrollers Analog and TLC Electronics - Emilio

Fazzoletto - 2015 7

Page 8: The STM SPIRIT1 low-power RF transceiver · STM SPIRIT1 low-power RF module: ... FSK In digital modulation, an analog carrier signal is modulated by a discrete signal. ... (ASK) modulation

MSK and GFSK Minimum-shift keying (MSK) • MSK is a type of continuous-phase frequency-shift keying

that was developed in the late 1950s and 1960s • MSK encoding results in a constant-modulus signal

(constant envelope signal) • In MSK the difference between the higher and lower

frequency is identical to half the bit rate: as a result, the modulation index m is 0.5

• A variant of MSK called GMSK is used in the GSM mobile phone standard.

Gaussian frequency-shift keying (GFSK) • GFSK is a type of frequency shift keying modulation that

uses a Gaussian filter to smooth positive/negative frequency deviations, which represent a binary 1 or 0

• It is used by Bluetooth: the minimum deviation is 115 kHz • A GFSK modulator is similar to a FSK modulator, except that

before the baseband waveform (levels −1 and +1) goes into the FSK modulator, it is passed through a Gaussian filter to make the transitions smoother so to limit its spectral width

Analog and TLC Electronics - Emilio Fazzoletto - 2015

8

Page 9: The STM SPIRIT1 low-power RF transceiver · STM SPIRIT1 low-power RF module: ... FSK In digital modulation, an analog carrier signal is modulated by a discrete signal. ... (ASK) modulation

ASK and OOK Amplitude-shift keying (ASK)

• ASK is a form of amplitude modulation that represents digital data as variations in the amplitude of a carrier wave

• ASK uses a finite number of amplitudes, each assigned a unique pattern of binary digits. Usually, each amplitude encodes an equal number of bits. Each pattern of bits forms the symbol that is represented by the particular amplitude

• Like AM, ASK is also linear and sensitive to atmospheric noise, distortions, propagation conditions on different routes

On-off keying (OOK) • OOK denotes the simplest form of (ASK) modulation that

represents digital data as the presence or absence of a carrier wave

• OOK is more spectrally efficient than frequency-shift keying, but more sensitive to noise

• On-off keying is most commonly used to transmit Morse code over radio frequencies

Analog and TLC Electronics - Emilio Fazzoletto - 2015

9

Page 10: The STM SPIRIT1 low-power RF transceiver · STM SPIRIT1 low-power RF module: ... FSK In digital modulation, an analog carrier signal is modulated by a discrete signal. ... (ASK) modulation

Power Consumption

• Images on the right show the power consumption of a system integrating the Spirit1 as well as a 32bit uC

• Thanks to the its low-power architecture the Spirit1 power consumption (transmitting at maximum power) is an half of the uC idle power

• IoT devices must use aggressive power-saving techniques to have competitive battery life

• In the images is possible to notice that the radio module spends about 500us to setup the system for the transmission

Analog and TLC Electronics - Emilio Fazzoletto - 2015

10

Page 11: The STM SPIRIT1 low-power RF transceiver · STM SPIRIT1 low-power RF module: ... FSK In digital modulation, an analog carrier signal is modulated by a discrete signal. ... (ASK) modulation

Power Consumption – Cont’s

• To simulate the tipical behavior of a WSN node the tested device has be programmed to transmit some data (few bytes) every 5 minutes and then enter the standby mode for both the uC and the radio

• The wake-up time has been about 50 ms per minute with less than 1ms spending in transmission

• The measured idle power consumption adds up to only 1.735mA

• A Simulink simulation estimated a 24 days battery life using a 1000mAh Li-Ion battery

Analog and TLC Electronics - Emilio Fazzoletto - 2015

11

Page 12: The STM SPIRIT1 low-power RF transceiver · STM SPIRIT1 low-power RF module: ... FSK In digital modulation, an analog carrier signal is modulated by a discrete signal. ... (ASK) modulation

The Spirit1 in the

• Modern race cars have lot’s of electronics in the steering wheel and the communication with the chassis, obtained with complicated and fragile electro-mechanical components, is often a threat to the car reliability

• The Squadra Corse 2015 Formula SAE race car, the SCXV, comes with an innovative wireless datalink between the dashboard and the steering wheel improving the reliability and simplying the wiring

Analog and TLC Electronics - Emilio Fazzoletto - 2015

12

Page 13: The STM SPIRIT1 low-power RF transceiver · STM SPIRIT1 low-power RF module: ... FSK In digital modulation, an analog carrier signal is modulated by a discrete signal. ... (ASK) modulation

Integrating the Spirit1 on PCB

Spirit1 Module

SMD 433MHz Antenna

STM32 uC

AMIS CAN Controller

3.3V and 5V DC-DC Converters

Connectors to the dashboard

Analog and TLC Electronics - Emilio Fazzoletto - 2015

13

Page 14: The STM SPIRIT1 low-power RF transceiver · STM SPIRIT1 low-power RF module: ... FSK In digital modulation, an analog carrier signal is modulated by a discrete signal. ... (ASK) modulation

Wire sizing and components placing

Analog and TLC Electronics - Emilio Fazzoletto - 2015

• The datasheet of the antenna describes how to design the layout and the feeding line

• Also STMicroelectronics gives advice about how to design the antenna circuit

• Using the ‘’Cross-Section’’ tool integrated in Cadence Allegro CAD is possible to calculate the geometrical parameters needed to obtain a characteristic impedence equal to 50 Ohm

14

Page 15: The STM SPIRIT1 low-power RF transceiver · STM SPIRIT1 low-power RF module: ... FSK In digital modulation, an analog carrier signal is modulated by a discrete signal. ... (ASK) modulation

Wire sizing and components placing – Cont’d

Analog and TLC Electronics - Emilio Fazzoletto - 2015

The antenna feeding line was designed in order to respect the design rules given by the antenna manufacturer. The SMD passive components needed to couple correctly the antenna with the radio module was placed in order to reduce as much as possible undesired parastitic effects

15

Page 16: The STM SPIRIT1 low-power RF transceiver · STM SPIRIT1 low-power RF module: ... FSK In digital modulation, an analog carrier signal is modulated by a discrete signal. ... (ASK) modulation

Reference • “STM32F103xx” Reference Manual, Doc ID 13902 Rev 14, 2011

• “Spirit1 Low data rate, low power sub-1GHZ transceiver” Datasheet, DocID022758 Rev 5, 2013

• Mihail L. Sichitiu and Chanchai Veerarittiphan, “Simple, Accurate Time Synchronization for Wireless Sensor Networks”, IEEE Wireless Communication and Networking, 2003, vol 2., pp. 1266-1273

• “iNEMO system-on-board” Datasheet, DocID023268 Rev 1, 2013

• “How to achieve the lowest current consumption with STM32F2xx” Application Note, Doc ID 019009 Rev 1, 2011

• “Using the STM32 hardware real-time clock (RTC)” Application Note, Doc ID 018624 Rev 2, 2011

• Dae-cheol You, Young-Si Hwang, Young-Ho Ahn, Ki-Seok Chung, “Energy Consumption Prediction Technique for Embedded Mobile Device by Using Battery Discharging Pattern”, Network Infrastructure and Digital Content, IEEE International Conference, 2010

• Images from www.wikipedia.org

Analog and TLC Electronics - Emilio Fazzoletto - 2015

16