yup but PAUSE 200 won't return any compilation errorJust kidding Sayzer!
yup but PAUSE 200 won't return any compilation errorJust kidding Sayzer!
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Hi Ibra,
I'm very new to this but have had to same problem. I think I was using PortA and had to set it to digital with ANSEL=0 for TOGGLE to work but
PortB.0 High
pause 200
Portb.0 Low
May also work. This shouldn't be the case here as PortB is already Digital.
The other thing could be if you had Low voltage Programming (LVP) enabled at programming.
You also have PortB.3 set as an input. This is also the PGM pin and if its not tied low the pic may keep resetting itself if the pin floats High.
See how you go.
Mike
yup but, you really need to connect all Vdd and Vss, unless, it will give you some strange things... or simply don't work.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
ibra,
Did you look at the schematic on the link I posted above?
P.S. - 2pF cap on 4Mhz Xtall?
Last edited by sayzer; - 11th December 2007 at 08:19.
"If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte
Presetting Configuration Fuses (PIC Defines) into your ProgramCode:@ __CONFIG _XT_OSC & _LVP_OFF PORTB = 0 TRISB = %11111110 MAIN: TOGGLE PORTB.0 PAUSE 200 GOTO MAIN
http://www.picbasic.co.uk/forum/showthread.php?t=543
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
oh..sorry ..
i compiled code for PAUSE not PUASE ( just writing error )..
mikendee, i am new with pic16f877a, and i dont know what LVP means !!!, and how can i configure it ?
i programmed portb for output and tryed to put 2 picoF capacitors to the crystal but no result.
should i put a capacitor between Vdd,GND ?? if should what is its value?
Bookmarks