English
Language : 

MC68HC11PH8 Datasheet, PDF (162/264 Pages) Motorola, Inc – High-density Complementary Metal Oxide Semiconductor (HCMOS) Microcomputer Unit
8.2.1 PWM timer block diagram
Figure 8-5 shows the block diagram of the PWM timer subsystem. Three different clock sources
are selectable and provide inputs to the control registers. Each of the four channels has a counter,
a period register, and a duty register. The waveform output is the result of a match between the
period register (PWPERx) and the value in the counter (PWCNTx). The duty register (PWDTYx)
changes the state of the output during the period to determine the duty cycle.
8.2.2
PWCLK — PWM clock prescaler and 16-bit select register
Pulse width clock select (PWCLK)
Address bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
State
on reset
$0060 CON34 CON12 PCKA2 PCKA1 0 PCKB3 PCKB2 PCKB1 0000 0000
This register contains bits for selecting the 16-bit PWM options and the prescaler values for the clocks.
8.2.2.1 16-bit PWM function
The PWCLK register contains two control bits, each of which is used to concatenate a pair of PWM
channels into one 16-bit channel. Channels 3 and 4 are concatenated with the CON34 bit, and
8
channels 1 and 2 are concatenated with the CON12 bit.
When the 16-bit concatenated mode is selected, the clock source is determined by the low order
channel. Channel 2 is the low order channel when channels 1 and 2 are concatenated. Channel
4 is the low order channel when channels 3 and 4 are concatenated. The pins associated with
channels 1 and 3 can be used for general-purpose I/O when 16-bit PWM mode is selected.
Channel 1 registers are the high order byte of the double-byte channel when channels 1 and 2 are
concatenated. Channel 3 registers are the high order byte of the double-byte channel when
channels 3 and 4 are concatenated. Reads of the high order byte cause the low order byte to be
latched for one cycle to guarantee that double byte reads are accurate. Writes to the low byte of the
counter cause reset of the entire counter. Writes to the upper bytes of the counter have no effect.
CON34 — Concatenate channels 3 and 4
1 (set) – Channels 3 and 4 are concatenated into one 16-bit PWM channel.
0 (clear) – Channels 3 and 4 are separate 8-bit PWMs.
When concatenated, channel 3 is the high-order byte and the channel 4 pin (PH3) is the output.
CON12 — Concatenate channels 1 and 2
1 (set) – Channels 1 and 2 are concatenated into one 16-bit PWM channel.
0 (clear) – Channels 1 and 2 are separate 8-bit PWMs.
When concatenated, channel 1 is the high-order byte and the channel 2 pin (PH1) is the output.
MOTOROLA
8-28
TIMING SYSTEM
TPG
MC68HC11PH8