Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Counting timer0 TC pulses..

2005-04-28 by jase_ko

Hi guys,

Earlier I posted a question about measuring time between successive 
calls to an external interrupt method.
Now I am trying to do this with Timer0 and looking at the T0TC 
register every time the interrupt function is called.. I store these 
into variables and check the amount of TC pulses between each 
interrupt call.
Everything seems to go okay, until I approach 800Hz freq of 
interrupts. then the numbers get kinda screwy. Does anyone know whats 
going on here?
also, how fast do the clocks run (namely the one that governs the TC)?

thanks guys,

Jason

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.