Chapter 7 16-bit Timer
VII - 18
16-bit Event Count
Every time TM7BC detects the falling edge of the TM7IO input, TM7BC counts up from x'0000'.
When the TM7BC reaches the setting value of the TM7OC1 register, the timer 7 interrupt request
flag is set at the next count clock, then the value of TM7BC becomes x'0000' and counting up is
restarted.
(6) Set the interrupt level by the TM7LV1-0 flag of
the timer 7 interrupt control register (TM7ICR).
If any interrupt request flag may be already set,
clear those request flags.
(7) Set the TM7IE flag of the TM7ICR register to
"1" to enable interrupt.
(8) Set the TM7EN flag of the TM7MD 1 register to
"1" to start timer 7.
Setup Procedure
(6) Set the interrupt level.
TM7ICR (x'3FF1')
bp7-6 :TM7LV1-0 = 10
(7) Enable the interrupt.
TM7ICR (x'3FF1')
bp1 : TM7IE = 1
(8) Start the event count.
TM7MD1 (x'3F78')
bp4 : TM7EN = 1
Description
[ Chapter 3 3-1-4. Interrupt Flag Setup ]