pic12f629

Thread Starter

sasek

Joined Jan 3, 2010
64
hai all,

i starting to prog my pic12f629 with a basic code. unfortunately this simple c do not do what i want. Basically i just turn on LED at all pin except GP3 pin..... the code i used is like below,


#include<htc.h>
#include<pic.h>

__CONFIG(0x3FD4);

void main(){

OSCCAL = 0x3ff;
TRISIO = 0b00001000;
CMCON = 0x07;
GPIO = 0b00000000;

while(1){

GPIO = 0xFF;
}
}

if there any advice for me?????.....
 
Top