CY7C67300
PWM Registers
There are eleven registers dedicated to PWM operation. Each of these registers are covered in this section and summarized in Table 124.
Table 124. PWM Registers
|
| Register Name |
|
|
|
| Address |
| R/W | ||||
PWM Control Register |
|
|
|
|
|
| 0xC0E6 |
| R/W | ||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PWM Maximum Count Register |
|
|
|
| 0xC0E8 |
| R/W | ||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PWM0 Start Register |
|
|
|
|
|
| 0xC0EA |
| R/W | ||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PWM0 Stop Register |
|
|
|
|
|
| 0xC0EC |
| R/W | ||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PWM1 Start Register |
|
|
|
|
|
| 0xC0EE |
| R/W | ||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PWM1 Stop Register |
|
|
|
|
|
| 0xC0F0 |
| R/W | ||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PWM2 Start Register |
|
|
|
|
|
| 0xC0F2 |
| R/W | ||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PWM2 Stop Register |
|
|
|
|
|
| 0xC0F4 |
| R/W | ||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PWM3 Start Register |
|
|
|
|
|
| 0xC0F6 |
| R/W | ||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PWM3 Stop Register |
|
|
|
|
|
| 0xC0F8 |
| R/W | ||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PWM Cycle Count Register |
|
|
|
|
|
| 0xC0FA |
| R/W | ||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PWM Control Register [0xC0E6] [R/W] |
|
|
|
|
|
|
|
|
|
| |||
Table 125. PWM Control Register |
|
|
|
|
|
|
|
|
|
| |||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Bit # | 15 | 14 |
| 13 | 12 |
| 11 |
| 10 |
| 9 | 8 |
|
Field | PWM |
|
| Reserved |
|
|
|
| Prescale |
| Mode |
| |
Enable |
|
|
|
|
|
|
| Select |
| Select |
| ||
Read/Write | R/W | - |
| - | - |
| R/W |
| R/W |
| R/W | R/W |
|
Default | 0 | 0 |
| 0 | 0 |
| 0 |
| 0 |
| 0 | 0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Bit # | 7 | 6 |
| 5 | 4 |
| 3 |
| 2 |
| 1 | 0 |
|
| PWM 3 | PWM 2 |
| PWM 1 | PWM 0 |
| PWM 3 |
| PWM 2 |
| PWM 1 | PWM 0 |
|
Field | Polarity | Polarity |
| Polarity | Polarity |
| Enable |
| Enable |
| Enable | Enable |
|
Select | Select |
| Select | Select |
|
|
|
|
|
|
|
| |
Read/Write | R/W | R/W |
| R/W | R/W |
| R/W |
| R/W |
| R/W | R/W |
|
Default | 0 | 0 |
| 0 | 0 |
| 0 |
| 0 |
| 0 | 0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Register Description
The PWM Control register provides high level control over all four of the PWM channels.
PWM Enable (Bit 15)
The PWM Enable bit starts and stops PWM operation.
1:Start operation
0:Stop operation Prescale Select (Bits [11:9])
The Prescale Select field sets the frequency of all the PWM channels as defined in Table 126.
Table 126. Prescaler Select Definition
Prescale Select [11:9] | Frequency |
000 | 48.00 MHz |
|
|
001 | 24.00 MHz |
|
|
010 | 06.00 MHz |
|
|
011 | 01.50 MHz |
|
|
100 | 375 kHz |
|
|
101 | 93.80 kHz |
|
|
110 | 23.40 kHz |
|
|
111 | 05.90 kHz |
|
|
Document #: | Page 75 of 99 |
[+] Feedback