CC113L
SWRS108A
Page 28 of 68
Preamble bits
(1010...1010)
Sy
n
c
w
o
rd
Le
n
gt
h
fi
el
d
A
d
re
ss
fi
el
d
Data field
C
R
C
-1
6
Optional CRC-16 calculation
8 x n bits
16/32 bits
8
bits
8
bits
8 x n bits
16 bits
Legend:
Processed and removed by the
radio
OptIonal user-provided fields (processed by the
radio, but not removed)
Unprocessed user data
Figure 16: Packet Format
The
preamble
pattern
is
an
alternating
sequence of ones and zeros that the receiver
uses for bit synchronisation.
The synchronization word is a two-byte value
sync word provides byte synchronization of the
incoming packet. A one-byte sync word can be
emulated by setting the
SYNC1 value to the
preamble pattern. It is also possible to emulate
a
32
bit
sync
word
by
setting
word searched for is the two-byte sync word
repeated twice.
CC113L supports both constant packet length
protocols
and
variable
length
protocols.
Variable or fixed packet length mode can be
used for packets up to 255 bytes. For longer
packets, infinite packet length mode must be
used.
Fixed packet length mode is selected by
desired packet length is set by the
PKTLENregister. This value must be different from 0.
In
variable
packet
length
mode,
length is configured by the first byte after the
sync word. The packet length is defined as the
payload data, excluding the length byte and
register is
used to set the maximum packet length
allowed. Any packet received with a length
byte with a value greater than
PKTLEN will be
discarded.
The
value
must
be
different from 0.
With
the
packet length is set to infinite and reception
will continue until turned off manually. As
described in the next section, this can be used
to support packet formats with different length
configuration
than
natively
supported
by
CC113L.
15.1.1 Arbitrary Length Field Configuration
The packet length register,
PKTLEN, can be
reprogrammed during RX. In combination with
fixed
packet
length
mode
the possibility to have a different length field
configuration
than
supported
for
variable
length packets (in variable packet length mode
the length byte is the first byte after the sync
word). At the start of reception, the packet
length is set to a large value. The MCU reads
out enough bytes to interpret the length field in
the packet. Then the
PKTLEN value is set
according to this value. The end of packet will
occur when the byte counter in the packet
handler is equal to the
PKTLEN register. Thus,
the MCU must be able to program the correct
length, before the internal counter reaches the
packet length.
15.1.2 Packet Length > 255
The
packet
automation
control
register,
can be reprogrammed during
RX. This opens the possibility to receive
packets that are longer than 256 bytes and still
be able to use the packet handling hardware
support. At the start of the packet, the infinite
packet
length
mode
must
be
active. When receiving, the MCU reads out
enough bytes to interpret the length field in the
register to
mod(length, 256). When less than 256 bytes
remains of the packet, the MCU disables
infinite packet length mode and activates fixed
packet
length
mode
internal byte counter reaches the
PKTLENvalue, the reception ends (the radio enters the
Note:
The
minimum
packet
length
supported (excluding the optional length
byte and CRC) is one byte of payload
data.