Article ADuC831: INTVAL

Question

Does the 8bit interval counter reset to zero automatically when the comparator
generates an interrupt? If not how can I reset this counter?
If I'd like to load an new value into the register intval, do I need to clear
TCEN first?

Answer

The INTVAL register is not reset to zero on an interrupt, it will remain at the
user programmed value.
To load a new value in INTVAL, TCEN and TIEN must be zero, the user must also
allow sufficient time for the instruction to be executed baring in mind that
instructions to the TIC are clocked at 32kHz.

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.