Purpose
- Basic read and set time
- Functionality for alarm interrupt handling.
Description
- The MCU has one hardware timer and four alarms.
- The timer is 64 bits, hence reading the full time requires two register accesses.
- Many timing application can get away with only reading the lower 32 bits, if roll-over is taken into account.
SetTime
should only be used for development/debugging purposes, since doing so may interfere with other processes using the timing features, including the alarms.
References
- Datasheet: chapter 4.6, p536
See Also
- Module Alarms.