Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Reading data using Atmel

Status
Not open for further replies.

Micro Lover

Member level 2
Joined
Jul 22, 2009
Messages
44
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
pakistan
Activity points
1,614
hi
i have one txt file, containing the times and some symbols code, i want to read it using Atmel89S51, the txt file is in my PC, but i want to save it on RAM/Mu or any other storage media, how can i do it

the pattern of txt file is like this
day , Symbol code1, time 1, symbol code 2, time 2 .............

0,12:00,0,12:00,0,12:00,0,12:00,0,12:00
0,12:00,0,12:00,0,12:00,0,12:00,0,12:00
:
:
:
0,12:00,0,12:00,0,12:00,0,12:00,0,12:00

each line is, for one day, so it will be, 365 lines, or 366
the "," and ":" are not necessarily
it may be like this

0120001200012000120001200
------------
using storage media, which is suitable, and how can i do it
or any other Atmel Mc having a large number of RAM, where is create a text array
 
Last edited:

There are several options, it largely depends on how often the data will be changed or updated.

One possibility is to use an external RAM, ROM or Flash, the AT89S51 has this feature:

Interfacing an AT89S51 to External RAM, Development Board Example

This technique requires the most hardware design, but requires little coding to take advantage of the external memory.


Another option is to implement an I2C bus and use I2C Serial EEPROM as described in the following appnote:

Interfacing AT24CXX Serial EEPROMs with AT89LP Microcontrollers

This technique would provide up to 1Mbit of nonvolatile storage and require only a moderate amount of coding.


And the final option I would consider is implementing a SPI bus and using a SD/MMC flash card as the following example demostrates:

MMC/SD Card interfacing and FAT16 Filesystem with 8051/8052

This technique would provide the largest amount of nonvolatile storage, but would require the most coding to implement it.

BigDog
 
yes i want to use the nonvolatile storage and write only one time, then only read it, no need to update
 

You could use any of the three methods, I presented in the previous post.

In the first example you could use ROM or FLASH instead of RAM. The other two examples are already nonvolatile. Which methods sound most appealing?

BigDog

---------- Post added at 15:03 ---------- Previous post was at 14:23 ----------

i think the Interfacing AT24CXX Serial EEPROMs with AT89LP Microcontrollers is the most suitable, is there any simplest code????

Yes.

ATMEL I2C Serial EEPROM

You will have to register for the sample code below, the example uses a AT24C02, there are larger capacity devices available.



BigDog
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top