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
Summary of Contents for MC68HC05T16
Page 2: ......
Page 14: ...MOTOROLA vi MC68HC05T16 THIS PAGE LEFT BLANK INTENTIONALLY TPG 12 ...
Page 16: ...MOTOROLA viii MC68HC05T16 THIS PAGE LEFT BLANK INTENTIONALLY TPG 14 ...
Page 18: ...MOTOROLA x MC68HC05T16 THIS PAGE LEFT BLANK INTENTIONALLY TPG 16 ...
Page 54: ...MOTOROLA 5 12 MC68HC05T16 TIMERS 5 THIS PAGE LEFT BLANK INTENTIONALLY TPG 52 ...
Page 64: ...MOTOROLA 6 10 MC68HC05T16 M BUS SERIAL INTERFACE 6 THIS PAGE LEFT BLANK INTENTIONALLY TPG 62 ...
Page 110: ...MOTOROLA 12 4 MC68HC05T16 LOW POWER MODES 12 THIS PAGE LEFT BLANK INTENTIONALLY TPG 108 ...
Page 116: ...MOTOROLA 13 6 MC68HC05T16 OPERATING MODES 13 THIS PAGE LEFT BLANK INTENTIONALLY TPG 114 ...