English
Language : 

MC68HC11PH8 Datasheet, PDF (167/264 Pages) Motorola, Inc – High-density Complementary Metal Oxide Semiconductor (HCMOS) Microcomputer Unit
8.2.6 PWCNT1–4 — PWM timer counter registers 1 to 4
Address bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
State
on reset
Pulse width count 1 (PWCNT1) $0064 (bit 7) (6) (5) (4) (3) (2) (1) (bit 0) 0000 0000
Pulse width count 2 (PWCNT2) $0065 (bit 7) (6) (5) (4) (3) (2) (1) (bit 0) 0000 0000
Pulse width count 3 (PWCNT3) $0066 (bit 7) (6) (5) (4) (3) (2) (1) (bit 0) 0000 0000
Pulse width count 4 (PWCNT4) $0067 (bit 7) (6) (5) (4) (3) (2) (1) (bit 0) 0000 0000
Each channel has its own counter which can be read at any time without affecting the count or the
operation of the PWM channel. Writing to a counter causes it to be reset to $00; this is generally
done before the counter is enabled. A counter may also be written to whilst it is enabled; this may
cause a truncated PWM period.
8.2.7 PWPER1–4 — PWM timer period registers 1 to 4
Address bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
State
on reset
Pulse width period 1 (PWPER1) $0068 (bit 7) (6) (5) (4) (3) (2) (1) (bit 0) 1111 1111
Pulse width period 2 (PWPER2) $0069 (bit 7) (6) (5) (4) (3) (2) (1) (bit 0) 1111 1111
Pulse width period 3 (PWPER3) $006A (bit 7) (6) (5) (4) (3) (2) (1) (bit 0) 1111 1111
8
Pulse width period 4 (PWPER4) $006B (bit 7) (6) (5) (4) (3) (2) (1) (bit 0) 1111 1111
There is one period register for each channel. The value in this register determines the period of
the associated PWM timer channel. PWPERx is connected internally to a buffer which compares
directly with the counter register. The period value in PWPERx is loaded into the buffer when the
counter is cleared by the termination of the previous period or by a write to the counter. This
register can be written at any time, and the written value will take effect from the start of the next
PWM timer cycle. Reads of this register return the most recent value written.
MC68HC11PH8
TIMING SYSTEM
TPG
MOTOROLA
8-33