Panasonic MN101C77C User Manual

Page of 544
VII - 33
Chapter 7    16-bit Timer
16-bit Timer Synchronous Output
TM7BC counts up from x'0000'. If any data is written to the port 6 output register (P6OUT), TM7BC
reaches the set value of TM7OC1 register and the synchronous output pin outputs data of port 7 in
every time an interrupt request is generated.
Setup Procedure
Description
(7) Set the TM7EN flag of the TM7MD1 register to
"1" to start timer 7.
(7) Start the timer operation.
TM7MD1 (x'3F78')
bp4
: TM7EN
= 1
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.