hi anyone has a good site where i can find interfacing the serial EEPROM with my microcontroller? the hardware wiring is pretty simple, but i'm also looking as to how the MC is going to access the 24C04 in terms of software. any suggestions? - A
24C04 with my microcontroller
Started by ●December 18, 2003
Reply by ●December 18, 20032003-12-18
Reply by ●December 18, 20032003-12-18
"Aliasger" <aliasger_18@hotmail.com> wrote in message news:d0817e19.0312181017.7cfdaf90@posting.google.com...> hi > > anyone has a good site where i can find interfacing the serial EEPROM > with my microcontroller? > > the hardware wiring is pretty simple, but i'm also looking as to how > the MC is going to access the 24C04 in terms of software. > > any suggestions? > > - AGet a data sheet from the manuafacturer.
Reply by ●December 19, 20032003-12-19
"Aliasger" <aliasger_18@hotmail.com> wrote in message news:d0817e19.0312181017.7cfdaf90@posting.google.com...> hi > > anyone has a good site where i can find interfacing the serial EEPROM > with my microcontroller? > > the hardware wiring is pretty simple, but i'm also looking as to how > the MC is going to access the 24C04 in terms of software. > > any suggestions? > > - AAtmel has notes and assembler examples on their site
Reply by ●December 19, 20032003-12-19
Aliasger wrote:> hi > > anyone has a good site where i can find interfacing the serial EEPROM > with my microcontroller? > > the hardware wiring is pretty simple, but i'm also looking as to how > the MC is going to access the 24C04 in terms of software. > >All these serial things go the same general way: wiggle the clock, set a data bit and maybe a direction bit too, wiggle the clock again, either read or write the bit, shift the data across. The order in which you do this changes from one to another, as do commands and addressing schemes. Microchip will certainly have examples for the PIC, which is fine if you are using the PIC, but even examples in C that are not specific to your controller won't help much, as it's all about port access. I'd recommend reading the comms protocol closely, and converting it to pseudo code, then turning this into the actual portwiggling for your uC. I've probably got a C example from some years ago (somewhere), but I haven't used these for a long time, and IIRC it was specific to the 80C196. Paul Burke