
8-bit Timers
10-27
Make the settings described below when cascading 8-bit timers.
(1) Set the timer division ratio.
Set the timer division ratio in TMnBR.
(Example 1)
When using timers 0 and 1 as 16-bit timers and setting the interrupt cycle to x'1234:
In order to set the interrupt cycle to x'1234,
x'1234 - 1 = x'1233
must be set in TMnBR.
Set x'33 in the low-order byte, TM0BR, and x'12 in the high-order byte, TM1BR.
Because TMnBR can be accessed via 16-bit or 32-bit access, values can be set in multiple registers
simultaneously. (When cascading timers 1 and 2, 5 and 6, and 9 and A, or when using them as 24-bit timers, it
is not possible to simultaneously access only the registers for the cascaded timers.)
When changing the values that are set in TMnBR while the counter is in operation, change TMnBR for the
cascaded timers simultaneously.
(2) Select the clock source.
Select any desired clock source for the lowest-order timer.
Set the clock source for the higher timers (all except for the lowest timer) to "cascaded connection."
(Example 1)
When using timer 0 and timer 1 as a 16-bit timer
Set the desired clock source for timer 0.
Set the clock source for timer 1 to "cascaded connection."
(Example 2)
When using timers 0, 1, 2 and 3 as a 32-bit timer
Set the desired clock source for timer 0.
Set the clock source for timers 1, 2 and 3 to "cascaded connection."
(3) Initialize the timers
Set the TMnLDE flag to "1" for all cascaded timers in order to initialize the timers. (It is not necessary to set
the bit simultaneously in all of the registers.)
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 ...