English
Language : 

PXS20RM Datasheet, PDF (450/1368 Pages) Freescale Semiconductor, Inc – PXS20 Microcontroller
Enhanced Motor Control Timer (eTimer)
This read/write register is the counter for this channel of the timer module. This register is not byte
accessible.
20.4.3.8 Control Register 1 (CTRL1)
eTimer_CHNL 0
1
2
3
4
5
6
7
8
9
10 11 12 13 14 15
_BASE + $E
Read
Write
Reset
CNTMODE[2:0]
0000
PRISRC[4:0]
0 00
ONCE
LEN
GTH
DIR
SECSRC[4:0]
0 0 0 0 0 0 000
Figure 20-10. Control Register 1 (CTRL1)
CNTMODE - Count Mode
These bits control the basic counting and behavior of the counter.
Table 20-3. Count Mode Values
Value
Meaning
000 No Operation
001 Count rising edges of primary source1
010 Count rising and falling edges of primary source2
011 Count rising edges of primary source while secondary input high active
100 Quadrature count mode, uses primary and secondary sources
101 Count primary source rising edges, secondary source specifies direction (1 = minus)3
110 Edge of secondary source triggers primary count till compare
111 Cascaded counter mode, up/down4
NOTES:
1 Rising edges counted only when PIPS = 0. Falling edges counted when PIPS = 1. If primary count
source is IP bus clock, only rising edges are counted regardless of PIPS value.
2 IP Bus clock divide by 1 can not be used as a primary count source in edge count mode.
3 Rising edges counted only when PIPS = 0. Falling edges counted when PIPS = 1.
4 Primary count source must be set to one of the counter outputs.
PRISRC - Primary Count Source
These bits select the primary count source.
Table 20-4. Primary Count Source Values
Value
00000
00001
00010
00011
00100
00101
Counter #0 input pin
Counter #1 input pin
Counter #2 input pin
Counter #3 input pin
Counter #4 input pin
Counter #5 input pin
Meaning
20-8
PXS20 Microcontroller Reference Manual, Rev. 1
Freescale Semiconductor