Active Register --> Direct hardware access
Shadow Register --> No hardware access, temporary holding location for active register
When the counter reaches zero, the content from the shadow register is transferred to the active register. The microcontroller skips one cycle to update the counter in immediate load mode and in shadow mode it works fine.
Someone please explain what is happening here.
Note : The switching frequency is 100Hz. So one cycle delay can da a lot of damage.