![]() | ![]() | ![]() |
| | |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| Does anyone know how to store data to EEPROM? I am currenly using PIC18F2620. | |
| |
| | (permalink) |
| | |
| |
| | (permalink) |
| Thank for the reply. Actually, i know how is the routine like to write and read to eeprom. My problem is that i dunnno how to implement it. I suppose to store the calibration value of light sensor to the eeprom so that my main program will know it when my device is first power up. I just don't understand how is the things work from saving the value and read the value. Here is the example of what have my friend done: # define FCIN_ADDR 0x00 result= ReadEeprom(FCIN_ADDR); result<<=8; // i dun understand why must it shift by 8 tem=ReadEeprom(FCIN_ADDR+1);// why must it increment by1 result+=tem; Regards Last edited by apricot_star; 17th August 2008 at 12:38 PM. | |
| |
| | (permalink) |
| Why not ask your friend? | |
| |
| | (permalink) | |
| Quote:
Given that you did not understand what the <<= operator was you either need to learn C or have you friend help you.
__________________ search engine for electronic partsJunebug USB PIC programmer kit., USB Bit Wacker, 3v0's Homepage The 15 Minute Printed Circuit Board! (+drill time) | ||
| |
| | (permalink) |
| Thanks, i got it now =) | |
| |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
| | ||||
| Title | Starter | Forum | Replies | Latest |
| saving value without eeprom PIC16F72? | neelam29 | Micro Controllers | 1 | 12th January 2008 08:06 AM |
| Data EEPROM of PIC questions | bananasiong | Micro Controllers | 35 | 25th July 2007 10:25 AM |
| Writing Data to the EEPROM | Electrix | Micro Controllers | 2 | 31st August 2005 07:39 AM |
| EEPROM data corruption | StupidDum | Micro Controllers | 0 | 28th September 2004 05:01 AM |
| PIC 16f876 data eeprom write | SuperBud | Micro Controllers | 3 | 22nd October 2003 02:15 AM |