Panasonic MN101C77C, F77G user manual VII 14 16-bit Timer Count

Models: F77G MN101C77C

1 544
Download 544 pages 59.61 Kb
Page 274
Image 274

Chapter 7 16-bit Timer

Setup Procedure

 

Description

 

 

 

(7) Start the timer operation.

 

(7) Set the TM7EN flag of the TM7MD1 register to

TM7MD1 (x'3F78')

 

"1" to start timer 7.

bp4

: TM7EN

= 1

 

 

 

 

 

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.

VII - 14 16-bit Timer Count

Page 274
Image 274
Panasonic MN101C77C, F77G user manual VII 14 16-bit Timer Count