EasyManua.ls Logo

Cmsemicon CMS32L051 - Basic Rules for the 8-Bit Timer to Operate the Function

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 143 / 703
5.4.2 Basic rules for the 8-bit timer to operate the function (limited to Channel 1 and Channel 3
of Unit 0).
The 8-bit timer operation function is the function of using the channel of the 16-bit timer as the channel of
two 8-bit timers.
Only Channel 1 and Channel 3 can use the 8-bit timer operation function, and there are several rules to
be observed when using.
The basic rules for the 8-bit timer to run the function are as follows.
1) The 8-bit timer operation function is only available for Channel 1 and Channel 3.
2) When used as an 8-bit timer, the SPLIT position of the timer mode register mn (TMRmn) is 1.
3) The high 8-bit timer can be used as an interval timer function.
4) At the beginning of operation, the high 8-bit timer outputs INTTMm1H/INTTMm3H (interrupt) (the
same as the operation of MDmn0 bit 1).
5) The choice of operating clock for a high 8-bit timer depends on the setting of the CKSmn1 bit and
CKSmn0 bits of the low-bit TMRmn register.
6) For the high 8-bit timer, the operation of the channel is started by operating the TSHm1/TSHm3 bits,
and the operation of the channel is stopped by operating the TTHm1/TTHm3 bits. The status of the
channel can be confirmed by the TEHm1/TEHm3 bits.
7) The operation of the low 8-bit timer depends on the setting of the TMRmn register, and there are
three functions that support the operation of the low 8-bit timer:
 Interval timer function
External event counter function
 Delay counting function
8) For the low 8-bit timer, the operation of the channel is started by operating the TSm1/TSm3 bits, and
the operation of the channel is stopped by operating the TTm1/TTm3 bits. The status of the channel
can be confirmed by the TEm1/TEm3 bits.
9) The operation of the TSHm1/TSHm3/TTHm1/TTHm3 bits is invalid when the 16-bit timer is running.
Channel 1 and Channel 3 operate by operating the TSm1/TSm3 bits and the TTm1/TTm3 bits.
TEHm3 bits and TEHm1 bits are unchanged.
10) The 8-bit timer function cannot use the linkage operation function (single trigger pulse, PWM, and
multiple PWM).
Remarks m: Unit number (m=0) n: Channel number (n=1, 3).

Table of Contents

Related product manuals