W7500x Reference Manual Version1.1.0
198 / 399
How to set the PWM
Figure 38 shows the PWM setting flow step by step.
Figure 38 The PWM setting flow
21.4
PWM Channel-0 Registers (Base address : 0x4000_5000)
Channel-0 interrupt register(PWMCH0IR)
Base address : 0x4000_5000
Address offset : 0x00
Reset value : 0x0000_0000
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
res
res
res
res
res
res
res
res
res
res
res
res
res
res
res
res
Set the registers:
CHn_PR, CHn_MR,
CHn_LR, CHn_UDMR,
CHn_PDMR
Timer or Counter
mode?
CHn_TCMR[1:0] =
00 / Timer mode
CHn_TCMR[1:0] =
01 / Rising edge
10 / Falling edge
11 / both edge
Timer
Counter
PWM output?
Yes
No
CHn_PEEER[1:0] =
10 /
PWM output enable
and external input disable
Capture?
Yes
No
CHn_PEEER[1:0] =
01 /
PWM output disable
and external input enable
CHn_PEEER[1:0] =
00, 11 /
PWM output disable
and external input disable
Capture mode?
Falling
edge
Rising
edge
CHn_CMR =
0 / rising edge capture
CHn_CMR =
1 / falling edge capture
Dead zone
generation?
Yes
No
CHn_DZER =
1 / Dead zone enable
CHn_DZER =
0 / Dead zone disable
Set the register:
CHn_DZER
CHn_PEEER[1:0] =
01 /
PWM output disable
and external input enable
Содержание W7500
Страница 28: ...W7500x Reference Manual Version1 1 0 28 399 Memory map Figure 2 W7500x memory map ...
Страница 324: ...W7500x Reference Manual Version1 1 0 324 399 Figure 46 UART character frame ...
Страница 391: ...W7500x Reference Manual Version1 1 0 391 399 1 SSP1 must not drive the SSPTXD output in slave mode ...