Chapter 25 FlexPWM
MPC5602P Microcontroller Reference Manual, Rev. 4
Freescale Semiconductor
657
25.6.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 core level and the address offset is defined at the module level. There are a set of registers for each
PWM submodule, for the configuration logic, and for each Fault channel.
25.6.3
Submodule registers
These registers are repeated for each PWM submodule.
25.6.3.1
Counter Register (CNT)
This read-only register displays the state of the signed 16-bit submodule counter. This register is not byte
accessible.
25.6.3.2
Initial Count Register (INIT)
The 16-bit signed value in this 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.
Address: Base + 0x0000 (Submodule 0)
Base + 0x0050 (Submodule 1)
Base + 0x00A0 (Submodule 2)
Base + 0x00F0 (Submodule 3)
Access: User read-only
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
R
CNT
W
Reset
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Figure 25-3. Counter Register (CNT)
Address: Base + 0x0002 (Submodule 0)
Base + 0x0052 (Submodule 1)
Base + 0x00A2 (Submodule 2)
Base + 0x00F2 (Submodule 3)
Access: User read/write
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
R
INIT
W
Reset
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Figure 25-4. Initial Count Register (INIT)