not only that but, where are you turning off the port bit?
not only that but, where are you turning off the port bit?
Dave Purola,
N8NTA
EN82fn
You are both right, made a error when I posted. HERE is what I entered:
the purpose of the whole program is to give me a visual indication of how long it takes to the chip to execute a loop and count down. I need this info for setting timing on portions of my programs. Hope this makes sense. P.S. my setup may not be correct but I'm an old geezer.
' Timer countdown test
trisa = 0
porta = 0
Start:
I var byte
for I = 1 to 2000
next I
porta.0 = 1
pause 5000
end
Update, I just realized that (I) should be a VAR WORD, since it will be over 255. Thanks for your input guys but the problem remains that I still cannot program these chips that talked about.
' Timer countdown test
trisa = 0
porta = 0
Start:
I var word
for I = 1 to 2000
next I
porta.0 = 1
pause 5000
end
Your posted code has several problems, beginning with the lack of capitalization for the register names.
Do you intend it to turn PORTA.0 to a one and nothing else? If so, why delay?
Your issue is likely with the configuration bits. Please post your code for configuration...
I have run to this many times. I used my Pickit2(tm) to erase the pic and then is was ok.
Regards
CharlieM
Using PBP3
MCSPX
I posted the solution in your other thread have you tried it?
Charlie, please refer to post #6 above, I use this to set the timing of some of my programs. I know my Cap. is off, just posting an experiment, Thanks for responding.
I tried your solution Rep. butthere is no way for me to change vdd in QLprog.
Bookmarks