PDA

View Full Version : addressing general IO



jcb344
- 19th July 2008, 08:04
I recently starting programing a PIC12F675 and am currently trying to get it to blink an LED so I can prove that it is working. But I am having no luck despite the programer claiming to have successfully uploaded. My question is how do I address the 12F675's pins to turn them high and low when in the data sheet the output pin do not belong to a port but are "General IO".

I am currently trying:
loop:
high 0
pause 500
low 0
pause 500
goto loop

Do I need to set the pin to an output?
Should I asume that the outputs are on port B and say: high portb.0

Any help would be appreciated.

skimask
- 19th July 2008, 08:21
5th post in the FAQ section...
http://www.picbasic.co.uk/forum/showthread.php?t=561

Bruce
- 19th July 2008, 13:26
Or you can cheat...;o}

http://www.microengineeringlabs.com/resources/samples.htm#12F675pbp