Cc2420 – Texas Instruments 3138 155 232931 User Manual

Page 30

Advertising
background image

CC2420

SWRS041B Page 30 of 89

divided into three memory banks: TXFIFO
(bank 0), RXFIFO (bank 1) and security
(bank 2). The FIFO banks are 128 bytes
each, while the security bank is 112 bytes.

A6:0 is transmitted directly after the
RAM/Register bit as shown in Figure 9.
For RAM access, a second byte is also
required before the data transfer. This
byte contains B1:0 in bits 7 and 6,
followed by the R/W bit (0 for read+write, 1
for read). Bits 4 through 0 are don’t care
as shown in Figure 9.

For RAM write, data to be written must be
input on the SI pin directly after the
second address byte. RAM data read is
output on the SO pin simultaneously, but
may be ignored by the user if only writing
is of interest.

For RAM read, the selected byte(s) are
output on the SO pin directly after the
second address byte.

See Figure 10 for an illustration on how
multiple RAM bytes may be read or written
in one operation.

The RAM memory space is shown in
Table 6. The lower 256 bytes are used to
store FIFO data. Note that RAM access
should never be used for FIFO write
operations because the FIFO counter will
not be updated. Use RXFIFO and TXFIFO
access instead as described in section
FIFO access.

As with register data, data stored in RAM
will be retained during power down mode,
but not when the power-supply is turned
off (e.g. by disabling the voltage regulator
using the VREG_EN pin).

ADDR

CSn:

Command strobe:

Read or write a whole register (16 bit):

DATA

8MSB

ADDR

DATA

8LSB

Read 8 MSB of a register:

DATA

8MSB

ADDR

Multiple register read or write

DATA

8MSB

ADDR

DATA

8LSB

DATA

8MSB

DATA

8LSB

...

Read or write n bytes from/to RF FIFO:

DATA

byte0

ADDR

FIFO

DATA

byte1

DATA

byte2

DATA

byte3

DATA

byte n-2

DATA

byte n-1

...

ADDR

Multiple command strobes:

ADDR

ADDR

...

ADDR

ADDR

DATA

8MSB

ADDR

DATA

byte n-3

ADDR

...

Read or write n bytes from/to RAM:

ADDRH

RAM

ADDRL

RAM

DATA

ADDR

DATA

ADDR+1

DATA

ADDR+2

DATA

ADDR+n

...

FIFO and RAM access must be terminated with setting the CSn pin high.
Command strobes and register access may be followed by any other access,
since they are completed on the last negative edge on SCLK. They may however also be
terminated with setting CSn high, if desirable, e.g. for reading only 8 bits from a configuration
register.

Note:

Figure 10. Configuration registers write and read operations via SPI

Advertising