Panasonic MN103001G/F01K User Manual

Page 279

Advertising
background image

16-bit Timers

11-25

Procedure for ending operation

(1) Disable timer startup by an external trigger.

Set TM10TGE in the TM10MD register to "0".

(2) Stop the counting operation.

Set TM10CNE in the TM10MD register to "0".

If TM10TGE and TM10CNE are both set to "0" simultaneously, there is a possibility that TM10CNE will be set

again, depending on the pin input timing. Therefore, always be sure to set TM10TGE to "0" first, and then set
TM10CNE to "0".

Fig. 11-6-8

Timer 10 Startup by an External Trigger (When “Rising Edge” is Selected)

Pin input

(TM10IOB)

Edge detection

x'0001

TM10CNE

x'0000

x'0003

x'0002

x'0004

TM10BC value

IOCLK

Advertising