Post
by bodgy » Thu Apr 24, 2003 5:07 pm
Frank,<p>The C4PIC course uses a version of the Pavel 'C' compiler.<p>I have to be honest, and say that I found errors in some of their tutorials, I did email them and they acknowledged, don't know if they altered anything though.<p>I'm not too sure if I understand what you're trying to achieve. If you just want the displays to light up by for example, press button 1 and display one is active, press 2 etc, then all you need to do is whip out the multiplexing bit, or go back to the tutorial that just has one display counting to 0--9 and duplicate this 4 times (to begin with, once this works you can work out on making this bit of code more efficient).<p>Also going back to my point about assembler, go throught the assembler listing that C4 produces, change the param_1_00whatever labels and variable names to something you find a bit more readable, perhaps knock off the param_1??? parts. Then follow this code through, you may suddenly find where the code is failing, partly because the parser doesn't produce the assembly code that you thought it might from the 'C' statements.<p>I'll email you some 7 segment code that I have, but be warned, I don't think you'll be able to just transplant it into your version of 'C', but it may help.<p>Colin
On a clear disk you can seek forever.