how to get data from EEPROM to a file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • askcq
    New Member
    • Mar 2007
    • 63

    how to get data from EEPROM to a file

    How to read from EEPROM and write the contents to a file ??
  • horace1
    Recognized Expert Top Contributor
    • Nov 2006
    • 1510

    #2
    Originally posted by askcq
    How to read from EEPROM and write the contents to a file ??
    where is the EEPROM ? on an embedded microtroller?

    Comment

    • askcq
      New Member
      • Mar 2007
      • 63

      #3
      Originally posted by horace1
      where is the EEPROM ? on an embedded microtroller?
      yes ... on a micro procesor
      its ATMEL EEPROM
      i need to know how to read the contents and write the contents of EEPROM to a file

      Comment

      • horace1
        Recognized Expert Top Contributor
        • Nov 2006
        • 1510

        #4
        Originally posted by askcq
        yes ... on a micro procesor
        its ATMEL EEPROM
        i need to know how to read the contents and write the contents of EEPROM to a file
        usally one would have two programs
        (1) on the microprocessor which reads the data and transmits it over serial line to a PC
        (2) on a PC which reads data from the serial lines and writes it to a file

        do you have the compiler etc for the microprocessor?

        Comment

        • askcq
          New Member
          • Mar 2007
          • 63

          #5
          Originally posted by horace1
          usally one would have two programs
          (1) on the microprocessor which reads the data and transmits it over serial line to a PC
          (2) on a PC which reads data from the serial lines and writes it to a file

          do you have the compiler etc for the microprocessor?
          yes, I need to know the logic alone .i.e., how to read from EEPROM and write it into a file .

          Comment

          • horace1
            Recognized Expert Top Contributor
            • Nov 2006
            • 1510

            #6
            Originally posted by askcq
            yes, I need to know the logic alone .i.e., how to read from EEPROM and write it into a file .
            how is the EEPROM interfaced to the micrcontroller, e.g. memory mapped?
            How are you going to connect the microcontroller to the host PC, e.g. serial line, usb, parallel port?

            Comment

            • askcq
              New Member
              • Mar 2007
              • 63

              #7
              Originally posted by horace1
              how is the EEPROM interfaced to the micrcontroller, e.g. memory mapped?
              How are you going to connect the microcontroller to the host PC, e.g. serial line, usb, parallel port?
              microprocessor is communicating with EEPROM through I2C ....I could read and write in EEPROM

              I want to write the entire contents of the EEPROM to a file
              how can I do it

              Comment

              • horace1
                Recognized Expert Top Contributor
                • Nov 2006
                • 1510

                #8
                Originally posted by askcq
                microprocessor is communicating with EEPROM through I2C ....I could read and write in EEPROM

                I want to write the entire contents of the EEPROM to a file
                how can I do it
                use I2C to read bytes from the EEROM, transmit them to a PC which writes them to a file - how is the microcontroller connected to the PC? e.g. if it is via a serial line there are C libraries to read characters from a serial port which you can then write to a file

                Comment

                Working...