CYW20738
1.13 PWM
The CYW20738 has four internal PWM channels. The PWM module consists of the following:
■ PWM1–4
■ Each of the four PWM channels, PWM1–4, contains the following registers:
❐ 10-bit initial value register (read/write)
❐ 10-bit toggle register (read/write)
❐ 10-bit PWM counter value register (read)
■ The PWM configuration register is shared among PWM1–4 (read/write). This 12-bit register is used:
❐ To configure each PWM channel.
❐ To select the clock of each PWM channel
❐ To change the phase of each PWM channel
Figure 8 shows the structure of one PWM channel.
Figure 8. PWM Channel Block Diagram
pwm_cfg_adr register
pwm#_init_val_adr register
10
pwm#_togg_val_adr register
10
pwm#_cntr_adr
10
cntr value is CM3-readable
pwm_out
Example: PWM cntr w/ pwm#_init_val = 0 (dashed line)
PWM cntr w/ pwm#_init_val = x (solid line)
10'H3FF
pwm_togg_val_adr
10'Hx
10'H000
pwm_out
Document Number: 002-14891 Rev. *C
Page 15 of 42