Can you provide the circuit? Which port is your led connected?
Yes, sometimes uC's doesn't completely gets damaged. There are many reports of damage in only ports, read-write ability, etc.If uC is damaged, would I be able to erase and re-program it?
So I got new chips and still have the same problem. I'm testing the chip on this board **broken link removed** . Any suggestion?
- - - Updated - - -
So I got new chips and still have the same problem. I'm testing the chip on this board **broken link removed** . Any suggestion?
So I got new chips and still have the same problem. I'm testing the chip on this board **broken link removed** . Any suggestion?
Did you forget to upload the hex file?Check your circuit with the hex file I have posted.
I can erase (verify by reading) and program again (verify again by reading).
Thanks a lot. I tested 4 and 8 MHz examples and BOTH are working. The crystal on the board says "11.0592 G MEC AH1DV". So I'm guessing it's a 11 MHz crystal - I didn't find any datasheet for this. So what is the difference in the code for the three examples you provided? Can you share the source code?Here are the hex files for 4, 8, and 20 MHz external oscillator.
Thanks a lot. I tested 4 and 8 MHz examples and BOTH are working. The crystal on the board says "11.0592 G MEC AH1DV". So I'm guessing it's a 11 MHz crystal - I didn't find any datasheet for this. So what is the difference in the code for the three examples you provided? Can you share the source code?
void main() {
TRISA = 0b00000000;
PORTA = 0b00000000;
while(1) {
PORTA.F0 = 1;
Delay_ms(500);
PORTA.F0 = 0;
Delay_ms(500);
}
}
The crystal on the board says "11.0592 G MEC AH1DV". So I'm guessing it's a 11 MHz crystal - I didn't find any datasheet for this.
I wrote the code in C and compiled form different clock frequencies. The code is the same for all the three.
how do you compile for a particular frequency in MPLAB 8.84?
//#pragma config CONFIG1H = 0x22
__CONFIG(1, OSC_HS & OSCS_OFF);
//#pragma config CONFIG2L = 0xF
__CONFIG(2, PWRT_OFF & BOR_ON & BORV_20);
//#pragma config CONFIG2H = 0xE
__CONFIG(3, WDT_OFF & WDTPS_128);
//#pragma config CONFIG3H = 0x1
__CONFIG(4, CCP2MUX_ON);
//#pragma config CONFIG4L = 0x81
__CONFIG(5, STVR_ON & LVP_OFF);
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?