EasyManua.ls Logo

Cmsemicon CMS32L051 - Start Timing of Counter

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 146 / 703
5.5.2 Start timing of counter
The timer count register mn (TCRmn) enters the operating enable state by placing the TSmn
position bit of the timer channel start register m (TSm).
The operation from the counting enabled state to the start of the timer count register mn (TCRmn) is
shown in Table 5-5.
Table5-5 Operation from the counting enabled state to the start of the timer count register mn (TCRmn)
Operating mode of the timer
Operation after setting the TSmn bit to 1
Interval timer mode
No action is taken from the time the start trigger is detected (TSmn=1) until the
count clock is generated.
The value of the TDRmn register is loaded into the TCRmn register by the first
count clock and the count is decremented by the subsequent count clock (see
Operation in 5.5.3(1) Interval Timer Mode ).
Event counter mode
Load the value of the TDRmn register into the TCRmn register by writing 1 to the
TSmn bit.
If the input edge of TImn is detected, the count is decremented by the subsequent
count clock. (Refer to 5.5.3(2) Operation of Event Counter Mode).
Capture mode
No action is taken from the time the start of the trigger is detected until the count
clock is generated.
The 0000H is loaded into the TCRmn register by the first count clock and the
count is incremented by the subsequent count clock (refer to the operation of the
capture mode 5.5.3(3) (interval measurement of the input pulse).
Single count mode
By writing 1 to the TSmn bit in the state where the timer is stopped (TEmn=0), it
enters the start trigger, etc
Pending status.
No action is taken from the time the start of the trigger is detected until the count
clock is generated.
The value of the TDRmn register is loaded into the TCRmn register by the first count
clock and passed through subsequent meters
The number of clocks is decremented (see 5.5.3(4) Single-Count Mode Operation).
Capture & Single Count Mode
By writing 1 to the TSmn bit in the state where the timer is stopped (TEmn=0), it
enters the start trigger, etc
Pending status.
No action is taken from the time the start of the trigger is detected until the count
clock is generated.
0000H is loaded into the TCRmn register by the first count clock and proceeded
via subsequent count clocks
Increment count (see 5.5.3(5) Capture & Operation of Single Count Mode
(Measurement of High Level Width)).

Table of Contents

Related product manuals