Chapter 25 FlexPWM
MPC5602P Microcontroller Reference Manual, Rev. 4
Freescale Semiconductor
663
25.6.3.6
Value register 1 (VAL1)
The 16-bit signed value written to this register defines the modulo count value (maximum count) for the
submodule counter. Upon reaching this count value, the counter will reload itself with the contents of the
INIT register. This register is not byte accessible.
NOTE
The VAL1 register is buffered. The value written does not take effect until
the LDOK bit is set and the next PWM load cycle begins. VAL1 cannot be
written when LDOK is set. Reading VAL1 reads the value in a buffer and
not necessarily the value the PWM generator is currently using.
25.6.3.7
Value register 2 (VAL2)
The 16-bit signed value in this register defines the count value to set PWMA high (
register is not byte accessible.
NOTE
The VAL2 register is buffered. The value written does not take effect until
the LDOK bit is set and the next PWM load cycle begins. VAL2 cannot be
written when LDOK is set. Reading VAL2 reads the value in a buffer and
not necessarily the value the PWM generator is currently using.
Address: Base + 0x000A (Submodule 0)
Base + 0x005A (Submodule 1)
Base + 0x00AA (Submodule 2)
Base + 0x00FA (Submodule 3)
Access: User read/write
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
R
VAL1
W
Reset
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Figure 25-8. Value Register 1 (VAL1)
Address: Base + 0x000C (Submodule 0)
Base + 0x005C (Submodule 1)
Base + 0x00AC (Submodule 2)
Base + 0x00FC (Submodule 3)
Access: User read/write
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
R
VAL2
W
Reset
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Figure 25-9. Value register 2 (VAL2)