mc68hc908mr32 Freescale Semiconductor, Inc, mc68hc908mr32 Datasheet - Page 148

no-image

mc68hc908mr32

Manufacturer Part Number
mc68hc908mr32
Description
M68hc08 Microcontrollers
Manufacturer
Freescale Semiconductor, Inc
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
mc68hc908mr32CB
Manufacturer:
FREESCALE
Quantity:
1 831
Part Number:
mc68hc908mr32CB
Manufacturer:
MOT
Quantity:
59
Part Number:
mc68hc908mr32CFU
Manufacturer:
FREESCALE
Quantity:
3
Part Number:
mc68hc908mr32CFU
Manufacturer:
Freescale Semiconductor
Quantity:
10 000
Pulse-Width Modulator for Motor Control (PWMMC)
12.9.5 PWM Control Register 2
PWM control register 2 (PCTL2) controls the PWM load frequency, the PWM correction method, and the
PWM counter prescaler. For ease of software and to avoid erroneous PWM periods, some of these
register bits are buffered. The PWM generator will not use the prescaler value until the LDOK bit has been
set, and a new PWM cycle is starting. The correction bits are used at the beginning of each PWM cycle
(if the ISENSx bits are configured for software correction). The load frequency bits are not used until the
current load cycle is complete.
See
LDFQ1 and LDFQ0 — PWM Load Frequency Bits
IPOL1 — Top/Bottom Correction Bit for PWM Pair 1 (PWMs 1 and 2)
148
These buffered read/write bits select the PWM CPU load frequency according to
This buffered read/write bit selects which PWM value register is used if top/bottom correction is to be
achieved without current sensing.
Figure
1 = Use PWM value register 2.
0 = Use PWM value register 1.
12-40.
Address:
Reset:
The user should initialize this register before enabling the PWM.
When reading these bits, the value read is the buffer value (not necessarily
the value the PWM generator is currently using).
The LDFQx bits take effect when the current load cycle is complete
regardless of the state of the load okay bit, LDOK.
Reading the LPFQx bit reads the buffered values and not necessarily the
values currently in effect.
Read:
Write:
LDFQ1
$0021
Bit 7
0
Reload Frequency Bits
Figure 12-40. PWM Control Register 2 (PCTL2)
MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1
LDFQ1 and LDFQ0
= Unimplemented
LDFQ0
6
0
Table 12-8. PWM Reload Frequency
00
01
10
11
5
0
0
IPOL1
NOTE
NOTE
NOTE
Bold
4
0
= Buffered
IPOL2
3
0
PWM Reload Frequency
Every 2 PWM cycles
Every 4 PWM cycles
Every 8 PWM cycles
Every PWM cycle
IPOL3
2
0
PRSC1
1
0
Freescale Semiconductor
Table
PRSC0
Bit 0
0
12-8.

Related parts for mc68hc908mr32