SWCU185G January 2018 – June 2024 CC1312PSIP , CC1312R , CC1352P , CC1352R , CC2642R , CC2642R-Q1 , CC2652P , CC2652PSIP , CC2652R , CC2652RB , CC2652RSIP , CC2662R-Q1
Command ID number: 0x0808
CMD_TX_TEST is a radio operation command used to set the receiver in infinite TX mode and transmit either a CW or modulated data for test purposes.
When starting, the radio CPU starts the transmitter. The radio must be configured with the CMD_RADIO_SETUP and the radio synthesizer must be started and in TX mode with the CMD_FS radio command before CMD_TX_TEST is issued. The radio transmits a preamble and a sync word of the size given by the current radio configuration, specified using CMD_RADIO_SETUP. The sync word is given in the LSBs of syncWord. The payload after the sync word consists of the 16-bit word txWord, repeated indefinitely. This word may be run through whitening, with the options given in config.whitenMode, which can take the following values:
For whitening modes 2 and 3, initialization is done by the radio CPU writing 0xAAAA 0000 to the PRBS value register before transmission starts. For whitening mode 1, the default initialization is used.
The transmitter runs until the trigger set up by endTrigger and endTime (see Section 26.3.2.5.1) occurs, or until an abort command is issued.
If pktConfig.bFsOn is 1, the synthesizer is turned off (corresponding to CMD_FS_OFF; see Section 26.3.3.1.6) after the operation is done; otherwise it is left on.
The operation ends by one of the causes listed in Table 26-14.
The command structure for CMD_TX_TEST contains the fields listed in Table 26-27.
Byte Index | Field Name | Bits | Bit Field Name | Type | Description |
---|---|---|---|---|---|
14 | config | 0 | bUseCw | W | 0: Send modulated signal. 1: Send continuous wave. |
1 | bFsOff | W | 0: Keep frequency synthesizer on after command. 1: Turn frequency synthesizer off after command. | ||
2–3 | whitenMode | W | 0: No whitening 1: Default whitening 2: PRBS-15 3: PRBS-32 | ||
15 | Reserved | ||||
16–17 | txWord | W | Value to send to the modem before whitening | ||
18 | Reserved | ||||
19 | endTrigger | W | Trigger classifier for ending the operation | ||
20–23 | syncWord | W | Sync word to use for transmitter | ||
24–27 | endTime | W | Time to end the operation |