Papa>>i'm new to pic programming and i have been stuck at the first hurdle for a while now. Can someone help me in writing a simple prog to flash a few leds on a pickit1. I have tried using bits and pieces on other threads but i haven't had any joy yet. So it would be greatly appreciated if someone could help me.<<
I believe the following will work ok for you...It is untested..but
I took it out of one of my programs...
LED var GPIO.1 'this is the pin the blinks a light.
ANSEL=0
CMCON=%00000111
TRISIO=%00001000 'assign output to the pins
Loop:
High LED
Pause 1000
Low LED
Pause 1000
goto Loop
End
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