EasyManua.ls Logo

Cmsemicon CMS32L051 - Page 171

Default Icon
703 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
V1.2.2
CMS32L051 User Manual |Chapter 5 Universal Timer Unit (Timer4)
www.mcu.com.cn 171 / 703
Figure 5-50 Example of register setting content for operation as a frequency divider
(a) Timer mode register 00 (TMR00).
CKS001
1/0
CKS000
0
0
CCS00
1
0
STS002
0
STS001
0
STS000
0
CIS001
1/0
CIS000
1/0
0 0
MD003
0
MD002
0
MD001
0
MD000
1/0
14 13 12 11 10 9 8 7 6 5 4 3 2 1 015
TMR00
operation mode of Channel N
000B: Interval Timer
Timn Pin input edge selection
00B: Detect falling edge
01B: Detect rising edge
10B: Detect both edges
11B: reserved
start trigger selection
000B: only select software to start trigger.
Count clock selection
1: Select TI00 pin output valid edge
operational clock (fMCK) selection
00B: select CK00 as operational clock of Channel 0.
10B: select CK01 as operational clock of channel 1.
operation configuration when start counting
0: when start counting, not to generate INTTMmn and do not generate inverted Phase Timer output.
1: when start counting, generate INTTMmn and generate inverted Phase Timer output.
(b) Timer output register 0 (TO0).
bit 0
TO0
TO00
1/0
0: Output 0 by TO00.
1: Output 1 by TO00.
(c) Timer output enable register 0 (TOE0).
bit 0
TOE0
TOE00
1/0
0: Stop TO00 output by the count run.
1: EnableTO00 output by the count run.
(d) Timer output level register 0 (TOL0).
bit 0
TOL0
TOLL00
0
0: Set 0 in the master channel output mode (TOM00=0).
(e) Timer output mode register 0 (TOM0).
bit n
TAT0
TOM00
0
0: Set the master channel output mode.

Table of Contents

Related product manuals