I have a 12f508 and trying initialize it
every think works except the GP2 pin i need it to work as an out put. but it just doesnt work . I have tried everything. I think it is somthing to do with the timer0 but i dont know what.
anyways this is how i have initialized it.
#include #fuses INTRC,NOWDT,NOPROTECT,NOMCLR #use delay(clock = 4000000) #use fast_io(B) void main() { int8 turnoffdelay = shutdwn_delay_min; //shutdown delay variable int8 MainPower_off; int1 pinstatus; //stores the GP0 status int1 toggle; set_tris_B(0x29); output_B(0x00);
PLS HElp I WILL REALY APRECIATE IT Thanks Nadeem