Yahoo Groups archive

Lpc2000

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

Message

Re: Counting timer0 TC pulses..

2005-04-28 by jase_ko

This is the interrupt code:

void IRQExternal0() __attribute__ ((interrupt));
void IRQExternal0()
{
	static unsigned long prevTC = 0;
	unsigned long currTC = T0TC;
	ssv1.speed.ticksBuffer[ssv1.speed.ticksBufferIndex] = currTC - 
prevTC;
	prevTC = currTC;
	EXTINT = 0x0F;		// Clear ANY external flags.
	VICVectAddr = 0;	// Acknowledge Interrupt
}

Thanks
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.