MC68HC05T16
MOTOROLA
8-1
PULSE WIDTH MODULATOR
8
8
PULSE WIDTH MODULATOR
The MC68HC05T16 has 10 PWM channels, with output pins shared with port E and port F pins.
Nine 7-bit channels are driven by the Timer clock, the other single 14-bit channel is driven by the
CPU clock. All PWM outputs are +12V open-drain type; therefore a pull-up resistor is required at
each PWM pin.
8.1
7-Bit PWM Channels
The 7-bit PWM system works in conjunction with the 16-bit free running timer to implement nine
channels of conversion. A PWM register is allocated for each PWM channel. Channels PWM0 to
PWM8, located at $2C to $34 respectively. Each 7-bit PWM data register has the same bit
structure as shown below:
The driving clock for the 7-bit PWM channels is the 16-bit free-running timer clock divide by 2. For
a 2.1MHz CPU clock, PWM clock = 2.1MHz/4/2 = 262500Hz. The PWM pulse period is
128 x 1/262500Hz = 487.62
µ
s, i.e. a repetition frequency of 2050.8Hz. The duty cycle is
proportional to the value in the corresponding PWM data register. A value of $00 loaded into these
registers results in a continuously low output on the corresponding PWM output pin with external
pull-up resistor connected. A value of $40 results in a 50% duty cycle output. The maximum value
of $7F results in a 127/128 duty cycle output.
Changes to the value in the PWM registers will only become effective after the end of the current
PWM cycle. This prevents erroneous PWM output during value update.
In Stop mode, the oscillator is stopped asynchronously with PWM operation. As a consequence,
the PWM output will remain at the state at the moment when the oscillator is stopped. The PWM
output might be at its high or low state at that moment, and it remains at that state until Stop mode
Address
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
State
on reset
PWM0
$2C
0PWM6
0PWM5
0PWM4
0PWM3
0PWM2
0PWM1
0PWM0
0000 0000
:
:
PWM8
$34
8PWM6
8PWM5
8PWM4
8PWM3
8PWM2
8PWM1
8PWM0
0000 0000
TPG
65
Содержание MC68HC05T16
Страница 2: ......
Страница 14: ...MOTOROLA vi MC68HC05T16 THIS PAGE LEFT BLANK INTENTIONALLY TPG 12 ...
Страница 16: ...MOTOROLA viii MC68HC05T16 THIS PAGE LEFT BLANK INTENTIONALLY TPG 14 ...
Страница 18: ...MOTOROLA x MC68HC05T16 THIS PAGE LEFT BLANK INTENTIONALLY TPG 16 ...
Страница 26: ...MOTOROLA 2 6 MC68HC05T16 PIN DESCRIPTIONS AND INPUT OUTPUT PORTS 2 THIS PAGE LEFT BLANK INTENTIONALLY TPG 24 ...
Страница 54: ...MOTOROLA 5 12 MC68HC05T16 TIMERS 5 THIS PAGE LEFT BLANK INTENTIONALLY TPG 52 ...
Страница 64: ...MOTOROLA 6 10 MC68HC05T16 M BUS SERIAL INTERFACE 6 THIS PAGE LEFT BLANK INTENTIONALLY TPG 62 ...
Страница 92: ...MOTOROLA 10 4 MC68HC05T16 ANALOG TO DIGITAL CONVERTER 10 THIS PAGE LEFT BLANK INTENTIONALLY TPG 90 ...
Страница 106: ...MOTOROLA 11 14 MC68HC05L1 CPU CORE AND INSTRUCTION SET 11 THIS PAGE LEFT BLANK INTENTIONALLY TPG 104 ...
Страница 110: ...MOTOROLA 12 4 MC68HC05T16 LOW POWER MODES 12 THIS PAGE LEFT BLANK INTENTIONALLY TPG 108 ...
Страница 116: ...MOTOROLA 13 6 MC68HC05T16 OPERATING MODES 13 THIS PAGE LEFT BLANK INTENTIONALLY TPG 114 ...
Страница 122: ...MOTOROLA 14 6 MC68HC05T16 ELECTRICAL SPECIFICATIONS 14 THIS PAGE LEFT BLANK INTENTIONALLY TPG 120 ...
Страница 124: ...MOTOROLA 15 2 MC68HC05T16 MECHANICAL SPECIFICATIONS 15 THIS PAGE LEFT BLANK INTENTIONALLY TPG 122 ...
Страница 127: ...2 1 3 4 5 6 7 8 9 10 11 12 13 14 15 ...