Thanks Henrik,
well, you nailed it, and I don't know why. I deleted the original code and inserted yours and it compiled fine. Just for fun I'll look at the ascii code originally there and see if...
Hello Henrik,
you and I have talked about this code a few times now. I had to change my name to protect the guilty! Actually I lost my original password and tried to recover the password but never...
That code sure doesn't compile but it's not because of RCSTA1.7=0 but rather END SELECT. If I remove END SELECT the reset does compile here.
Since you claim it compiles if you comment out RCSTA1.7=0...
Here is the code listing. The compiler complains about the RCSTA1.7 = 0 command. If I comment it out, the rest of the code compiles fine. The error message is "bad expression"
I conect ICSP directly to pins. And from konektor, other part of circuit connect via 2K resistor. If you use pin as inputs, then other hardver driving state of pin. So not to have colision with...
I wouldn't do that. Your safest bet would be to have a jumper you can remove to isolate the output of the HC14 from the PGC/PGD pin while you're programming.
Published on - 31st May 2010 17:38
Number of Views: 6010
It's almost Olympics time... so here's a topical program using PBP exclusively (no embedded Assembler) to give you a Stop-Watch with 1/100th Second Timing (yes that's 0.01 of a Second) and gives you REAL-TIME display on your LCD. Now you can do your own timing and challenge the official time...
The program demonstrates using TMR1 in BACKGROUND (multi-tasking), uses PICBasic Interrupts, and accounts for the fact that PICBasic doesn't respond to those Interrupts immediately. There's also a set-Up CALIBRATION menu item, so you can adjust and calibrate your timer to an accuracy of 360mS per Hour.
How does it do all that? Better download the PDF and find out...
Melanie
PS. Questions and Comments post on this forum/thread. No off-list mail please.
Re: PBP and IDE/programmer
Got it worked out!
robertg Today, 22:51Again a probably another rookie mistake...Solution was to increase the VDD to 4V! minimum. (software does recommend 4.5V) but 4 seemed to work fine.
Thanks Ioanins for the...