Chapter 6 8-bit Timers
VI - 32
Synchronous Output
TM1BC counts up from x'00'. If any data is written to the port 6 output register (P6OUT), the data of
port 6 is output from the synchronous output pin in every time an interrupt request is generated by
the match of TM1BC and the set value of the TM1OC register.
Setup Procedure Description
(7) Set the synchronous output generation cycle
to the timer 1 compare register (TM1OC).
The setting value is set to 100-1=99(x'63'),
because 1 MHz is divided by 10 kHz.
At that time, the timer 1 binary counter
(TM1BC) is initialized to x'00'.
(8) Set the TM1EN flag of the TM1MD register to
"1" to start timer 1.
(7) Set the synchronous output event
generation cycle.
TM1OC (x'3F53') = x'63'
(8) Start the timer operation.
TM1MD (x'3F55')
bp3 :TM1EN = 1