Hello
4u2n>>I want to learn program a pic in basic
I have try many thing but can't get work
Can some on help to defint the start of the PIC BASIC PROGRAM
<<
There are many examples on the site....
If you want to compile the programs, there is a site called.
www.compilespot.com
This site will allow you to use the compiler to a limited extent.
4u2n>>I want to have RB0 to RB5 to be OUTPUT <<
and RA0 to RA3 to be INPUT<<
well, a start can be something like this... I don't have the chips specs, but this will probably be a good start.
TRISA=%00001001
TRISB=%00000000
if Porta.0=1 then Portb.0=1
else Portb.0=0
endif
if Porta.3=1 then Portb.5=1
else Portb.5=0
endif
this is the best that I can do...I do not fully understand your question, but I think this is a start for you.
Dwayne
Ability to Fly:
Hurling yourself towards the ground, and missing.
Engineers that Contribute to flying:
Both optimists and pessimists contribute to the society. The optimist invents the aeroplane, the pessimist the parachute
Pilots that are Flying:
Those who know their limitations, and respect the green side of the grass...
Bookmarks