Description: LPC932 EXAMPLE: CREATING A PWM SIGNAL USING A TIMER IN MODE 6
by Christian Kulig, Philips Semiconductor 12/06/02
INTRODUCTION:
The LPC932 can be used to create a Pulse Width Modulated PWM signal.
That s an analog signal, with only 2 discrete levels, for example 0V
and 5V and a constant period. The current value of this signal at a
certain point of time is proportional to its Duty Cycle. That s the
High Time during one period divided by the period. It can also be
calculated as the average value during a particular period. That
means after low pass filtering, (e.g. RC circuit) the signal becomes
analog, with an actual value controlled by the microcontroller. The
PWM functionality enables the LPC932 to control for example the speed
of DC motors or the brightness of electric lighting.
DESCRIPTION:
The general purpose timer T1 of the LPC932 is set up to PWM Mode 6.
In this mode it becomes a 8 bit up-counter with a special 8 bit
reload on overflow. The reload
- [Philips_915ad] - Philips P89LPC915 complete with A/D and
- [TimerMode_PWM] - he LPC932 can be used to create a Pulse
- [PWM] - Temperature Control PWM, a simple produc
File list (Check if you may need any files):
915pwm07.17.02
..............\915pwm07.17.02.Opt
..............\915pwm07.17.02.plg
..............\915pwm07.17.02.Uv2
..............\915pwm07.17.m51
..............\915pwm07_17_02_Opt.Bak
..............\915pwm07_17_02_Uv2.Bak
..............\code
..............\....\pwmmain.c
..............\hex
..............\...\915pwm07.17.02
..............\...\915pwm07.17.02.plg
..............\...\915pwm07.17.hex
..............\...\915pwm07.17.lnp
..............\...\pwmmain.obj
..............\pwmmain.lst