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