SLAAEK4 January 2024 MSPM0C1104
The shadow load feature allows holding the update of load values until a zero event occurs. If the TIMx module has a shadow load feature, there is an internal shadow register for the load value (TIMx.LOAD). The shadow register can update the load value at a zero event.
For up-counting mode and up or down counting mode, note that a shadow load is necessary. A shadow load can make sure that TIMx counts up to the load value before the zero event, or else the load value can update immediately and cause incorrect timings.
When shadow compare is enabled for updating the capture or compare register (TIMx.CC), the value written to the respective compare register is first stored in a shadow compare register and then transferred to the compare register at different events. User can also configure to update the CC action at different events.
Figure 8-9 shows an example of how shadow load and shadow compare takes effect at the zero event for both the TIMx.LOAD and TIMx.CC value in up/down counting mode.
To accelerate development, please refer to the following resources.