Programming Model
MOTOROLA
Pulse-Width Modulator (PWM)
22-3
Digital sample values are loaded into the pulse-width modulator as 16-bit words (big endian format). A
4-word FIFO minimizes interrupt overhead. A maskable interrupt is generated when there are 1 or 0 words
in the FIFO, in which case the software can write two 16-bit samples into the FIFO. Interrupts occur every
50
µ
s, if the REPEAT field of the PWMC register is set to 0, when a 16 kHz sampling frequency is being
used to play back sampled data, when writing two 16-bit data at each interrupt.
22.3.2 Tone Mode
When the value stored in the PWMP register < 0xFFFE, the PWM operates in tone mode and generates a
continuous tone at a single frequency which is determined by the settings in the PWM registers.
22.3.3 Digital-to-Analog Converter (D/A) Mode
The pulse-width modulator outputs a frequency with a different pulse width if a low-pass filter is added at
the PWMO signal. It produces a different DC level when programmed using the sample fields in the PWM
sample (PWMS) register. When used in this manner, the PWM becomes a D/A converter.
22.4 Programming Model
The PWM module includes 4 user-accessible 32-bit registers. Table 22-2 summarizes these registers and
their addresses.
22.4.1 PWM Control Register
The PWM Control Register controls the operation of the pulse-width modulator, and it also contains the
status of the PWM FIFO. The register bit assignments are shown in the following register display. The
register settings are described in Table 22-3 on page 22-4.
Table 22-2. PWM Module Register Memory Map
Description
Name
Address
PWM Control Register
PWMC
0x00208000
PWM Sample Register
PWMS
0x00208004
PWM Period Register
PWMP
0x00208008
PWM Counter Register
PWMCNT
0x0020800C
Содержание 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 ...