Yahoo Groups archive

Lpc2000

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

Message

LPC2129 - Capture help requested :)

2005-02-23 by Lasse Madsen

Hi all

I'm sitting with the MCB2100 from Keil trying to get the capture input
CAP1,0 & CAP1,1 to work (P0.10 and P0.11) 

I have used the following code to make the inputs capture friendly...

PINSEL0&=0xFFAFFFFF;
T1CCR=0x1B;   // I would like to capture both falling and rising edge on
both pins...

As you can see from the T1CCR i have set it for no interrupt (i would like
to do this but i cant figure out how to do interrupts in keil)
Im running with a 12MHz crystal and the frequency on both inputs which i
wish to capture is 250Hz (i would like to get the dutycycle variation)

Can any one help me setting up the registers im kinda lost or give me some
hints...

Best regards
Lasse Madsen

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.