Chapter 7 16-bit Timer
VII - 14
16-bit Timer Count
(7) Set the TM7EN flag of the TM7MD1 register to
"1" to start timer 7.
Setup Procedure
(7) Start the timer operation.
TM7MD1 (x'3F78')
bp4 : TM7EN = 1
Description
TM7BC counts up from x'0000'. When TM7BC reaches the set value of the TM7OC1 register, the
timer 7 interrupt request flag is set to "1" at the next count clock and the TM7BC becomes x'0000'
and counts up, again.
When the TM7EN flag of the TM7MD register is changed at the same time to other bits, the
binary counter may count up by the switching operation.
Write to preset register should be done while timer is stopped or within timer interrupt pro-
cessing.
And use MOVW instruction for write to preset register.