----Original Message----
From: lpc2000@yahoogroups.com
[mailto:lpc2000@yahoogroups.com] On Behalf Of sukhdeep
singh Sent: 10 July 2009 13:09 To: NXP
Subject: [lpc2000] about timer in LPC2378
> I am using timer to generate frequency. which is given to
> adc for its working.
>
> i have written the code
>
> T0PC=0;
> T0MR0=14;
>
> then it works fine.
>
> but if i make
> T0PC=1;
> T0MR0=7;
>
> Then, it does not work.
> kindly tell me what is the difference between these two.
You should be setting T0PR (Prescale Register) not T0PC (Prescale
Counter). See page 536 of the manual.
--
Tim Mitchell