Content originally posted in LPCWare by dragilla on Sun Aug 05 09:25:38 MST 2012
Hi,
I'm trying to make my CAP0.0 input work and I'm having a lot of trouble interpreting the CMSIS1.3 functions - this is what I use in my project and I can't use anything else right now. Examples are not too good either.
I know there isn't really a true cmsis 1.3 documentation (or at least there was no such thing some time ago) so the only way for me is experimenting.
I've read the UM10360, Chapter 21: LPC17xx Timer 0/1/2/3 like 10 times now and I think I know how to do my task.
The problem is that a very simple program I wrote, that waits for a CAP interrupt, does not work. It should simply wait for a rising edge on input and trigger an interrupt (I make a break point in the ISR).
I've connected a wire to pin p1[26] and after the program is run I connected it to 3v3 and gnd and nothing happens.
I'm attaching my code - please tell me why it doesn't work.
Thanks!
--
Luke