Ahmed Adel
New Member
Hello everyone,,
I am trying to learn how to program a micro-controller and i succeeded till now to learn through the internet but i still have a problem,, am a bit confused on how to use PIN 6 in port A.. i knew that ports A could be digital or analog,, so i chose digital but i want to use the 7 BIT PORTA but i found that RA6 is multiplexed with the OSC,, and am using a 20MHZ OSC,, Does anyone know how to solve that problem ,, or do i have to use an internal OSC to use pin6 ?? if the answer was yes ,, does the PIC16f877 good to be used ??
well something else,, i read in the datasheet that the pic can write/erase 100,000 times. so is that write or not?? because i bought it from 3 weeks and i erased and burned like 30 or 40 times,, maybe more and now when i try to erase it's not erased and i can't program anymore programs but the chip is working only with the old code. i also checked on another burner and i couldnt erase and checked to set if there was any code protection and my friend how tested it told me that there was a protection although i set to fuze to NOPROTECT but he removed it but couldnt also erase the chip. so how can i solve that issue ?
thanks in advance
I am trying to learn how to program a micro-controller and i succeeded till now to learn through the internet but i still have a problem,, am a bit confused on how to use PIN 6 in port A.. i knew that ports A could be digital or analog,, so i chose digital but i want to use the 7 BIT PORTA but i found that RA6 is multiplexed with the OSC,, and am using a 20MHZ OSC,, Does anyone know how to solve that problem ,, or do i have to use an internal OSC to use pin6 ?? if the answer was yes ,, does the PIC16f877 good to be used ??
well something else,, i read in the datasheet that the pic can write/erase 100,000 times. so is that write or not?? because i bought it from 3 weeks and i erased and burned like 30 or 40 times,, maybe more and now when i try to erase it's not erased and i can't program anymore programs but the chip is working only with the old code. i also checked on another burner and i couldnt erase and checked to set if there was any code protection and my friend how tested it told me that there was a protection although i set to fuze to NOPROTECT but he removed it but couldnt also erase the chip. so how can i solve that issue ?
thanks in advance