
8-bit Timers
10-20
10.6 Description of Operation
This section describes the operation of the 8-bit timers.
10.6.1
Interval Timers and Timer Output
When using an 8-bit timer as an interval timer, make the appropriate settings according to the procedure described
below.
The timer in question then operates as an interval timer that generates interrupts on the set cycle. (Refer to Figs.
10-6-1 to 10-6-3.)
When using the timers as a 16-, 24- or 32-bit timer by means of a cascaded connection, refer to section
10.6.3, "Cascaded Connection."
The procedure for generating the reference clock for the serial interfaces and for generating the A/D conversion
start trigger is the same.
■
Procedure for initiating operation
(1) Set the timer division ratio.
Set the division ratio in TMnBR.
The interrupt request cycle is then:
(value set in TMnBR + 1) x Clock source cycle
(2) Select the clock source.
Select the clock source through TMnCK[2:0] in the TMnMD register. When using either 1/8 IOCLK or 1/32
IOCLK as the clock source, set TMPSCNE to "1" in the TMPSCNT register to enable prescaler operation.
(3) Output mode setting (Applies to timers 4 to B only.)
Set TMnOM[1:0] in the TMnMD register to underflow 1/2 cycle output, and select the polarity after initialization.
(4) Initialize the timer.
Set TMnLDE to "1" in the TMnMD register to initialize timer n. The value set in TMnBR is loaded into
TMnBC as the initial value, and the timer output is reset.
After initialization, be certain to set TMnLDE to "0" to return to normal operation mode.
(5) Set the I/O port. (Applies when using timer output.)
Select the output signal in the TMOSL register.
Set the I/O port to the timer output pin.
Select the timer output for the output signal in the I/O port register, and then set it to the output pin.
Note : For details on the I/O port register settings, refer to chapter 15, "I/O Ports."
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 ...