Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/17/05 10:26
Read: times


 
#87757 - Overcomplicated?
Responding to: ???'s previous message
Whenever there's a PC involved, it makes sense to get the PC to do as much of the hard work as possible, and make the embedded processor's life as easy as possible.

If I understand correctly, the 8051 only ever reads the EEPROM - all writing is done by the PC.
Therefore, it would make sense to have the PC write the data to the EEPROM in a format that's easiest for the 8051 to read.
A file system as described would be very flexible, but sounds like massive overkill to me.

I would have the PC write the EEPROM using records something like this:
struct
{
   unsigned char design_name[40]; // Text string that can be displayed on the LCD
   unsigned int  number_of_rows;  // The number of rows in the data
   unsigned char data[];          // The variable-length data
}

(this wouldn't work as an actual 'C' structure, because they can't have variable length, but you get the idea).

When the EEPROM needs updating, the PC would read the whole thing, do the update, then write the data back as just a contiguous set of records - so there's no need for the 8051 to go following the chains of blocks making up a file

List of 27 messages in thread
TopicAuthorDate
Database managment            01/01/70 00:00      
   ???            01/01/70 00:00      
   U have to make Linked List File System            01/01/70 00:00      
      Overcomplicated?            01/01/70 00:00      
   Database managment            01/01/70 00:00      
      Clear as mud!            01/01/70 00:00      
         Database managment            01/01/70 00:00      
            Jacquard ?            01/01/70 00:00      
      row size            01/01/70 00:00      
         Jacquard loom?            01/01/70 00:00      
            Towels            01/01/70 00:00      
               Towels            01/01/70 00:00      
            It's easier done on the PC side            01/01/70 00:00      
               Me too said the dog            01/01/70 00:00      
   Right, then            01/01/70 00:00      
   not just you but many            01/01/70 00:00      
      Database managment            01/01/70 00:00      
         then correct it            01/01/70 00:00      
            eeprom size            01/01/70 00:00      
   let the PC do it            01/01/70 00:00      
      cheap file system            01/01/70 00:00      
         PC do it - Write Time for 128 K EEPROM            01/01/70 00:00      
            I'd still let the PC do it!            01/01/70 00:00      
            not a problem            01/01/70 00:00      
         It is Pravin's choice            01/01/70 00:00      
   Another idea            01/01/70 00:00      
      Bit Stuffing            01/01/70 00:00      

Back to Subject List