How To Set The Pwm; Pwm Channel-0 Registers (Base Address : 0X4000_5000); Channel-0 Interrupt Register(Pwmch0Ir) - Wiznet W7500 Reference Manual

W7500 series
Hide thumbs Also See for W7500:
Table of Contents

Advertisement

How to set the PWM

Figure 38 shows the PWM setting flow step by step.
CHn_PEEER[1:0] =
10 /
PWM output enable
and external input disable
Yes
CHn_DZER =
1 / Dead zone enable
Set the register:
CHn_DZER

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
res
res
res
res
W7500x Reference Manual Version1.1.0
CHn_TCMR[1:0] =
00 / Timer mode
Yes
No
Dead zone
generation?
CHn_DZER =
0 / Dead zone disable
Figure 38 The PWM setting flow
27
26
25
res
res
res
Set the registers:
CHn_PR, CHn_MR,
CHn_LR, CHn_UDMR,
CHn_PDMR
Timer
Timer or Counter
mode?
No
PWM output?
Yes
CHn_PEEER[1:0] =
01 /
PWM output disable
and external input enable
Falling
edge
CHn_CMR =
0 / rising edge capture
24
23
22
21
res
res
res
res
Counter
CHn_TCMR[1:0] =
01 / Rising edge
10 / Falling edge
11 / both edge
CHn_PEEER[1:0] =
01 /
PWM output disable
and external input enable
No
Capture?
CHn_PEEER[1:0] =
00, 11 /
PWM output disable
and external input disable
Rising
edge
Capture mode?
CHn_CMR =
1 / falling edge capture
20
19
18
res
res
res
198 / 399
17
16
res
res

Advertisement

Table of Contents
loading

This manual is also suitable for:

W7500p

Table of Contents