1.2.13 Set System Mode
Description
The SPI command “Set System Mode” is used to switch the following modes:
- IDLEMode
- IDLEMode(RC)
- IDLEMode(XTO)
- TXMode
- RXMode
- PollingMode
1. The IDLEMode is the only mode that allows reading/writing from/to the SRAM and registers.
The parameters are copied as follows:
extReq.systemModeConfig = systemModeConfig
extReq.serviceChannelConfig = serviceChannelConfig
Command Frame
Host |
0x0D |
systemModeConfig |
serviceChannelConfig |
ATA8510/15 |
events.system |
events.events |
dummy |
Parameters
- 0x0D – Command ID
- systemModeConfig – Parameter for extReq.systemModeConfig variable
Name | Bit 7 | Bit 6 | Bit 5 | Bit 4 | Bit 3 | Bit 2 | Bit 1 | Bit 0 |
---|---|---|---|---|---|---|---|---|
systemModeConfig | RF_CAL | ANT_TUNE | VCO_TUNE | IDLEModeSelector | — | TMDEN | OPM[1:0] |
Bit 7: RF_CAL – RF Calibration
0
= RF Calibration before changing OPM disabled
1
= RF Calibration before changing OPM enabled
Bit 6: ANT_TUNE – Antenna Tuning
0
= Antenna tuning before changing OPM disabled
1
= Antenna tuning before changing OPM enabled
Bit 5: VCO_TUNE – VCO Tuning
0
= VCO tuning before changing OPM disabled
1
= VCO tuning before changing OPM enabled
Bit 4: IDLEModeSelector – IDLEMode Selector
0
= IDLEMode(RC) selected
1
= IDLEMode(XTO) selected
Bit 3: Reserved Bit
This bit is reserved for future use and is set to ‘0
’.
Bit 2: TMDEN – Transparent Mode Data Enable
0
= Buffered mode is enabled
1
= Transparent mode is enabled
Bit 1..0: OPM[1:0] – Operation Mode
OPM1 |
OPM0 |
Function |
---|---|---|
|
|
IDLEMode |
|
|
TXMode |
|
|
RXMode |
|
|
RX PollingMode |
- serviceChannelConfig – Parameter for extReq.serviceChannelConfig variable (all modes except PollingMode)
Name |
Bit 7 |
Bit 6 |
Bit 5 |
Bit 4 |
Bit 3 |
Bit 2 |
Bit 1 |
Bit 0 |
---|---|---|---|---|---|---|---|---|
serviceChannelConfig |
enaPathB |
enaPathA |
ch[1:0] | — |
ser[2:0] |
Bit 7: enaPathB – Enable Path B
0
= Path B disabled
1
= Path B enabled
Bit 6: enaPathA – Enable Path A
0
= Path A disabled
1
= Path A enabled
Bits 5..4: ch[1:0] – Channel
ch1 |
ch0 |
Function |
---|---|---|
|
|
Channel 0 |
|
|
Channel 1 |
|
|
Channel 2 |
|
|
Channel 0 – default |
Bit 3: Reserved Bit
This bit is reserved for future use and is set to ‘0
’.
Bits 2..0: ser[2:0] – Service[2:0]
Ser2 |
Ser1 |
Ser0 |
Function |
---|---|---|---|
|
|
|
Service0 |
|
|
|
Service1 |
|
|
|
Service2 |
|
|
|
Service3 |
|
|
|
Service4 |
|
|
|
Reserved |
|
|
|
Reserved |
|
|
|
Reserved |
serviceChannelConfig – Parameter for extReq.serviceChannelConfig variable (PollingMode only)
Name |
Bit 7 |
Bit 6 |
Bit 5 |
Bit 4 |
Bit 3 |
Bit 2 |
Bit 1 |
Bit 0 |
---|---|---|---|---|---|---|---|---|
serviceChannelConfig | — | — | — | — |
startPollingIndex |
These bits are reserved for future use and are set to ‘0
’.
Bits 3..0: startPollingIndex – Start Index in PollingMode
Return Values
- events.system – Event byte (for details see SPI command “Get Event Bytes”)
- events.events – Event byte (for details see SPI command “Get Event Bytes”)
- 0x00 – Dummy byte (no information)
Set System Mode (IDLEMode)
If Operation Mode OPM IDLEMode is selected, the firmware switches from any mode to IDLEMode. This command is accepted always to set the system to a defined mode.
The following parameters are used:
- systemModeConfig
- IDLEModeSelector:
- 0 switch to IDLEMode(RC)
- 1 switch to IDLEMode(XTO)
- OPM Operation Mode (set to 00)
- IDLEModeSelector:
- OPM serviceChannelConfig
- none
The following parameters are ignored:
- systemModeConfig
- RF_CAL
- ANT_TUNE
- VCO_TUNE
- TMDEN
- serviceChannelConfig
- enaPathB
- enaPathA
- ch[1:0]
- ser[2:0]
Set System Mode (TXMode)
If the operation mode OPM TXMode is selected, the firmware switches from IDLEMode, TXMode or RXMode to TXMode. The firmware decides if normal switching or direct switching is used. After the system is ready for transmitting, the CMD_RDY flag in event byte system is set.
The following parameters are used:
- systemModeConfig
- RF_CAL: if set, the firmware does a correction of the frequency words according to the last measured temperature.
- ANT_TUNE: if set, the firmware configures the TX flow with antenna tuning SSM.
- VCO_TUNE: if set, the firmware configures the TX flow with VCO tuning SSM.
- IDLEModeSelector: if set, the system returns to IDLEMode(XTO) after TXMode has finished. If cleared, the system returns to IDLEMode(RC).
- TMDEN Transparent Data Mode Enable: if set, the system is configured for TXMode(transparent). If cleared, the system is configured for TXMode(buffered).
- OPM Operation Mode (set to 0b01).
- serviceChannelConfig
- enaPathB: If set, path B configuration is used for TXMode, enaPathA must be cleared in this case.
- enaPathA: If set, path A configuration is used for TXMode, enaPathB must be cleared in this case.
- ch[1:0]: defines the used channel configuration for TXMode.
- ser[2:0]: defines the used service configuration for TXMode.
The following parameters are ignored:
- none
Set System Mode (RXMode)
If the operation mode OPM RXMode is selected, the firmware switches from IDLEMode, TXMode or RXMode to RXMode. The firmware decides if normal switching or direct switching is used.
The following parameters are used:
- systemModeConfig
- RF_CAL: if set, the firmware does a correction of the frequency words according to the last measured temperature.
- VCO_TUNE: if set, the firmware configures the Rx flow with VCO tuning SSM.
- IDLEModeSelector: if set, the system returns to IDLEMode(XTO) after RXMode has finished. If cleared, the system returns to IDLEMode(RC).
- TMDEN Transparent Data Mode Enable: if set, the system is configured for RXMode(transparent). If cleared, the system is configured for RXMode(buffered).
- OPM Operation Mode (set to 0b10).
- serviceChannelConfig
- enaPathB: If set, path B configuration is used for RXMode.
- enaPathA: If set, path A configuration is used for RXMode.
- ch[1:0]: defines the used channel configuration for RXMode.
- ser[2:0]: defines the used service configuration for RXMode.
The following parameters are ignored:
- Antenna tuning: not part of RXMode
Set System Mode (PollingMode)
If the operation mode OPM PollingMode is selected, the firmware switches from IDLEMode to PollingMode. After the SPI command is accepted the firmware configures the SSM with VCO tuning (if enabled in systemModeConfig) for the 1st service/channel configuration. The following service/channel configurations are configured according to their configuration in the SRAM array pollConfig.pollChanConf.
The following parameters are used:
- systemModeConfig
- VCO_TUNE: if set, the firmware configures the 1st service/channel configuration with VCO tuning SSM.
- IDLEModeSelector: if set, the system remains in IDLEMode(XTO) during the sleep period. If cleared, the system remains in IDLEMode(RC) during the sleep period.
- TMDEN Transparent Data Mode Enable: If set, the system is configured for PollingMode(transparent).
- OPM Operation Mode (set to 0b11).
- serviceChannelConfig
- startPollingIndex[3:0] is used as array index to start PollingMode
The following parameters are ignored:
- systemModeConfig
- RF_CAL: RF calibration is not available in PollingMode
- ANT_TUNE: not part of PollingMode