SWCU192 November 2021 CC1312R7 , CC1352P7 , CC2652P7 , CC2652R7
Command ID number: 0x080A
CMD_SYNC_START_RAT is a radio operation command. In addition to the parameters listed in
Table 26-9, the command structure contains the fields listed in Table 26-29.
For more details, see Section 17.
TOP:AON_RTC:CTL.RTC_UPD_EN must be 1.
Byte Index | Field Name | Bits | Bit Field Name | Type | Description |
---|---|---|---|---|---|
14–15 | Unused | ||||
16–19 | rat0 | W | The desired RAT value corresponding to the value the RAT would have had when the RTC was zero. This parameter is returned by CMD_SYNC_STOP_RAT. |
When starting, the radio CPU starts the RAT and sets up capture of an RTC tick and waits for this tick, then calculates the necessary timer adjustment based on the input parameter rat0 and performs this adjustment. The input parameter rat0 is the value previously returned by CMD_SYNC_STOP_RAT.
Because the radio timer is normally not running when this command is issued, the start trigger must be TRIG_NOW (see Section 26.3.2.5.1).
The first time the RAT is started after system boot, the command CMD_START_RAT must be used (see Section 26.3.3.2.7). As an alternative, CMD_SYNC_START_RAT may be issued with a fixed parameter such as 0; however, this gives an arbitrary start value for the RAT. Before powering down the radio, the system CPU must run the CMD_SYNC_STOP_RAT command. After powering it up the radio again, the system CPU must run the CMD_SYNC_START_RAT command with the same parameter as the one received when CMD_SYNC_STOP_RAT was issued.