I doubt it has ever worked with that line of code.
There are several things:
1.
The 24LC256's address (control-byte) (with A0, A1, and A2 tied to GND)
is: %10100000, NOT %11010000
(See DataSheet)
2.
your variable "EEP_Addr" must be declared as WORD
(See DataSheet)
3.
you should have 4k7 PullUps on both SDA, and SCL
(10k might be a bit to high)
regards
Ralph
_______________________________________________
There are only 10 types of people:
Those who understand binary, and those who don't ...
_______________________________________________
Bookmarks