22-4
MC9328MX1 Reference Manual
MOTOROLA
Pulse-Width Modulator (PWM)
PWMC
PWM Control Register
Addr
0x00208000
BIT
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
HCTR BCTR SWR
TYPE
r
r
r
r
r
r
r
r
r
r
r
r
r
rw
rw
rw
RESET
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0x0000
BIT
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
CLK
SRC
PRESCALER
IRQ
IRQ
EN
FIFO
AV
EN
REPEAT
CLKSEL
TYPE
rw
rw
rw
rw
rw
rw
rw
rw
r
rw
r
rw
w
rw
RESET
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0x0020*
Table 22-3. PWM Control Register Description
Name
Description
Settings
Reserved
Bits 31–19
Reserved—These bits are reserved and should read 0.
HCTR
Bit 18
Halfword FIFO Data Swapping
—Swapping upper and lower
write data which to PWMS.
0 = Do not swap
1 = Swap
BCTR
Bit 17
Byte FIFO Data Swapping
—Swapping bits[15:8] and bits[7:0]
data which from PWMS to FIFO.
0 = Do not swap
1 = Swap
SWR
Bit 16
Software Reset
—Enables a reset of the PWM. After five
system clock cycles, the SWR bit releases automatically.
0 = No action taken
1 = Reset the PWM
CLKSRC
Bit 15
Clock Source
—Selects the clock source for the pulse-width
modulator.
0 = Selects PERCLK1 source
1 = Selects CLK32 source
The CLK32 frequency is
determined by the frequency of
the reference crystal.
PRESCALER
Bits 14–8
Prescaler
—Scales down the incoming clock by dividing the incoming clock signal by the value
contained in the PRESCALER field+1. The prescaler is normally used to generate a low
single-tone PWMO signal. For voice modulation, these bits are set to 0 (divide by 1).
IRQ
Bit 7
Interrupt Request
—Indicates that the FIFO contains 1 or 0
words, which signals the need to write no more than three
16-bit words into the PWMS register. The IRQ bit automatically
clears itself after this register is read, eliminating an extra write
cycle in the interrupt service routine. If the IRQEN bit is 0, the
IRQ bit can be polled to indicate the status of the period
comparator. For debugging purposes, the IRQ bit can be set to
immediately post a PWM interrupt.
0 = FIFO contains more than 1
sample word
1 = FIFO contains 1 or 0 sample
words
IRQEN
Bit 6
Interrupt Request Enable
—Enables/Disables the pulse-width
modulator interrupt. When IRQEN is low, the interrupt is
disabled.
0 = PWM interrupt is disabled
1 = PWM interrupt is enabled
Содержание DragonBall MC9328MX1
Страница 68: ...1 12 MC9328MX1 Reference Manual MOTOROLA Introduction ...
Страница 86: ...2 18 MC9328MX1 Reference Manual MOTOROLA Signal Descriptions and Pin Assignments ...
Страница 116: ...3 30 MC9328MX1 Reference Manual MOTOROLA Memory Map ...
Страница 126: ...4 10 MC9328MX1 Reference Manual MOTOROLA ARM920T Processor ...
Страница 160: ...8 8 MC9328MX1 Reference Manual MOTOROLA System Control ...
Страница 272: ...13 32 MC9328MX1 Reference Manual MOTOROLA DMA Controller ...
Страница 281: ...Programming Model MOTOROLA Watchdog Timer Module 14 9 ...
Страница 282: ...14 10 MC9328MX1 Reference Manual MOTOROLA Watchdog Timer Module ...
Страница 300: ...15 18 MC9328MX1 Reference Manual MOTOROLA Analog Signal Processor ASP ...
Страница 438: ...18 16 MC9328MX1 Reference Manual MOTOROLA Serial Peripheral Interface Modules SPI 1 and SPI 2 ...
Страница 478: ...19 40 MC9328MX1 Reference Manual MOTOROLA LCD Controller ...
Страница 542: ...20 64 MC9328MX1 Reference Manual MOTOROLA Multimedia Card Secure Digital Host Controller Module MMC SD ...
Страница 574: ...21 32 MC9328MX1 Reference Manual MOTOROLA Memory Stick Host Controller MSHC Module ...
Страница 598: ...23 16 MC9328MX1 Reference Manual MOTOROLA Real Time Clock RTC ...
Страница 670: ...24 72 MC9328MX1 Reference Manual MOTOROLA SDRAM Memory Controller ...
Страница 726: ...25 56 MC9328MX1 Reference Manual MOTOROLA SmartCard Interface Module SIM ...
Страница 736: ...26 10 MC9328MX1 Reference Manual MOTOROLA General Purpose Timers ...
Страница 854: ...29 18 MC9328MX1 Reference Manual MOTOROLA I2C Module ...
Страница 900: ...30 46 MC9328MX1 Reference Manual MOTOROLA Synchronous Serial Interface SSI ...
Страница 942: ...32 26 MC9328MX1 Reference Manual MOTOROLA GPIO Module and I O Multiplexer IOMUX ...