|
MC68HC05V12 Datasheet, PDF (117/246 Pages) Freescale Semiconductor, Inc – HCMOS Microcontreller Unit | |||
|
◁ |
Freescale Semiconductor, Inc.
Pulse Width Modulators (PWMs)
PWM Registers
11.4.1 PWMA Control Register
Address: $0037
Bit 7
6
5
4
3
2
1
Read:
0
PSA1A PSA0A
Write:
0
PSB3A PSB2A PSB1A
Reset: 0
0
0
0
0
0
0
= Unimplemented
Figure 11-5. PWMA Control Register (PWMAC)
Bit 0
PSB0A
0
PSA1A, PSA0A, PSB3AâPSB0A â PWMA Clock Rate Bits
These bits select the input clock rate and determine the period as
shown in Table 11-1. Note that some output frequencies can be
obtained with more than one combination of PSA and PSB values.
For instance, a PWMA output of fOP/512 can be obtained with either
PSAâPSA0 = 10 and PSB3âPSB0 = $0 or PSA1âPSA0 = 01 and
PSB3âPSB0 = $07. The frequency division provided by the PSB
values will be one more that the value written to the register. For
example, a $0 written to the PSB bits provides a ÷1 and a $1 provides
a ÷2, etc.
This scheme allows for 38 unique frequency selections.
NOTE:
Any non-zero value of PSA1AâPSA0A forces PB4 to the PWMA output
state. If PSA1A:PSA0A = 00, PB4 is determined by the port B data and
data direction registers as described in Section 7. Parallel
Input/Output (I/O).
PSA1Aâ
PSA0A
00
01
10
11
Table 11-1. PWMA Clock Rates
PSB3Aâ
PSB0A
xxxx
0000â1111
0000â1111
0000â1111
RCLKA
SCLKA
Off
fOP/1
fOP/8
fOP/16
Off
fOP/1 â fOP/16
fOP/8 â fOP/128
fOP/16 â fOP/256
PWMA Out
Off
fOP/64 â fOP/1024
fOP/512 â fOP/8192
fOP/1024 â fOP/16384
MC68HC05V12 â Rev. 2.0
Pulse Width Modulators (PWMs)
For More Information On This Product,
Go to: www.freescale.com
Technical Data
|
▷ |