Hi I am struggling to write to to External EE "24LC512" with the latest version
My previous program compiles work fine
Struggling to write to External EE with the latest version
Moderators: David Barker, Jerry Messina
-
- Registered User
- Posts: 9
- Joined: Tue Jul 03, 2007 8:55 pm
- Location: SOUTHAFRICA
-
- Registered User
- Posts: 9
- Joined: Tue Jul 03, 2007 8:55 pm
- Location: SOUTHAFRICA
I have 8 memory chips the code bellow writes to number 3 . My program is huge 80333 bytes on a PIC18f4685. I am not sure about the jump limitations. I can read the eeprom but not write. My program runs smoothly with the previous compiler version.
EEPROM_Address = %011
EEPROM_Family = %1010
EEPROM_Control = (EEPROM_Family << 4) Or (EEPROM_Address << 1) // put the controll byte together
DelayMS(100)
TransactionsM2.byte0 = EEPROM_Read(0)
DelayMS(100)
TransactionsM2.byte1 = EEPROM_Read(1)
DelayMS(100)
If TransactionsM2 = 65535 Then
EEPROM_Write(0,0)
DelayMS(100)
EEPROM_Write(0,1)
DelayMS(100)
EndIf
EEPROM_Address = %011
EEPROM_Family = %1010
EEPROM_Control = (EEPROM_Family << 4) Or (EEPROM_Address << 1) // put the controll byte together
DelayMS(100)
TransactionsM2.byte0 = EEPROM_Read(0)
DelayMS(100)
TransactionsM2.byte1 = EEPROM_Read(1)
DelayMS(100)
If TransactionsM2 = 65535 Then
EEPROM_Write(0,0)
DelayMS(100)
EEPROM_Write(0,1)
DelayMS(100)
EndIf
CHRISO
-
- Swordfish Developer
- Posts: 1473
- Joined: Fri Jan 30, 2009 6:27 pm
- Location: US
Code: Select all
If TransactionsM2 = 65535 Then
EEPROM_Write(0,0)
DelayMS(100)
EEPROM_Write(0,1)
DelayMS(100)
EndIf