MC68HC705T16 MOTOROLA [Motorola, Inc], MC68HC705T16 Datasheet - Page 69

no-image

MC68HC705T16

Manufacturer Part Number
MC68HC705T16
Description
High-density complementary metal oxide semiconductor (HCMOS) microcontroller unit
Manufacturer
MOTOROLA [Motorola, Inc]
Datasheet
low cycle. A value of $7F results in a 50% duty cycle. The maximum value of $FF results in a
255/256 duty cycle. The 14-bit PWM period is 256x0.476 s=121.9 s for a CPU clock of 2.1MHz.
The 6-bit register acts as a binary rate multiplier (BRM). The value set in this register (powers of 2)
equals the number of pulses (pulse width equals to the PWM driving clock cycle) equally
distributed in a 64-PWM-cycle. A maximum value of $2x will have 32 pulses equally distributed in
64 PWM cycles (64 cycles has a period of 64x121.9 s=7.8ms).
Combining the 8-bit PWM together with the 6-bit BRM, the total average duty cycle at the output
will be (M+N/64)/256, where M is the content of the 8-bit high-order register, and N is the content
of the 6-bit low-order register. Using this mechanism, a true 14-bit resolution PWM is achieved.
Figure 8-2 shows the waveform for the 14-bit PWM channel. Note that the resulting waveform is
periodic on every 64 PWM cycles.
MC68HC05T16
M=$00
M=$01
M=$7F
M=$FF
T=1 CPU clock period (0.476 s if CPU clock=2.1MHz)
M = value set in 8-bit PWM register (address $36)
N = value set in 6-bit binary rate multiplier (address $35)
--xxxxx1
--xxxx1x
--xxx1xx
--xx1xxx
--x1xxxx
--1xxxxx
N
T
PWM cycles where pulses are inserted in a 64-cycle frame
32
16, 48
8, 24, 40, 56
4, 12, 20, 28, 36, 44, 52, 60
2, 6, 10, 14, 18, 22, 26, 30, 34, 38, 42, 46, 50, 54, 58, 62
1, 3, 5, 7, ......61, 63
Figure 8-2 14-Bit PWM Output Waveform
128T
PULSE WIDTH MODULATOR
Pulse inserted at end of PWM cycle
depends on setting of N.
256T
255T
255T
128T
pulses in a 64-cycle
Number of inserted
16
32
1
2
4
8
T
MOTOROLA
TPG
8-3
8

Related parts for MC68HC705T16