Chipcon
SmartRF CC1100
Chipcon AS
SmartRF
CC1100 Preliminary Data Sheet (rev. 1.0) 2005-04-25
Page 25 of 68
bytes has been transmitted, the modulator will
send the sync word and then data from the TX
FIFO if data is available. If the TX FIFO is
empty, the modulator will continue to send
preamble bytes until the first byte is written to
the TX FIFO. The modulator will then send the
sync word and then the data bytes.
The number of preamble bytes is programmed
The synchronization word is a two-byte value
sync word provides byte synchronization of the
incoming packet. A one-byte synch 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
using
3 or 7. The sync word
will then be repeated twice.
CC1100 supports both constant packet length
protocols
and
variable
length
protocols.
Variable or fixed packet length mode can be
used for packet 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. The packet length is defined as the
payload data, excluding the length byte and
the optional automatic CRC. In variable length
packet length is configured by the first byte
after the sync word. The
PKTLEN register is
used to set the maximum packet length
allowed in RX. Any packet received with a
length byte with a value greater than
PKTLENwill be discarded.
With
the
packet length is set to infinite and transmission
and reception will continue until turned off
manually. The infinite mode can be turned off
while a packet is being transmitted or received.
As described in the next section, this can be
used to support packet formats with different
length configuration than natively supported by
CC1100.
Note
that
the
minimum
packet
length
supported (excluding the optional length byte
and CRC) is one byte of payload data.
23.2.1 Arbitrary length field configuration
The fixed length field can be reprogrammed
during receive and transmit. This opens the
possibility to have a different length field
configuration than supported for variable
length packets. 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.
By utilizing the infinite packet length option,
arbitrary packet length is available. At the start
of the packet, the infinite mode must be active.
When less than 256 bytes remains of the
packet, the MCU sets the
PKTLEN register to
mod(length, 256)
, disables infinite packet
length and activates fixed length packets.
When the internal byte counter reaches the
value, the transmission or reception
ends. Automatic CRC appending/checking can
When for example a 454-byte packet is to be
transmitted, the MCU does the following:
Pre-program the
PKTLEN register to
mod(454,256)=198.
Transmit at least 198 bytes, for example
by filling the 64-byte TX FIFO four times
(256 bytes transmitted).
The transmission ends when the packet
counter
reaches
198.
A
total
of
256+198=454 bytes are transmitted.