Clock and interrupts frecuency

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

Clock and interrupts frecuency

852 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by pdrodriguez on Sat Sep 01 16:43:19 MST 2012
I need to generate a square wave on the order of nanoseconds, wanted to see what the maximum frequency that could be obtained by timer0 interrupt.
I also wanted to see how to set starting the 120MHz internal clock to achieve the highest possible frequencies.
Labels (1)
0 Kudos
Reply
2 Replies

840 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by alexan.e on Mon Sep 03 02:29:09 MST 2012
Use the MAT pins and set the output to toggle and reset on compare match, no interrupt needed.

Alex
0 Kudos
Reply

840 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jdurand on Sat Sep 01 17:44:28 MST 2012
Don't use an interrupt for generating a precise wave, the jitter will drive you crazy.  Use either a PWM output or regular timer direct output.
0 Kudos
Reply