And soon should be able to add 3 outputs, and have 4 encoded channels out, while decoding 5 channels in with the pic12f683 (and 3 diodes).
But, what I can't get my head around is how to ensure the CCP1 interrupt starts the first time on RC channel 1 (first pulse). It needs to look for a low of 3ms or so, to ensure channel 1 is looking at channel 1.
Oh .... and I need to do this in ASM.
Thanks for any help you can offer.
Last edited by ScaleRobotics; - 9th February 2010 at 19:20.
Sorry ... I didn't verify the link ... ( Xtal wrote both enc and dec ...)
those ones are real decoders
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Thanks everyone for working on the RC PWM problems.
Meanwhile I have built a autonomous toy car from the ideas voiced by fritsl in Lets Built Robots.
The DPDT switches work. I have two separate battery packs. The power for the servo and the wheels shares nothing with the power for the PIC and other logic. Not even the ground circuit! This should keep the noise down.
I am using the LED's on the PICkit2 to help debug. At least I can know which routines have been visited. I wish I could figure out a way to know what are in my variables. The USB programmer can read and write all memory locations. Where do I read about real time debugging?
Oh, yes, my new PIC16F887 book arrived via air mail at the Fitchburg, MA Post Office. It is published by MIKROELEKTRONIKA d.o.o in Belgrade, Serbia. How small the world has become.
I see in the PICkit 2 Programmer HELP menu discussion of the Debugger tool. Part of MPLAB IDE.
Trouble is, the programmer in MPLAB seems to not get along with the programmer in PICkit 2. I have not been able to make hide nor hair of MPLAB IDE. I have been using Microcode Studio PBP and PICkit 2 programmer.
Is there a mechanism in PBP for setting break points.
Once that is done, is there an easy way using PICkit 2 Programmer to read the contents of a particular register?
Ken
The easiest way is to have your project do serial out using the debug statements. With your PicKit you can read the output using the uart tool. Using if then statements, you can set it to give you different information. I use this in trouble shooting a lot.
Bookmarks