English
Language : 

PXS20RM Datasheet, PDF (461/1368 Pages) Freescale Semiconductor, Inc – PXS20 Microcontroller
Enhanced Motor Control Timer (eTimer)
CPT2MODE - Capture 2 Mode Control
These bits control the operation of the CAPT2 register as well as the operation of the ICF2 flag by
defining which input edges cause a capture event. The input source is the secondary count source.
Table 20-13. Values for Capture 2 Mode Control
Value
00
01
10
11
Disabled
Capture falling edges
Capture rising edges.
Capture any edge.
Meaning
CPT1MODE - Capture 1 Mode Control
These bits control the operation of the CAPT1 register as well as the operation of the ICF1 flag by
defining which input edges cause a capture event. The input source is the secondary count source.
Table 20-14. Values for Capture 1 Mode Control
Value
Meaning
00
Disabled
01
Capture falling edges
10
Capture rising edges.
11
Capture any edge.
CFWM - Capture FIFO Water Mark
This field represents the water mark level for the CAPT1 and CAPT2 FIFOs. The capture flags, ICF1
and ICF2, won’t be set until the word count of the corresponding FIFO is greater than this water mark
level.
ONESHOT - One Shot Capture Mode
This bit selects between free running and one shot mode for the input capture circuitry.
1 = One shot mode is selected.
If both capture circuits are enabled, then capture circuit 1 is armed first after the ARM bit is set.
Once a capture occurs, capture circuit 1 is disarmed and capture circuit 2 is armed. After capture
circuit 2 performs a capture, it is disarmed and the ARM bit is cleared. No further captures will
be performed until the ARM bit is set again.
If only one of the capture circuits is enabled, then a single capture will occur on the enabled
capture circuit and the ARM bit is then cleared.
0 = Free running mode is selected
If both capture circuits are enabled, then capture circuit 1 is armed first after the ARM bit is set.
Once a capture occurs, capture circuit 1 is disarmed and capture circuit 2 is armed. After capture
circuit 2 performs a capture, it is disarmed and capture circuit 1 is re-armed. The process
continues indefinitely.
Freescale Semiconductor
PXS20 Microcontroller Reference Manual, Rev. 1
20-19