54
SiFive E300 Platform Reference Manual, Version 1.0.1
pwmcfg
wurst
pwmcount
pwms
pwmscale
reset
en
pwmzerocmp
pwmdeglitch
carryout
pwmcmp3
pwmcmp3ip
>=?
pwmcmp3center
pwms[15]
0
1
pwmcmp3gang
pwmcmp3gpio
pwmcmp2
pwmcmp2ip
>=?
pwmcmp2center
pwms[15]
0
1
pwmcmp2gang
pwmcmp2gpio
pwmcmp1
pwmcmp1ip
>=?
pwmcmp1center
pwms[15]
0
1
pwmcmp1gang
pwmcmp1gpio
pwmcmp0
pwmcmp0ip
>=?
pwmcmp0center
pwms[15]
0
1
pwmcmp0gang
pwmcmp0gpio
reset
pwmoneshoten
pwmstickyip
Figure 15.1: E300 PWM Peripheral.
PWM Configuration Register (
pwmcfg
)
pwmcmp3ip
31
pwmcmp2ip
30
pwmcmp1ip
29
pwmcmp0ip
28
pwmcmp3gang
27
pwmcmp2gang
26
pwmcmp1gang
25
pwmcmp0gang
24
R
eserve
d
23
20
pwmcmp3center
19
pwmcmp2center
18
pwmcmp1center
17
pwmcmp0center
16
R
eserve
d
15 14
pwmenoneshot
13
pwmenalways
12
R
eserve
d
11
pwmdeglitch
10
pwmzerocmp
9
pwmsticky
8
R
eserve
d
7
4
pwmscale
3
0
Figure 15.2: PWM configuration register
pwmcfg
The
pwmcfg
register contains various control and status information regarding the PWM peripheral,
as shown in Figure 15.2.
The
pwmen*
bits control the conditions under which the PWM counter
pwmcount
is incremented.
The counter increments by one each cycle only if any of the enabled conditions are true.
If the
pwmenalways
bit is set, the PWM counter increments continuously. When
pwmenoneshot
is
set, the counter can increment but
pwmenoneshot
is reset to zero once the counter resets, disabling
further counting (unless
pwmenalways
is set). The
pwmenoneshot
bit provides a way for software
to generate a single PWM cycle then stop. Software can set the
pwnenoneshot
again at any time
Summary of Contents for E300
Page 1: ...SiFive E300 Platform Reference Manual Version 1 0 1 c SiFive Inc ...
Page 2: ...2 SiFive E300 Platform Reference Manual Version 1 0 1 ...
Page 4: ...ii SiFive E300 Platform Reference Manual Version 1 0 1 ...
Page 12: ...4 SiFive E300 Platform Reference Manual Version 1 0 1 ...
Page 14: ...6 SiFive E300 Platform Reference Manual Version 1 0 1 ...
Page 22: ...14 SiFive E300 Platform Reference Manual Version 1 0 1 ...
Page 32: ...24 SiFive E300 Platform Reference Manual Version 1 0 1 ...
Page 40: ...32 SiFive E300 Platform Reference Manual Version 1 0 1 ...
Page 56: ...48 SiFive E300 Platform Reference Manual Version 1 0 1 ...
Page 60: ...52 SiFive E300 Platform Reference Manual Version 1 0 1 ...