English
Language : 

PXS20RM Datasheet, PDF (683/1368 Pages) Freescale Semiconductor, Inc – PXS20 Microcontroller
25.4.3.1 Counter Register (CNT)
Flexible Motor Control Pulse Width Modulator Module (FlexPWM)
PWM_SUB_
BASE+$0
0
1
2
3
4
5
6
7
8
9 10 11 12 13 14 15
Read
CNT
Write
Reset
000000000000 0 000
Figure 25-35. Counter Register (CNT)
This read-only register displays the state of the signed 16-bit submodule counter. This register is not byte
accessible.
25.4.3.2 Initial Count Register (INIT)
PWM_SUB_
BASE+$2
0
1
2
3
4
5
6
7
8
9 10 11 12 13 14 15
Read
INIT
Write
Reset
000000000000 0 000
Figure 25-36. Initial Count Register (INIT)
The 16-bit signed value in this buffered, read/write register defines the initial count value for the PWM in
PWM clock periods. This is the value loaded into the submodule counter when local sync, master sync,
or master reload is asserted (based on the value of INIT_SEL) or when FORCE is asserted and force init
is enabled. For PWM operation, the buffered contents of this register are loaded into the counter at the
start of every PWM cycle. This register is not byte accessible.
NOTE
The INIT register is buffered. The value written does not take effect until the
LDOK bit is set and the next PWM load cycle begins or LDMOD is set. This
register cannot be written when LDOK is set. Reading INIT reads the value
in a buffer and not necessarily the value the PWM generator is currently
using.
25.4.3.3 Control 2 Register (CTRL2)
PWM_SUB
_BASE+$4
0
1
2
3
4
5
6
7
Read
Write
DBG
EN
WAI
TEN
PWM PWM PWM
IN- 23_ 45_ X_
DEP
INIT INIT INIT
INIT_SEL
Reset
00000000
89
0
FRC
EN
FOR
CE
00
10 11 12
FORCE_SEL
000
13 14 15
RE-
LOA
D CLK_SEL
_SEL
000
Figure 25-37. Control 2 Register (CTRL2)
Freescale Semiconductor
PXS20 Microcontroller Reference Manual, Rev. 1
25-37