
ML62Q1000 Series User's Manual
Chapter 8 16-Bit Timer
FEUL62Q1000 8-9
8.2.4 16-Bit Timer n Mode Register (TMHnMOD: n = 0 to 7)
TMHnMOD (n = 0 to 7) is a specific function register (SFR) to control the operation mode of 16-bit timer.
Address:
0xF320(TMH0MODL/TMH0MOD), 0xF321(TMH0MODH),
0xF322(TMH1MODL/TMH1MOD), 0xF323(TMH1MODH),
0xF324(TMH2MODL/TMH2MOD), 0xF325(TMH2MODH),
0xF326(TMH3MODL/TMH3MOD), 0xF327(TMH3MODH),
0xF328(TMH4MODL/TMH4MOD), 0xF329(TMH4MODH),
0xF32A(TMH5MODL/TMH5MOD), 0xF32B(TMH5MODH),
0xF32C(TMH6MODL/TMH6MOD), 0xF32D(TMH6MODH),
0xF32E(TMH7MODL/TMH7MOD), 0xF32F(TMH7MODH)
Access:
R/W
Access size:
8/16 bit
Initial value:
0x0000
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Word
TMHnMOD
Byte
TMHnMODH
TMHnMODL
Bit
-
-
-
-
-
THn
NEG
THn
OST
THn
8BM
-
THn
DIV2
THn
DIV1
THn
DIV0
THn
EXS
THn
EX
-
THn
CS
R/W
R
R
R
R
R
R/W
R/W
R/W
R
R/W
R/W
R/W
R/W
R/W
R
R/W
Initial
value
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Bit no.
Bit symbol
name
Description
15 to
11
-
Reserved bit
10
THnNEG
This bit is used to choose the output polarity of timer out (TMHnOUT).
0:
Positive logic (initial level is "L") (initial value)
1:
Negative logic (initial level is "H")
9
THnOST
This bit is used to choose the operation mode of the 16-bit timer n.
0:
Repeat timer mode (initial value)
1:
One-shot timer mode
8
THn8BM
This bit is used to choose whether the timer works as one 16-bit timer or two channels of 8-bit
timer.
0:
16-bit timer mode (initial value)
1:
8-bit timer mode
7
-
Reserved bit
6 to 4
THnDIV2 to
THnDIV0
These bits are used to choose frequency dividing ratio for the count clock in the 16-bit timer n
timer.
000:
No dividing (initial value)
001:
1/2 of the timer clock
010:
1/4 of the timer clock
011:
1/8 of the timer clock
100:
1/16 of the timer clock
101:
1/32 of the timer clock
110:
1/64 of the timer clock
111:
1/128 of the timer clock
3
THnEXS
This bit is used to choose the external trigger supplied as the count clock of the 16-bit timer n.
0:
EXTRG0 (initial value)
1:
EXTRG1
2
THnEX
This bit is used to choose the count clock (THnCK) of the 16-bit timer n.
0:
The timer is counted by the clock chosen by the THnCS bit and divided by the ratio
chosen by the THnDIV2 to 0 bit. (initial value)
1:
The timer is counted by the rising edge of the external trigger signal detected by the
Содержание ML62Q1000 Series
Страница 17: ...Chapter 1 Overview...
Страница 112: ...Chapter 2 CPU and Memory Space...
Страница 154: ...Chapter 3 Reset Function...
Страница 166: ...Chapter 4 Power Management...
Страница 196: ...Chapter 5 Interrupts...
Страница 248: ...Chapter 6 Clock generation Circuit...
Страница 274: ...Chapter 7 Low Speed Time Base Counter...
Страница 291: ...Chapter 8 16 Bit Timer...
Страница 320: ...Chapter 9 Functional Timer FTM...
Страница 382: ...Chapter 10 Watchdog Timer...
Страница 402: ...Chapter 11 Serial Communication Unit...
Страница 456: ...Chapter 12 I2 C Bus Unit...
Страница 491: ...Chapter 13 I2 C Master...
Страница 512: ...Chapter 14 DMA Controller...
Страница 531: ...Chapter 15 Buzzer...
Страница 550: ...Chapter 16 Simplified RTC...
Страница 559: ...Chapter 17 GPIO...
Страница 594: ...Chapter 18 External Interrupt Function...
Страница 612: ...Chapter 19 CRC Generator...
Страница 632: ...Chapter 20 Analog Comparator...
Страница 644: ...Chapter 21 D A Converter...
Страница 655: ...Chapter 22 Voltage Level Supervisor...
Страница 676: ...Chapter 23 Successive Approximation Type A D Converter...
Страница 709: ...Chapter 24 Regulator...
Страница 714: ...Chapter 25 Flash Memory...
Страница 743: ...Chapter 26 Code Option...
Страница 750: ...Chapter 27 LCD Driver...
Страница 788: ...Chapter 28 On Chip Debug Function...
Страница 795: ...Chapter 29 Safety Function...
Страница 813: ...Appendix A...
Страница 881: ...Revision History...