Search Engine

476 Threads found on Eeprom Code
There is a issue regarding code in eeprom. while in debug mode it was showing issue at " if(I2C_transfer(i2cHandle, &i2cTransaction)) " it was not going inside i2c_transfer. I am sharing the code above. please give me a solution to fix it. I modified the i2ctmp007 example code and wrote eeprom by removing (...)
There is a issue regarding code in eeprom. while in debug mode it was showing issue at " if(I2C_transfer(i2cHandle, &i2cTransaction)) " it was not going inside i2c_transfer. I am sharing the code above. please give me a solution to fix it. I modified the i2ctmp007 example code and wrote eeprom by removing (...)
Hi I am working Interface eeprom 24C08 with AT89C2051 controller. I wrote some code for Read/Write the Values(0 to 9) in 24C08. I am starting with Just counter program which shows Read/Write Values in BCD 7 segment. Here Problem is for first time it works well when I press P3^5 button.After enter into forloop It wont execute the Read/write o
Hi I am working to interface eeprom and 89c2051.I am started with counter program (0-9)values display in BCD 7 segment. When I pressed button P3^5 ,R/W process works well.After that in my For loop it wont Write Data in eeprom.I dont know where I am going wrong?I anyone know the reason share with me.Here I attached my code (...)
Dear all, Im using PIC18F4550, im writing some data to eeprom. Then read form the eeprom and write in to another memory.(Just Check) i could not find any error in my code . Please give me some suggestion. in proteus i'm seasoning eeprom data. Here is the code. // PIC18F4550 Configuration Bit Settings (...)
I am using 24LC00 eeprom to store a counter value. Only is counter value is in valid range the device will work. On device startup I am reading this 1 byte counter value. What happens if somebody cuts the I2C tracks of eeprom from the MCU ? If MCU reads the eeprom what will be the returned value ? I have written code suct (...)
Firstly you are misunderstanding both eeprom related protection bits. code protection means, the eeprom content can't be read or written by a programmer, only erased in total Write protection means, it can't be written at run-time (used as read-only memory) Review the datasheet. I need to write some flags to eeprom in (...)
I want to store the data when POWER loss or Down. So I connected to the interrupt Pin with help of diode I used 1000uf/25V capacitor to store the power to write eeprom DATA. But interrupt working only when Gnd to VCC trigger but in my case trigger will be VCC to GNd. I attached My circuit and code also.Please Find it, Example code: (...)
Hi all, I am using pic18f2320 for my project. I want to store some value in INTERNAL eeprom. I tried but could not get right result. I cannot read data from eeprom. Even i dont know whether data is stored in to eeprom or not. here is the eeprom coding for wright and read #include #include #ifndef (...)
Your questions are as usual a bit confusing. You complained from the start that you are having issues with the eeprom, which is apparently being updated after each booting of the uC, however there is no access to this memory in the code above. if you press the reset button 20 or 50 times the device stops functioning and you have to rest
In general, compilers provide directives for programming user defined values on eeprom. I guess this settings supersede the IDE configuration, but you could check on your code if there could be happening conflict on both.
for(v = 0; v<12; v++) { write_eeprom(v,mac); delay_ms(20); } change write_eeprom(v,mac); to write_eeprom(v,0xFF); In other words, just write a fixed value to the eeprom, I think 0xFF is the default for blank eeprom but you can (...)
Hi, This is Ramanan and I would like to interface I2C compatible eeprom (AT24C04) with Spartan3E FPGA..... I have written VHDL code for writing a byte in eeprom but nothing available in that location of eeprom, So kindly help me to complete this task,,,, I have given the VHDL code below,,,, I really (...)
Also be careful of making frequent updates to a value in EPROM ( which I assume is actually an eeprom). Normally eeproms have a fairly limited number of erase/write cycles (typically in the 100,000's) and if you are trying to write to the eeprom after each button press then this could be exhausted in a fairly short period of time after which (...)
Hello I have to program cortex M4 microcontroller with eeprom to receive and send some bytes. I should use bit fields to program it or complete byte registers such as TW_CR? mem
It's probably being bit manipulated in that Cypress USB microcontroller code. Based on the datasheet it has an 8051 embedded in it and the code is run from RAM, eeprom, or an external memory device. I'd wager that the original board designer let the PCB layout person to pin swap on that bus to make routing easier. I'd also wager the (...)
Hi, First check eeprom read & write cycle, if it is correct then you can go for GPIO functionality.
Hello, this is my first Project with microchip microcontrollers. I have to develop a emulated eeprom over embedded flash, and I am using the microchip aplication note AN1095, but it does not work properly. This is developed for C30 compiler, and I have to use XC16. I have been able to compile and execute the code, but when I test the (...)
Hi, Is that eeprom is internal (or) external one?? specify what you want to achieve?
Hi, We need more information.(HF RFID is wireless, not SPI) What eeprom device is it? Does it contain a write protect feature? (Sw or hw) Are there other devices on the SPI bus? **** Klaus
I have a situation where i have to write a code in C for ATMEGA128 in AVR studio, so as to compare 5 integers that are being saved in the eeprom and then to see which ones are equal and choose atleast 3 equal numbers of the 5 nrs. :- e.g. a=0,b=0,c=0,d=2,c=3 then Valid_nr=0, a=6,b=0,c=6,d=6,c=6 then Valid_nr=6, a=8,b=8,c=8,d=8,c=8 th
Hello, I want to interface PIR sensor, eeprom, and LM75 Temperature sensor with ATMEGA 16 microcontroller and i have problem in coding.
Hello,could anyone advise on how I can write the data randomly in eeprom using MicroC,I want to refer to Tahmid blog sine table and then create three phase signal chich can control three Phase IGBT system for asynchronous machines. Please help the data is an array which we write one value by one and then read it back and write to a specific por
I want to write the data in a particular page of particular location in internal eeprom of dspic30f5011 controller. How can i write.Give me solution
Hi to all, Here i am using 93C46B microwire serial eeprom. Now i can able to write and read only 2 bytes. I cant write more then 2 bytes and read also? Here i shared my code.please check it and guide me to solve this. #define EE_CS p3_4 // op #define EE_DI p3_3 // op #define EE_CLK p3_5 // op #define EE_DO p3_7 // ip #def
Sections 7.3 and 7.4 of the data sheet have example code to read and write the eeprom. Although they are in assembler, you can 'translate' then easily enough into C. To access the eeprom you need to put the address into special registers anyway (which are part of the RAM for the device) so the way you want to access the (...)
i want to write eeprom like 24c16 , 24c32 , 24c64 from Microsoft EXeL Data. i am going to use Exel software to take data from user then i want to make a hex file from Exel file to write eeprom with user entered data. I want to know hex file format. i have googled but confused about hex file protocol (format).
Writing to eeprom requires different methods from that of writing to flash from within your application code. What version of the Tiny Bootloader are your utilizing? The latest version, Tiny Multi Bootloader+, appears to have the ability to erase and program the contents of the eeprom, although I've not tested this feature. Please (...)
You could perform a loop : for ( address= 0; address < 50 ; address ++ ) { eeprom_write(address,0x00); // load zero, for instance }
Hello! It's been years that I worked with assembler, But I would like to share some old routines so you can check them, Please take in account that this routines works only with those 24C01 to 24C16 (those that works with 1 byte address) FADDR EQU 0a0h ; fixed address for AT24Cxx eeproms PADDR EQU 0 ; programmable address (0..7) PSIZ
Yes, it's possible to use a bidirectional data line with 93xx eeproms. But you must release the data line by writing 1 to it after sending the address information.
There may be additional problems, but it's completely wrong to put all the code (multiple UART reads and writes, eeprom operations) into interrupt. Instead, you can set a flag in interrupt and perform respective action on main() level. Rx interrupt must of course clear the interrupt flag, e.g. by reading the UART.
Hi all. I' m wirting a code to decode a signal from a source. The source sends out a bit train in this fashion: 10100000 10100001 10100010 10100011 In my code I read this data train and write it in hex in the internal eeprom. I wrote the routine and checkd in mplab using some test code in this (...)
Hello, i'm looking for information about 1-Wire eeprom memory, One thing what i have is screenshot below: 118588 and mark on chip: 20 1002 645B1 Can we identify this chip with family code? Any ideas?
For VB6 you can use comm controll. You can download example here: This is example how to talk with serial eeprom.
MCU1 sends Identity data to MCU2. MCU2 reads it and saves it in its internal eeprom. MCU restarts and reads eeprom and loads the MCU1's Identity data to a variable and this will be available when MCU2 is running. After MCU2 reads and saves MCU1's data then MCU2 can send its data to MCU1.
I want to enter the data in eeprom with keypad and the display on 8 bit lcd. Please help me with asm code. its urgent...reply soon
hello ; The 18F46K22 has 256 bytes of non-volatile eeprom starting at 0xF00000 -> EPPROM Size is 1Ko ! 1024 bytes.. You don't send any charactere.. and don't have Recive interrupt ! your program doest nothing !!! What behavior do you expect ?
I want code for program to store measured sampled data of sinewave in eeprom
Hello, I am using STK600 and I have written code to read data from external dataflash using SPI interrupt and then put the same data on hyperterminal in PWM interrupt. But I get only first value of data byte as correct rest as 0x00. I also tried by using status register read command after receiving every single byte of data. There also
Dear All, I need Encryption/Authentication Devices for my product. Specs: I2C eeprom 2K Memory 8 bit Address with Family code '1011' Is there any product that is available off-the-shelf? Thanks
Please let me know that I programmed Arduino code for save and restore of float values in eeprom, Arduino eeprom library attached but problem is that when I write value first time then value is successfully restore but when second time update the value then restore take some for retrieving value?
HI 24LC256 Serial eeprom, I am using eeprom with I2C , and I use a lot of commands to make all addresses to zero state. Is there any method , so that I can completely erase all data in my eeprom at once ? Regards, Raady.
hi i am working on a real time project using I2C eeprom AT24C512. For eeprom AT24C512 testing i wrote code in QuatusII - Nios. and it is working fine when it is in sequence commands. then i tried it as functions. and i wrote initialize,write, and read functions. And these functions are called in main functions. now i am not getting (...)
Hi, Dear Friends, I'm new in using SPI, and i am writing data via SPI from ATMEGA32 to an eeprom m95160. i fallowed the datasheet but i think i have some misunderstanding parts, so i receive those errors in the title, would you please help me to debug my code? compiler is : codevisionAVR simulator: proteus actually this master (...)
Hello, I am using pic32mx795f512l and i am trying to code for external eeprom (25LC256) to store the last value of LED. I want to use SPI communication for eeprom. I need sample code to done this. Please help me with some sample code. Thanks in advance
Hi guys I just started to program eeprom , however the OV7955 system control start with during program, do i need to start from 0x0000 or 0x0100??
many eeproms wrap around to the start when you exceed the memory size you have to put a test in your code so if you try to write past the end of the memory the write is ignored and you get an error message
So where in the data logger system,are you facing a problem?Is it in the code? the date, time and temperature value should be written into the eeprom and pressing a button the written values should be read and displayed in lcd and hyperterminal You mean the instantaneous value(s),right?and why would you be using both the hypertermina
Hello, Be carrefull with writing to Eeeprom , byte per Byte, because need a delay of any mS between each writing. ( 10 to 20mS) If you can manage "Page Mode" you can write 64 bytes without big delay between writing. val=adc_result(); Write_Byte_To_24LC64_eeprom(address,(unsiged char)(val & 0x00FF)); // LSB address++; Write_B