
16-bit Timers
11-32
Once the counting operation is enabled, TM10BC is incremented each time that the specified edge is input to the
TM10IOB pin. Once (value in compare/capture A re 1) edges are counted, TM10BC is cleared and a
compare/capture A register interrupt request is generated.
If the value in the TM10CA register is changed while the counting operation is in progress, the value in the buffer
is loaded into the compare register the next time that TM10BC is cleared, and the interrupt cycle is then changed. If
the interrupt cycle will be changed while the counting operation is in progress, set TM10CA as a double-buffer
compare register.
■
Procedure for ending operation
(1) Stop the timer counting operation.
Set TM10CNE to "0" in the TM10MD register, stopping the counting operation.
(2) Initialize the timer, if necessary.
If TM10LDE is set to "1" in the TM10MD register, TM10BC is cleared and the timer output is reset. If the
TM10CA register is set as a double-buffer, the value in the compare register buffer is loaded into the
compare register.
If TM10LDE is not set to "1" after the timer is stopped, the binary counter, the compare register and the pin
output are maintained as they were before the timer was stopped. If TM10CNE is set to "1" again, the
count resumes from the state that was in effect immediately before the timer was stopped.
[Note]
The pin input is sampled according to IOCLK. Input a signal with a pulse width of at least 6, 3, or 1.5 SYSCLK
cycles when (MCLK frequency/SYSCLK frequency) = 1, 2, or 4, respectively.
Also note that event counting is not possible when IOCLK is stopped (in HALT or STOP mode).
Fig. 11-6-15
Event Count Operation (When “Rising Edge” is Selected)
IOCLK
Pin input
(TM10IOB)
x'0000
x'0001
TM10CA value
TM10CA value-1
Count clock
TM10BC value
Compare/capture A
interrupt request
Summary of Contents for MN103001G/F01K
Page 1: ...MICROCOMPUTER MN1030 MN103001G F01K LSI User s Manual Pub No 23101 050E ...
Page 2: ......
Page 4: ......
Page 6: ......
Page 8: ......
Page 9: ...Table of Contents List of Figures and Tables 0 ...
Page 26: ...xviii ...
Page 27: ...1 0 1 General Specifications ...
Page 35: ...2 CPU 2 ...
Page 57: ...3 Extension Instruction Specifications 3 ...
Page 96: ...Extension Instruction Specifications 3 40 ...
Page 97: ...4 Memory Modes 3 4 ...
Page 102: ...Memory Modes 4 6 ...
Page 103: ...5 Operating Mode 5 ...
Page 107: ...6 Clock Generator 6 13 ...
Page 111: ...7 Internal Memory 7 ...
Page 114: ...Internal Memory 7 4 ...
Page 115: ...8 Bus Controller BC 8 ...
Page 189: ...9 Interrupt Controller 9 ...
Page 220: ...Interrupt Controller 9 32 ...
Page 221: ...10 8 bit Timers 9 10 ...
Page 254: ...8 bit Timers 10 34 ...
Page 255: ...11 16 bit Timers 11 ...
Page 292: ...16 bit Timers 11 38 ...
Page 293: ...12 Watchdog Timer 11 12 ...
Page 302: ...Watchdog Timer 12 10 ...
Page 303: ...13 Serial Interface 13 ...
Page 354: ...Serial Interface 13 52 ...
Page 355: ...14 A D Converter 14 ...
Page 367: ...15 I O Ports 15 ...
Page 431: ...16 Internal Flash Memory 16 ...
Page 439: ...17 17 Ordering Mask ROM ...
Page 442: ...Ordering Mask ROM 17 4 ...
Page 443: ...Appendix ...