
CC113L
SWRS108A
Page 29 of 68
CRC appending/checking can also be used
When for example a 600-byte packet is to be
received, the MCU should do the following
Receive enough bytes to interpret the
length field
Program
the
register
to
mod(600, 256) = 88.
Receive at least 345 bytes (600 - 255)
The reception ends when the packet
counter reaches 88. A total of 600 bytes
have been received.
Internal byte counter in packet handler counts from 0 to 255 and then starts at 0 again
0, 1............, 88, .............................................255, 0, ........, 88, .............................................255, 0, ........, 88, .............................................255, 0, ..
Infinite packet length mode enabled
Fixed packet length mode anbled when
less than 256 bytes remains of packet
600 bytes received
Length field received. PKTLEN set to
mod(600, 256) = 88
Figure 17: Packet Length > 255
15.2 Packet Filtering
CC113L supports three different types of packet
filtering; address filtering, maximum length
filtering, and CRC filtering.
15.2.1 Address Filtering
value than zero enables the packet address
filter. The packet handler engine will compare
the destination address byte in the packet with
the programmed node address in the
ADDRregister and the 0x00 broadcast address when
and
0xFF
broadcast
addresses
when
If
the
received
address matches a valid address, the packet
is received and written into the RX FIFO. If the
address match fails, the packet is discarded
and receive mode restarted (regardless of the
If the received address matches a valid
address when using infinite packet length
mode and address filtering is enabled, 0xFF
will be written into the RX FIFO followed by the
address byte and then the payload data.
15.2.2 Maximum Length Filtering
In
variable
packet
length
mode,
the
used to set the maximum allowed packet
length. If the received length byte has a larger
value than this, the packet is discarded and
receive mode restarted (regardless of the
15.2.3 CRC Filtering
The filtering of a packet when CRC check fails
is
enabled
by
setting
The
CRC
auto
flush
function
will
flush
the
entire
RX FIFO if the CRC check fails. After auto
flushing the RX FIFO, the next state depends
When using the auto flush function, the
maximum packet length is 63 bytes in variable
packet length mode and 64 bytes in fixed
packet
length
mode.
Note
that
when
maximum allowed packet length is reduced by
two bytes in order to make room in the RX
FIFO for the two status bytes appended at the
end of the packet. Since the entire RX FIFO is
flushed
when
the
CRC
check
fails,
the
previously received packet must be read out of
the RX FIFO before receiving the current
packet. The MCU must not read from the
current packet until the CRC has
been
checked as OK.