Hey,
Ik heb een RTC met batterij en kristal uit een CDI speler gesloopt. Als extraatje zat er ook nog een 8X8K Geheugen in welke bewaard blijft door de batterij (een echte alles in 1 module dus).
Ik snap alleen de werking van de chip niet. Hoe selecteer ik nou een adres om te lezen of schrijven? En hoe komt de data naar mij toe?
Heeft iemand ervaring met deze chip of is er iemand die mij het duidelijker uit kan leggen als de datasheet?
Datasheet: http://www.st.com/stonline/products/literature/ds/2411/m48t08y.pdf
Bedankt!
Roland van Leusden
It's the rule that you live by and die for It's the one thing you can't deny Even though you don't know what the price is. It is justified.
Typisch zo'n ic voor een 8051 of een PIC / AVR met veel i/o
Read Mode
The M48T08/18/08Y is in the READ mode whenever W (WRITE enable) is high, E1 (chip
enable 1) is low, and E2 (chip enable 2) is high. The device architecture allows ripplethrough
access of data from eight of 65,536 locations in the static storage array. Thus, the
unique address specified by the 13 address inputs defines which one of the 8,192 bytes of
data is to be accessed. Valid data will be available at the data I/O pins within address access
time (tAVQV) after the last address input signal is stable, providing that the E1, E2, and G
access times are also satisfied.
Lijkt me wel duidelijk toch ?
Maar hoe selecteer je dan een adres met 13 adres ins (A0 t/m A12)?
RTC zit bijvoorbeeld op HEX: 1FFF Dit zijn 16 bits.
[Bericht gewijzigd door hp197 op (76%)]
nope, FFFF is 16 bits. 1FFF is met 13 bits te adresseren.
Lees wel even goed het datasheet door hoe je de RTC registers uit moet lezen (pagina 14 datasheet).
[Bericht gewijzigd door bjokal op (47%)]
Arco
Special Member
Arco - "Simplicity is a prerequisite for reliability" - hard-, firm-, en software ontwikkeling: www.arcovox.com
Zo had ik er nog niet over na gedacht bjokal...
1FFF is het hoogste register, je hebt er aan 13 inderdaad genoeg.
Ik ga lekker hobbiën 
Bedankt!