DR
AFT
DR
AFT
DRAFT
DR
D
RAFT
DRAFT
DRA
FT DRAF
D
RAFT DRAFT DRAFT DRAFT DRAFT D
DRAFT
D
RAFT DRA
FT DRAFT DRAFT DRAFT DRA
UM10316_0
© NXP B.V. 2008. All rights reserved.
User manual
Rev. 00.06 — 17 December 2008
427 of 571
NXP Semiconductors
UM10316
Chapter 24: LPC29xx Modulation and Sampling Control Subsystem
To generate a sine wave, the sine period can be divided into N periods. In each of these a
fixed voltage is generated via PWM0, having a much shorter period compared to the sine
itself. Output PWM0_0 steers positive voltage; PWM0_1 steers the negative voltage.
Along with the high-frequency PWM0, MSCSS_Timer0 defines the period for the N
intervals. On the match output of MSCSS_Timer0, the trans_en_in and sync of PWM0 are
triggered and the new pre-loaded value for PWM0 is activated.
Pre-loading new values into the registers can be done on the interrupts indicating that the
values are activated. The pre-loading must be finished before the next pulse. To avoid
switching noise, the period of MSCSS_Timer0 has to be an interval times the period of
PWM0.
If a capacitor is attached to the outputs, a sine can be generated.
3.5 Register overview
See
for timer, ADC, PWM, and QEI registers.
Table 344. MSCSS register overview
Functional block
Base address
Reference
MSCSS timer 0
0xE00C 0000
MSCSS timer 1
0xE00C 1000
ADC0
0xE00C 2000
ADC1
0xE00C 3000
ADC2
0xE00C 4000
PWM0
0xE00C 5000
PWM1
0xE00C 6000
PWM2
0xE00C 7000
PWM3
0xE00C 8000
QEI
0xE00C 9000