English
Language : 

PXS20RM Datasheet, PDF (448/1368 Pages) Freescale Semiconductor, Inc – PXS20 Microcontroller
Enhanced Motor Control Timer (eTimer)
20.4.2 Register descriptions
The address of a register is the sum of a base address and an address offset. The base address is defined at
the chip level and the address offset is defined at the module level. There are a set of registers for each
timer channel, a set for the watchdog timer, a set for the fault inputs, and a set of configuration registers.
20.4.3 Timer Channel Registers
These registers are repeated for each timer channel. The base address of channel 0 is the same as the base
address of the eTimer module as a whole. The base address of channel 1 is $20. This is the base address
of the eTimer module plus an offset based on the number of bytes of registers in a timer channel. The base
address of each subsequent timer channel is equal to the base address of the previous channel plus this
same offset of $20.
20.4.3.1 Compare Register 1 (COMP1)
eTimer_CHNL 0
1
2
3
4
5
6
7
8
9
10 11 12 13 14 15
_BASE + $0
Read
Write
COMP1[15:0]
Reset
0000 0 0 0000 0 0 0 000
Figure 20-3. Compare Register 1 (COMP1)
This read/write register stores the value used for comparison with the counter value. This register is not
byte accessible. More explanation on the use of COMP1 can be found in Section 20.5.2.13, Usage of
Compare Registers.
20.4.3.2 Compare Register 2 (COMP2)
eTimer_CHNL 0
1
2
3
4
5
6
7
8
9
10 11 12 13 14 15
_BASE + $2
Read
Write
COMP2[15:0]
Reset
0000 0 0 000 0 0 0 0 000
Figure 20-4. Compare Register 2 (COMP2)
This read/write register stores the value used for comparison with the counter value. This register is not
byte accessible. More explanation on the use of COMP2 can be found in Section 20.5.2.13, Usage of
Compare Registers.
20.4.3.3 Capture Register 1 (CAPT1)
eTimer_CHNL_ 0
1
2
3
4
5
6
7
8
9 10 11 12 13 14 15
BASE + $4
Read
CAPT1[15:0]
Write
Reset
0 0 0 0 0 0 0 0 0 0 0 0 0 000
Figure 20-5. Capture Register 1 (CAPT1)
20-6
PXS20 Microcontroller Reference Manual, Rev. 1
Freescale Semiconductor