We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I'm trying to write and read internal RAM with w77e58 but without success. I'm using the following code. #include<string.h> #include<W77E58.h> unsigned char xdata xdata_buffer [1]; void main(void){ TA = 0xAA; /*W77e58 Time Accessed Functions*/ TA = 0x55; memcpy (xdata_buffer, "2", sizeof (xdata_buffer)); } It does not work. Any suggestion? Thanks in advance.
Does this Winbond device actually have any EEPROM?
"Does this Winbond device actually have any EEPROM?" As far as I'm aware no, the code space is flash but I don't think any of it can be configured as xdata for runtime storage. There is some internal volatile xdata though, but there's an SFR bit that needs to be set if that's what he's trying to access. Stefan
That'll be why he can't get it to work, then!
Sorry, you're right. The W77e58 have not EEPROM, just 32Kb Flash EProm. As far as I khow, I think that it's possible to use the Flash Eprom to store non volatile information. That's right??
"Sorry, you're right. The W77e58 have not EEPROM, just 32Kb Flash EProm. As far as I khow, I think that it's possible to use the Flash Eprom to store non volatile information. That's right??" Everything I know about this chip has been gleaned from 5 minutes looking at the datasheet. It's your turn now. Stefan