AtomSoft
Well-Known Member
Hi all just got my eeprom from dipmicro and im trying to use it. I have the data sheet and all is wired! Now the hard part. How do i code for it? I know the process (i think):
Write Byte:
1. Send Start
2. Send Address of slave(eeprom) with a R/W end bit (for selecting read/write operation)
3. wait for acknowledgment
4.Send Word Address (where to write to)
5. wait for acknowledgment
6. Send data
7. wait for acknowledgment
8. Send Stop
If someone can give me a idea on how to do steps 1-3 i think i can figure out the rest.
The reason im using external eeprom is just mainly for learning and might use it to like personalize some stuff. This way i never have to reprogram the main chip. I pull the epprom and program it with another main chip and poof there we go lol.
OK Im using ASM but can use SourceBoostC if possible. And the main uC is a 18F1320. But i might change it after i learn the code. Like ill try to port it over.
Thanks in advance!
P.S. The Bold above is just because sometimes people ask what chip and what language and why this and that so i though i would bold it out so it stands out more
Write Byte:
1. Send Start
2. Send Address of slave(eeprom) with a R/W end bit (for selecting read/write operation)
3. wait for acknowledgment
4.Send Word Address (where to write to)
5. wait for acknowledgment
6. Send data
7. wait for acknowledgment
8. Send Stop
If someone can give me a idea on how to do steps 1-3 i think i can figure out the rest.
The reason im using external eeprom is just mainly for learning and might use it to like personalize some stuff. This way i never have to reprogram the main chip. I pull the epprom and program it with another main chip and poof there we go lol.
OK Im using ASM but can use SourceBoostC if possible. And the main uC is a 18F1320. But i might change it after i learn the code. Like ill try to port it over.
Thanks in advance!
P.S. The Bold above is just because sometimes people ask what chip and what language and why this and that so i though i would bold it out so it stands out more