A microcontroller has a Timer peripheral that can be configured to generate a hardware interrupt every 10 ms. I need to describe an interrupt service routine that maintains real time I.E. ticks, seconds, minutes and hours based on this interrupt. I also need to explain what happens to the MCU registers (accumulators, index register, stack pointer, program counter, etc) when the interrupt occurs and when the interrupt ends and explain the logic of the program.
Not sure how to go about this. If the clock cycle is 10 ms, I believe I understand how the ticks will give me seconds and seconds will give me minutes after. However, I don't know what happens to the registers as each interrupt occurs. Thanks in advance.
Not sure how to go about this. If the clock cycle is 10 ms, I believe I understand how the ticks will give me seconds and seconds will give me minutes after. However, I don't know what happens to the registers as each interrupt occurs. Thanks in advance.