MC68HC12 MOTOROLA [Motorola, Inc], MC68HC12 Datasheet - Page 233

no-image

MC68HC12

Manufacturer Part Number
MC68HC12
Description
The MC68HC912DT128A microcontroller unit (MCU) is a 16-bit device composed of standard on-chip peripherals including a 16-bit central processing unit
Manufacturer
MOTOROLA [Motorola, Inc]
Datasheet
PWSCAL0 — PWM Scale Register 0
PWSCNT0 — PWM Scale Counter 0 Value
PWPRES — PWM Prescale Counter
MC68HC912DT128A — Rev 4.0
MOTOROLA
RESET:
RESET:
RESET:
Bit 7
Bit 7
Bit 7
Bit 7
Bit 7
0
0
0
0
Bit 6
6
6
0
6
6
0
6
0
PWPRES is a free-running 7-bit counter. Read anytime. Write only in
special mode (SMOD = 1).
Read and write anytime. A write will cause the scaler counter PWSCNT0
to load the PWSCAL0 value unless in special mode with DISCAL = 1 in
the PWTST register.
PWM channels 0 and 1 can select clock S0 (scaled) as its input clock by
setting the control bit PCLK0 and PCLK1 respectively. Clock S0 is
generated by dividing clock A by the value in the PWSCAL0 register + 1
and dividing again by two. When PWSCAL0 = $FF, clock A is divided by
256 then divided by two to generate clock S0.
PWSCNT0 is a down-counter that, upon reaching $00, loads the value
of PWSCAL0. Read any time.
5
5
0
5
5
0
5
5
0
Pulse Width Modulator
4
4
0
4
4
0
4
4
0
3
3
0
3
3
0
3
3
0
2
2
0
2
2
0
2
2
0
1
1
0
1
1
0
1
1
0
PWM Register Descriptions
Pulse Width Modulator
Bit 0
Bit 0
Bit 0
Bit 0
Bit 0
Bit 0
0
0
0
Technical Data
$0044
$0045
$0043
233

Related parts for MC68HC12