2.8.4.2 Polling Cycle

The polling cycle consists of the active polling period and the sleep period, as illustrated in the following figure. The timing interval to start the next polling cycle is programmable between 0 ms and 4 ms and is controlled by Timer1.

The clock source for the polling timer is defined in an EEPROM variable. To select the clock source for Timer1 as well as to adjust a proper polling cycle, the eepPollLoopConf.confT1MR and eepPollLoopConf.confT1COR EEPROM variables must be modified (see sEEPromPollLoopConf eepPollLoopConf).

Address Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
0x0099 confT1COR T1COR[7:0]
0x009A confT1MR T1DC[1:0] T1PS[3:0] T1CS[1:0]
The duration of the active polling period depends on several factors, such as the number of participating service/channel configurations, telegram time-outs, RF conditions, etc. The duration may vary for each polling cycle.
Figure 2-20. Polling Cycle Definition

The RX_ACTIVE pin (PB7) can be configured to monitor the status of the RF front end during receive mode. The polarity of the pin can be adjusted in the EEPROM setting as described in sEEPromEventConfig eepEventConf.

The sleep period is primarily intended to keep the current consumption at the lowest possible level. The ATA8510/15 turns the receiver path off during the sleep period for this reason. Only the polling timer together with the selected oscillator remain active. Using the SRC oscillator to clock the polling timer is recommended due to its low power consumption and cyclical calibration of the polling cycle.

If the configured timing interval of the polling timer is shorter than the required time to check all the participated polling service/channel configurations, the effective polling cycle is extended until the next Timer1 IRQ, as shown in the following figure.
Figure 2-21. Effective Polling Cycle Definition
Note: If the polling period is set to 0 ms, the fastPollingMode is activated.

End of Polling Cycle (EOP)

A service/channel configuration with an activated EOP label defines the last configuration in the active polling period. When detecting this label, the firmware enters the polling sleep period. Otherwise, the next configuration is triggered.

Note: In fastPollingMode, the EOP labels are ignored.

End Of Polling Loop (EOL)

A service/channel configuration with an activated EOL label defines the last valid configuration used for polling. All subsequent configurations are ignored. After detecting this label, the firmware triggers the first configuration of the pollChanConf array as the next applicable service/channel configuration. The following figure shows an example of a polling configuration.
Figure 2-22. Polling Configuration Example
Note: If both the EOP and EOL labels are activated for the current service/channel configuration, first the polling sleep period is entered, then the next polling cycle uses the first array setting.