11. 14-Bit PWM (H8/3857 Group Only)
Rev.3.00 Jul. 19, 2007 page 313 of 532
REJ09B0397-0300
Bit 0—Clock Select 0 (PWCR0):
Bit 0 selects the clock supplied to the 14-bit PWM. This bit is a
write-only bit; it is always read as 1.
Bit 0: PWCR0
Description
0
The input clock is
φ
/2 (t
φ
∗
= 2/
φ
). The conversion period is 16,384/
φ
, with a
minimum modulation width of 1/
φ
.
(initial value)
1
The input clock is
φ
/4 (t
φ
∗
= 4/
φ
). The conversion period is 32,768/
φ
, with a
minimum modulation width of 2/
φ
.
Note: t
φ
: Period of PWM input clock
11.2.2
PWM Data Registers U and L (PWDRU, PWDRL)
Bit
7 6 5 4 3 2 1 0
PWDRU
⎯
⎯
PWDRU5
PWDRU4 PWDRU3 PWDRU2 PWDRU1 PWDRU0
Initial
value 1 1 0 0 0 0 0 0
Read/Write
⎯
⎯
W W W W W W
Bit
7 6 5 4 3 2 1 0
PWDRL PWDRL7 PWDRL6 PWDRL5
PWDRL4 PWDRL3 PWDRL2 PWDRL1 PWDRL0
Initial
value 0 0 0 0 0 0 0 0
Read/Write W W W W W W W W
PWDRU and PWDRL form a 14-bit write-only register, with the upper 6 bits assigned to PWDRU
and the lower 8 bits to PWDRL. The value written to PWDRU and PWDRL gives the total high-
level width of one PWM waveform cycle.
When 14-bit data is written to PWDRU and PWDRL, the register contents are latched in the PWM
waveform generator, updating the PWM waveform generation data. The 14-bit data should always
be written in the following sequence, first to PWDRL and then to PWDRU.
1. Write the lower 8 bits to PWDRL.
2. Write the upper 6 bits to PWDRU.
PWDRU and PWDRL are write-only registers. If they are read, all bits are read as 1.
Upon reset, PWDRU and PWDRL are initialized to H'C000.
Содержание F-ZTAT H8 Series
Страница 6: ...Rev 3 00 Jul 19 2007 page iv of xxiv REJ09B0397 0300...
Страница 194: ...7 RAM Rev 3 00 Jul 19 2007 page 168 of 532 REJ09B0397 0300...
Страница 234: ...8 I O Ports Rev 3 00 Jul 19 2007 page 208 of 532 REJ09B0397 0300...
Страница 274: ...9 Timers Rev 3 00 Jul 19 2007 page 248 of 532 REJ09B0397 0300...
Страница 352: ...12 A D Converter Rev 3 00 Jul 19 2007 page 326 of 532 REJ09B0397 0300...
Страница 466: ...16 Electrical Characteristics H8 3854 Group Rev 3 00 Jul 19 2007 page 440 of 532 REJ09B0397 0300...
Страница 561: ......