Texas Instruments 3138 155 232931 manual CC2420 RAM Memory Space Fifo access, Multiple SPI access

Models: 3138 155 232931

1 90
Download 90 pages 61.2 Kb
Page 31
Image 31

 

 

 

CC2420

 

 

 

 

Address

Byte Ordering

Name

Description

0x16F –

-

-

Not used

0x16C

 

 

 

 

 

 

 

0x16B –

MSB

SHORTADR

16-bit Short address, used for address recognition.

0x16A

LSB

 

 

0x169 –

MSB

PANID

16-bit PAN identifier, used for address recognition.

0x168

LSB

 

 

0x167 –

MSB

IEEEADR

64-bit IEEE address of current node, used for address

0x160

LSB

 

recognition.

0x15F –

MSB

CBCSTATE

Temporary storage for CBC-MAC calculations

0x150

LSB

 

 

0x14F –

MSB (Flags)

TXNONCE / TXCTR

Transmitter nonce for in-line authentication and

0x140

LSB

 

transmitter counter for in-line encryption.

0x13F –

MSB

KEY1

Encryption key 1

0x130

LSB

 

 

0x12F –

MSB

SABUF

Stand-alone encryption buffer, for plaintext input and

0x120

LSB

 

ciphertext output

0x11F –

MSB (Flags)

RXNONCE / RXCTR

Receiver nonce for in-line authentication or

0x110

LSB

 

receiver counter for in-line decryption.

0x10F –

MSB

KEY0

Encryption key 0

0x100

LSB

 

 

0x0FF –

MSB

RXFIFO

128 bytes receive FIFO

0x080

LSB

 

 

0x07F –

MSB

TXFIFO

128 bytes transmit FIFO

0x000

LSB

 

 

Table 6. CC2420 RAM Memory Space

13.6 FIFO access

The TXFIFO and RXFIFO may be accessed through the TXFIFO (0x3E) and RXFIFO (0x3F) registers.

The TXFIFO is write only, but may be read back using RAM access as described in the previous section. Data is read and written one byte at a time, as with RAM access. The RXFIFO is both writeable and readable. Writing to the RXFIFO should however only be done for debugging or for using the RXFIFO for security operations (decryption / authentication).

The crystal oscillator must be running when accessing the FIFOs.

When writing to the TXFIFO, the status byte (see Table 5) is output for each new data byte on SO, as shown in Figure 9. This could be used to detect TXFIFO underflow (see section RF Data Buffering section on page 39) while writing data to the TXFIFO.

Multiple FIFO bytes may be accessed in one operation, as with the RAM access. FIFO access can only be terminated by

setting the CSn pin high once it has been started.

The FIFO and FIFOP pins also provide additional information on the data in the receive FIFO, as will be described in the Microcontroller Interface and Pin Description section on page 32. Note that the FIFO and FIFOP pins only apply to the RXFIFO. The TXFIFO has its underflow flag in the status byte.

The TXFIFO may be flushed by issuing a SFLUSHTX command strobe. Similarly, a SFLUSHRX command strobe will flush the receive FIFO.

13.7 Multiple SPI access

Register access, command strobes, FIFO access and RAM access may be issued continuously without setting CSn high. E.g. the user may issue a command strobe, a register write and writing 3 bytes to the TXFIFO in one operation, as illustrated in Figure 11. The only exception is that FIFO and RAM access must be terminated by setting CSn high.

SWRS041B

Page 31 of 89

Page 31
Image 31
Texas Instruments 3138 155 232931 manual CC2420 RAM Memory Space Fifo access, Multiple SPI access