download data
Archiver
Posts: 46,084
Hi!
Instead to download on the eeprom of the running BS2, I want to
downloads
datas to an external eeprom like " 24C65 " . Does anyone have some code
lines
as an example? How should I write (as sample) a date & time and take the
smallest
place on eeprom
Thank you!
Rene
Instead to download on the eeprom of the running BS2, I want to
downloads
datas to an external eeprom like " 24C65 " . Does anyone have some code
lines
as an example? How should I write (as sample) a date & time and take the
smallest
place on eeprom
Thank you!
Rene
Comments
I have that 21073h.pdf document but it does not tell me a lot to how match stamp
with it.
In fact, I want to log "month, day, hour and minute" of an event and when I was
talking about the
24C65, it also could be a 24C08. The thing is to leave the whole unit in place
and take only
the eeprom for reading at home and to transfer on PC in an EXCEL format file.
For many
applications as how many cars passing by the street where I live and when, it
could be also to
follow the in and out of an employee at office and so... I want to log an event
in an external
eeprom from my BS2, Iwant to pick up thoses datas from eeprom also with my BS2
and to
transfer it to my PC onto a text file or onto an EXCEL file!
What a project hey!
But also what fun to learn to do it too!
Rene
[noparse][[/noparse]Non-text portions of this message have been removed]
wrote:
> Hi!
>
> Instead to download on the eeprom of the running BS2, I want to
> downloads
> datas to an external eeprom like " 24C65 " . Does anyone have some
code
> lines
> as an example?
Have you checked
www.microchip.com/download/lit/pline/memory/ic/21073h.pdf
?
I just briefly scanned it and it looks pretty sophisticated as far as
what to write - byte, page and others. It looks like good candidate
for SHIFTOUT and PULSOUT operators with one catch - 24C65 responds
to commands with "ACK"! That means more work for you if you want to
use this "handshake". I did not read the details, maybe you can
safely ignore it. By more work I mean you will have to shiftout/
pulsout for each output.
But I don't want to keep guessing, just read the article and than we
can talk about your application.
How should I write (as sample) a date & time and take the
> smallest
> place on eeprom
I think you need to decide if you want to spend time coding and do
not care about execution time or just write the required data in
simplest format. 8k x 8 seems to me like a lot of external memory,
but I do not know details about your application.
Here is one possible way to code ( as in cipher ) the date:
Since 25c65 is 8 bits wide and the smallest you can wite at one time
is 8 bits - the simplest way would an array Date:
Date(0) Month
Date(1) Day
Date(2) Year
Date(3) Seconds
Of course you will have to convert the Seconds into Hours/
Minutes/Seconds or whatever precision you are looking for.
>
> Thank you!
>
> Rene