HUANFAI
Newbie level 2
pic16f873a register
I want to use the PIC16F873A and PIC16F876A to make my project as a counter and it can count until 1Billion.
I use the Program like below to save the count each time.
If the input frequency is 30Hz , every year count about 946,080,000 Counts.
Is it possible to run for 1.5 year(1,419,120,000 Count) and Without a eeprom corrouption ?
Are there any information for the PIC DATA EEPROM Life-Cycle?
The main Programme is like this : (Proton Plus)
IF CNT = 0 AND PORTA.0 = 0 THEN CNT = 1
IF CNT = 1 AND PORTA.0 = 1 THEN A = A + 1 :CNT = 0:EWRITE 0,[A]
IF A = 10 THEN A = 0 : B = B + 1:EWRITE 1,
IF B = 10 THEN B = 0 : C = C + 1:EWRITE 2,[C]
IF C = 10 THEN C = 0 : D = D + 1:EWRITE 3,[D]
IF D = 10 THEN D = 0 : E = E + 1:EWRITE 4,[E]
IF E = 10 THEN E = 0 : F = F + 1:EWRITE 5,[F]
IF F = 10 THEN F = 0 : G = G + 1:EWRITE 6,[G]
IF G = 10 THEN G = 0 : H = H + 1:EWRITE 7,[H]
IF H = 10 THEN H = 0 : I = I + 1:EWRITE 8,
IF I = 10 THEN I = 0 : J = J + 1 : EWRITE 9,[J]
IF J = 10 THEN J = 0
I want to use the PIC16F873A and PIC16F876A to make my project as a counter and it can count until 1Billion.
I use the Program like below to save the count each time.
If the input frequency is 30Hz , every year count about 946,080,000 Counts.
Is it possible to run for 1.5 year(1,419,120,000 Count) and Without a eeprom corrouption ?
Are there any information for the PIC DATA EEPROM Life-Cycle?
The main Programme is like this : (Proton Plus)
IF CNT = 0 AND PORTA.0 = 0 THEN CNT = 1
IF CNT = 1 AND PORTA.0 = 1 THEN A = A + 1 :CNT = 0:EWRITE 0,[A]
IF A = 10 THEN A = 0 : B = B + 1:EWRITE 1,
IF B = 10 THEN B = 0 : C = C + 1:EWRITE 2,[C]
IF C = 10 THEN C = 0 : D = D + 1:EWRITE 3,[D]
IF D = 10 THEN D = 0 : E = E + 1:EWRITE 4,[E]
IF E = 10 THEN E = 0 : F = F + 1:EWRITE 5,[F]
IF F = 10 THEN F = 0 : G = G + 1:EWRITE 6,[G]
IF G = 10 THEN G = 0 : H = H + 1:EWRITE 7,[H]
IF H = 10 THEN H = 0 : I = I + 1:EWRITE 8,
IF I = 10 THEN I = 0 : J = J + 1 : EWRITE 9,[J]
IF J = 10 THEN J = 0