Thanks Rob!!!
The problem was to clean the interruption flags, as you said. The
part of reading the iopin, I can do because I have connected PWM to
the capture pin and a GPIO...
Domingos
Citando chazeltopman <rob@...>:
>
>
> --- In lpc2000@yahoogroups.com, dasbento@a... wrote:
> > T1IR |= TIR_CR0I;
> > T1IR |= TIR_CR1I;
> > T1IR |= TIR_CR2I;
> These three lines will turn off all the interrupts if more than one
happens
> at the same time
> since it is oring a value onto itself and then writing it back. If
others
> are set they will be
> written back too. You need to change the |= to just =.
>
> > if(IOPIN0 & ACEL_asc_x){ //verify rising edge
> You cannot read the iopin level while the iopin is assigned to the
timer.
> You must switch it
> to GPIO with PINSEL0 first, read it, then switch back.
>
> Rob
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
_________________________________________________________
CEAC Cursos de forma\ufffd\ufffdo profissional - pe\ufffda informa\ufffd\ufffdes aqui.:
http://ceac.online.pt/Message
Re: [lpc2000] Re: accurate pulse measurements
2005-01-25 by dasbento@aeiou.pt
Attachments
- No local attachments were found for this message.