Created Wed, 28 Dec 2011 07:14:27 +0000 by CNCaddict
Wed, 28 Dec 2011 07:14:27 +0000
I've been struggling for about a day trying to figure out incap.h for the PIC32 in mpide. The setup and configuration is very clear, but under ReadCapture it says....
*****************************************************/ #ifdef _ICAP1 void ReadCapture1(unsigned int * buffer);
I'm a little lost what goes in the "* buffer" part of the parenthesis. Do I need to setup an array with buffer locations and a separate pointer to direct to this? I'm also a little confused with the "11" designation and "1x" designation in the ReadCapture description. Is that a misprint? If anyone has an example of how I can read data from the InputCapture buffer I would be extremely grateful!!!! Oh, and I don't really know what I'm doing so if you could explain it to me like I'm a 4yr old that would be great (read examples) :)
Wed, 28 Dec 2011 21:39:33 +0000
What library is this that you are working with?
Gene Apperson Digilent
Thu, 29 Dec 2011 00:46:16 +0000
What library is this that you are working with?
Hey Gene, I've been working with
mpide-0022-windows-20111212-test\hardware\pic32\compiler\pic32-tools\pic32mx\include\peripheral\incap.h
hmm..I guess that isn't really a library so maybe I put my question in the wrong area?
Oh..and I'm absolutely loving the Uno32...this is worlds better than any experience I've had in the past with MCUs.
Thu, 29 Dec 2011 05:45:41 +0000
OK..I think I got my answer in the following thread
http://www.chipkit.org/forum/viewtopic.php?f=13&t=665&p=3375&hilit=capture#p3375
e.g. CaptureTime = mIC1ReadCapture();
After changing my ReadCapture to the above...everything seems to work. My code compiles now..so that's a good start!!!