WDT, PWM, RTC

Started by Mukund Deshmukh June 9, 2006
Hi,
I have uploaded GRLCD.zip to yahoo file section. This is graphic LCD
(KS107/108 chip set) driver and compiles under GCC.

I have couple of small doubt for LPC2138.
Can I use WDT or RTC timers to generate 100 milsec interrupt?
Can I use PWM as counter?
Best Regards,

Mukund Deshmukh.
Beta Computronics Pvt Ltd
10/1, IT Park, Parsodi,
Nagpur-440022
Cell - 9422113746





An Engineer's Guide to the LPC2100 Series

>Can I use WDT or RTC timers to generate 100 milsec interrupt?
>Can I use PWM as counter?

I will reply my own mail for the benifit of others.

I am using RTC to generate 100msec ticks.
With 30 Mhz PCLK

RTCPREINT=90;
RTCPREFRAC=18111;

The sec counter is increamented at 100 mil sec. Rest is simple.

while (RTCSEC==0);

Once the RTCSEC is 1, perform other task and set RTCSEC to 0.
Sorry! No Interrupts!!.

Best Regards,

Mukund Deshmukh.
Beta Computronics Pvt Ltd
10/1, IT Park, Parsodi,
Nagpur-440022
Cell - 9422113746