Command Register; Radio Tasks; Commands From Mcu To Ll Engine Via Rfst Register - Texas Instruments CC253x User Manual

System-on-chip for 2.4ghz
Table of Contents

Advertisement

Link Layer Engine

25.9.1 Command Register

The command register RFST can be used for sending commands to the LLE and the FIFOs. Commands
in the range 0x80–0xFF are commands to the FIFOs, see
commands to the LLE.
The commands are listed in
addition, there is a command CMD_SHUTDOWN to stop the radio operation and end the task directly.
The commands CMD_SEND_EVENT1 and CMD_SEND_EVENT2 do the same action as receiving a
Timer 2 event 1 or event 2.
If an unknown command is entered, the LLE responds by generating an LLEERR interrupt. If a task is
running, it stops.
When sending a command to the LLE, the RFST register retains its value until the LLE has received the
command (but not necessarily executed it) and then is set to 0. Commands should not be sent to the LLE
unless RFST is 0. FIFO commands may be sent at any time.
Table 25-12. Commands From MCU to LL Engine via RFST Register
Number
0x01
0x02
0x03
0x04
0x05
0x06
0x08
0x09
0x0A
0x0B
0x21
0x22
0x30
0x31
0x32
0x33
0x34
0x35
0x36
0x37

25.9.2 Radio Tasks

Before starting a task, radio registers should be set up with the desired packet format, and the desired
input sensitivity and output power should be programmed. Furthermore, the sync word in use must be
programmed in the SW0, SW1, SW2, and SW3 registers. If a secondary sync word is used, it must be
programmed in the SW4, SW5, SW6, and SW7 registers. The RAM registers must be programmed to
configure the task. The way the task runs depends on the PRF_TASK_CONF register. The operation mode
is set up by the MODE bits of this register. A value of 00 or 01 gives basic mode and thus disables auto
ACK or auto retransmission. A value of 10 or 11 gives auto mode where auto acknowledgment or auto
retransmission can be enabled per the address in PRF_ADDR_ENTRYn.CONF.AA.
All tasks start with a start-of-task command from the MCU. The LLE takes SEMAPHORE0 at this time; if the
semaphore is not available, the task ends with an error. Depending on the configuration in
PRF_TASK_CONF.START_CONF, the LLE either starts the task immediately or waits for a Timer 2 event 1
before starting. Note that a Timer 2 event 1 may be pending from before the LLE starts waiting; in that
case, the task starts immediately. To clear a pending Timer 2 event 1, reset the LLE. To prevent
302
CC2541 Proprietary Mode Radio
Table
25-12. There are commands for starting receive and transmit modes. In
Command Name
CMD_SHUTDOWN
CMD_DEMOD_TEST
CMD_RX_TEST
CMD_TX_TEST
CMD_TX_FIFO_TEST
CMD_PING
CMD_RX
CMD_TX
CMD_TX_ON_CC
CMD_STOP
CMD_SEND_EVENT1
CMD_SEND_EVENT2
CMD_FLUSH_ACK0
CMD_FLUSH_ACK1
CMD_FLUSH_ACK2
CMD_FLUSH_ACK3
CMD_FLUSH_ACK4
CMD_FLUSH_ACK5
CMD_FLUSH_ACK6
CMD_FLUSH_ACK7
Copyright © 2009–2014, Texas Instruments Incorporated
Section
25.3.1. Other commands are
Description
Stop operation immediately
Start demodulator without sync search
Start demodulator and sync search
Start transmitter and transmit zeros
Start transmitter and transmit from TX FIFO
PINGRSP
Respond with a
interrupt
Start receive operation
Start transmit operation
Start transmit operation on clear channel
Gracefully stop radio task
Do the same action as if Timer 2 event 1 was observed
Do the same action as if Timer 2 event 2 was observed
Flush the ACK payload buffers for address 0
Flush the ACK payload buffers for address 1
Flush the ACK payload buffers for address 2
Flush the ACK payload buffers for address 3
Flush the ACK payload buffers for address 4
Flush the ACK payload buffers for address 5
Flush the ACK payload buffers for address 6
Flush the ACK payload buffers for address 7
SWRU191F – April 2009 – Revised April 2014
Submit Documentation Feedback
www.ti.com

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents