EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

24C04 with my microcontroller

Started by Aliasger December 18, 2003
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
try microchips site
"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? > > - A
Get a data sheet from the manuafacturer.
"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? > > - A
Atmel has notes and assembler examples on their site
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

The 2024 Embedded Online Conference