11.07.2015 Views

Clike here to get datasheet of CC1101 - Elechouse

Clike here to get datasheet of CC1101 - Elechouse

Clike here to get datasheet of CC1101 - Elechouse

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>CC1101</strong>14.3 Byte SynchronizationByte synchronization is achieved by acontinuous sync word search. The sync wordis a 16 bit configurable field (can be repeated<strong>to</strong> <strong>get</strong> a 32 bit) that is au<strong>to</strong>matically inserted atthe start <strong>of</strong> the packet by the modula<strong>to</strong>r intransmit mode. The demodula<strong>to</strong>r uses thisfield <strong>to</strong> find the byte boundaries in the stream<strong>of</strong> bits. The sync word will also function as asystem identifier, since only packets with thecorrect predefined sync word will be received ifthe sync word detection in RX is enabled inregister MDMCFG2 (see Section 17.1).. Thesync word detec<strong>to</strong>r correlates against theuser-configured 16 or 32 bit sync word. Thecorrelation threshold can be set <strong>to</strong> 15/16,15 Packet Handling Hardware SupportThe <strong>CC1101</strong> has built-in hardware support forpacket oriented radio pro<strong>to</strong>cols.In transmit mode, the packet handler can beconfigured <strong>to</strong> add the following elements <strong>to</strong> thepacket s<strong>to</strong>red in the TX FIFO:• A programmable number <strong>of</strong> preamblebytes• A two byte synchronization (sync) word.Can be duplicated <strong>to</strong> give a 4-byte syncword (recommended). It is not possible <strong>to</strong>only insert preamble or only insert a syncword.• A CRC checksum computed over the datafield.The recommended setting is 4-byte preambleand 4-byte sync word, except for 500 kBauddata rate w<strong>here</strong> the recommended preamblelength is 8 bytes.In addition, the following can be implementedon the data field and the optional 2-byte CRCchecksum:• Whitening <strong>of</strong> the data with a PN9sequence.• Forward error correction by the use <strong>of</strong>interleaving and coding <strong>of</strong> the data(convolutional coding).In receive mode, the packet handling supportwill de-construct the data packet byimplementing the following (if enabled):• Preamble detection.• Sync word detection.16/16, or 30/32 bits match. The sync word canbe further qualified using the preamble qualityindica<strong>to</strong>r mechanism described below and/or acarrier sense condition. The sync word isconfigured through the SYNC1 and SYNC0registers.In order <strong>to</strong> make false detections <strong>of</strong> syncwords less likely, a mechanism calledpreamble quality indication (PQI) can be used<strong>to</strong> qualify the sync word. A threshold value forthe preamble quality must be exceeded inorder for a detected sync word <strong>to</strong> be accepted.See Section 17.2 on page 37 for more details.• CRC computation and CRC check.• One byte address check.• Packet length check (length byte checkedagainst a programmable maximumlength).• De-whitening• De-interleaving and decodingOptionally, two status bytes (see Table 21 andTable 22) with RSSI value, Link QualityIndication, and CRC status can be appendedin the RX FIFO.Bit Field Name Description7:0 RSSI RSSI valueTable 21: Received Packet Status Byte 1(first byte appended after the data)Bit Field Name Description7 CRC_OK 1: CRC for received data OK(or CRC disabled)0: CRC error in received data6:0 LQI Indicating the link qualityTable 22: Received Packet Status Byte 2(second byte appended after the data)Note that register fields that control the packethandling features should only be altered when<strong>CC1101</strong> is in the IDLE state.SWRS061C Page 31 <strong>of</strong> 94

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!