Panasonic MN103001G/F01K User Manual

Page 281

Advertising
background image

16-bit Timers

11-27

Procedure for ending operation

• When the timer was started by a program (TM10TGE = 0)

(1)

Stop the counting operation.

Set TM10CNE in the TM10MD register to "0".

• When the timer was started by an external trigger (TM10TGE = 1)

(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-9

One-shot Operation (When Clock Source = IOCLK)

Fig. 11-6-10

One-shot Operation (When Using Prescaler)

x'0000

TM10CA value

TM10CA value-1

IOCLK

x'0000

x'0001

TM10BC value

TM10CNE flag

Compare/capture A
interrupt request

TM10BC value

x'0000

TM10CA value

TM10CA value-1

TM10CNE flag

Count clock

IOCLK

Compare/capture
A interrupt request

Advertising