katech
Newbie level 2
Hello , forum members.
I have a pic 16F628A and there´s some data writen in de eeprom with the code below:
As you can see it´s a mac address.
I want to erase this mac address with a command like bbtt or something else.
Is there anyone who knows the way to do this.
I only want to erase the mensioned mac address and not the whole chip program.
Can anyone help me with this.
Thanks in advance.
Greetings
Emil
I have a pic 16F628A and there´s some data writen in de eeprom with the code below:
Code C - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 if((mac[0] + mac[1] + mac[2] + mac[3] + mac[4] + mac[5] + mac[6] + mac[7] + mac[8] + mac[9] + mac[10] + mac[11]) == 0) { if(DEVICES>0) output_high(PIN_A0); mac[0] = incomming[5]; mac[1] = incomming[6]; mac[2] = iincomming[8]; mac[3] = incomming[9]; mac[4] = incomming[11]; mac[5] = incomming[12]; mac[6] = incomming[14]; mac[7] = incomming[15]; mac[8] = incomming[17]; mac[9] = incomming[18]; mac[10] = incomming[20]; mac[11] = incomming[21]; for(v = 0; v<12; v++) { write_eeprom(v,mac[v]); delay_ms(20); }
As you can see it´s a mac address.
I want to erase this mac address with a command like bbtt or something else.
Is there anyone who knows the way to do this.
I only want to erase the mensioned mac address and not the whole chip program.
Can anyone help me with this.
Thanks in advance.
Greetings
Emil
Last edited by a moderator: