Panasonic MN101C77C User Manual

Page 236

Advertising
background image

Chapter 6 8-bit Timers

VI - 22

8-bit Event Count

Every time TM0BC detects the falling edge of TM0IO input , TM0BC counts up from 'x00'. When

TM0BC reaches the setting value of theTM0OC register, the timer 0 interrupt request flag is set at

the next count clock, then the value of TM0BC becomes x'00' and counting up is restarted.

(7)

Set the TM0IE flag of the TM0ICR register to

"1" to enable the interrupt.

(8)

Set the TM0EN flag of the TM0MD register to 1

to start timer 0.

Setup Procedure

(7)

Enable the interrupt.

TM0ICR (x'3FE9')

bp1

:TM0IE

= 1

(8)

Start the event counting.

TM0MD (x'3F54')

bp3

:TM0EN

= 1

Description

Advertising
This manual is related to the following products: