![Cmsemicon BAT32G1 9 Series Скачать руководство пользователя страница 170](http://html1.mh-extra.com/html/cmsemicon/bat32g1-9-series/bat32g1-9-series_user-manual_2627609170.webp)
BAT32G1x9 user manual | Chapter 6 Universal timer unit Timer4/8
170 / 1149
Rev.1.02
6.4.3
The 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 a 16-bit timer as the channel of two 8-
bit timers. Only Channel 1 and Channel 3 can run the function using the 8-bit timer, and several rules need to be
observed when using it.
The basic rules for the 8-bit timer operation 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, place the SPLIT position "1" of the timer mode register mn (TMRmn).
3)
The high 8-bit timer can be used as an interval timer function.
4)
At start operation, the high 8-bit timer outputs INTMm1H/INTTMm3H (interrupt) (the same operation as
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 TMRmn register.
6)
For high 8-bit timers, the channel operation is started by operating the TSHm1/TSHm3 bits, and the
channel operation is stopped by operating the TTHm1/TTHm3 bits. The status of the channel can be
confirmed by tehm1/TEHm3 bits.
7)
The operation of the low 8-bit timer depends on the setting of the TMRmn register, and there are 3
functions that support the operation of the low 8-bit timer:
•
Interval timer function
•
External event counter functionality
•
Delay counting function
8)
For low 8-bit timers, the channel operation is started by operating the TSm1/TSm3 bits, and the channel
operation is stopped by operating the TTm1/TTm3 bits. The status of the channel can be confirmed by the
TEm1/TEm3 bits.
9)
When running on a 16-bit timer, the operation of TSHm1/TSHm3/TTHm1/TTHm3 bits is invalid. Operate
Channels 1 and 3 by operating TSm1/TSm3 bits and TTm1/TTm3 bits. TeHm3 bit and TEHm1 bit
unchanged.
10) The 8-bit timer function cannot use the linkage operation function (single trigger pulse, PWM, and multiple
PWM).
Note: m: Unit number (m=0)n: Channel number (n=1,
3).