Maker Pro
Maker Pro

understanding the pic16f627a

foTONICS

Sep 30, 2011
332
Joined
Sep 30, 2011
Messages
332
So I've been doing lots of reading and researching and I feel I can confidently program one of these babies except for one thing. My problem is any tutorials i read i can't seem to find how to initialize one of the outputs. I dont know what to call them when writing my program.

looking at the schematic i would believe, that since there are two ports, that RA0 would indicate an output at portA and RB0 would indicate one at PORTB.

so if i wanted to write a simple program that turned on RA0 do i just type this?

bsf PORTA, RA0

or do I have to define these somewhere or are they already defined in the #include file?
 

BobK

Jan 5, 2010
7,682
Joined
Jan 5, 2010
Messages
7,682
You need to include

#include <p16F627A.inc>

And the symbols will be defined.

bob
 
Top