44.1KHz timer0 interrupt rate

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

44.1KHz timer0 interrupt rate

596 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by timos2302 on Tue Jun 21 15:30:05 MST 2011
hello guys,
I am trying to make the timer0 interrupt to tick at 44.1KHz (LPC1769 XPresso board).

I made the above program and debug it to an oscilloscope (pin0.22-led),
but i get 25KHz.
What setting i am doing wrong ?:confused:

Any ideas?

All files attached below
Thanks
0 Kudos
Reply
2 Replies

589 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by timos2302 on Thu Jun 23 02:10:03 MST 2011
Solved , my mista ke , i am sorry guys , thanks all for replying , (stupid me :P)
0 Kudos
Reply

589 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Tue Jun 21 15:36:32 MST 2011
You're kidding :confused:

Your timer is running with 25MHz, your

#define TIMER0_INTERVAL       1000      //Timer0 reload compare value (Scope read 25KHz)

is dividing this by 1000, so what do you expect?
0 Kudos
Reply