Search Engine

476 Threads found on Eeprom Code
How frequently does the ADC values change? If it changes every 1 sec say then you need 96 bytes of eeprom to store data of 48 analog inputs. You should also consider the max write/erase cycle of eeprom (eeprom byte). If adc value changes too frequently then it is better to use SD card to store the adc values.
#include sbit SCL = P2^2; /* connect to SCL pin (Clock) */ sbit SDA = P2^1; /* connect to SDA pin (Data) */ void InitSerial(void) { SCON = 0x50; // setup serial port control TMOD = 0x20; // hardware (9600 BAUD @11.0592MHZ) TH1 = 0xFD; // TH1 TR1 = 1; // Timer 1 on } void Ser
i am getting problem while interfacing pic18f4550 with 24c512 eeprom using i2c protocol.i am using xc8 compiler. i think eeprom write is done correctly and problem might be in read_eeprom bcoz while doing debugging i get problem in eeprom read. but plz check code ones. i have attached (...)
This is small project i did a while ago with a PIC16F88, its a very simple counter that uses the pic internal eeprom to memorize the value on the 7 segment display so it remenbers after power off, 103515 The code is in assembly and the components are all SMD. 103517 You can check every detail incl
Here is a I2C code but not for eepeom. There is I2C example code at saeedsolutions but I can't provide its link as I got a warning that I am promoting that website. I have no interest in promoting any website or
I can send message normally using the following code HSerout HSERIN 5000 , error, HSEROUT HSEROUT HSERIN 3000 , Error, LCDout "OK" How can I send message to a number which is stored from location 0 to 9 in eeprom I tried storing val
Did you run a testbench and checked the waveforms against required I2C protocol? You would normally write a simple emulation module that generates ACK of the external eeprom, but if I understand right, ACK isn't checked in your design. Did you hear about code tags?
Which eeprom you are using??
I am getting problem while interfacing eeprom and 16f876a pic controller.I am using MPLAB X IDE and XC compiler. I have pulled up SDA and SCL with 4k7 resistor. and also i use function and after blink port with 0x55 and 0xAA in infinite loop. If i simply use functions write_eeprom(); read_eeprom(); then LED doesn't get (...)
Hello, I have project to do and it is completed in 90%. My problem is how to save ACC (0-9) to eeprom. CD-ROM contains example code how to use FlashEE, but my 52 saves something, but I don't know what :D It's code for garage door using LCD display, engine not works but lecturer says that is not problem. It reads from FlashEE number of (...)
Can any one say is it possible to implement this code in ATMEL 24C16 eeprom device for write the data.while i am implementing this with CPLD xc9572 I/O Pin declared as sda,scl there wont have write operation its operting frequency is 132kHz .voltage compatibility in CPLD is 3.3volt and eeprom Datasheet describes it will
Hi All, Need your help/suggestion on this issue: I need to write a bootloader for PIC32MX360F256L-80I/PT. This bootloader will download the application code from an eeprom after power up. Could you please suggest me how to write bootloader (step by step procedure) from scratch. I am using MPLAB IDE. Thanks, Sunny
I must write .hex file only in Program memory ??? Application code => Flash Memory eeprom Values => eeprom Configuration Settings => Configuration Registers Examine the following for more info: AN1094 Bootloader for dsPIC30F/33F and PIC24F
if eeprom address 0x00 contains high byte and address 0x01 contains low byte then you can use the below code. TMR1H = eeprom_Read(0x00); TMR1L = eeprom_Read(0x01);
It is a I2C eeprom. AT89S52 doesn't have hardware I2C so you have to write software I2C code. It is better to use SPI eeprom like 25LC256 and write software SPI code.
Hai everyone, I am asking this just out of curiosity. I am using Microchip C30 compiler to develop eeprom driver code for PIC24F. During this I used C30 builtin functions such as __builtin_tblwtl(), __builtin_tbloffset etc. How can I find the location of builtin functions? From Wiki I found this: Some compilers (for example, GCC[
Hi! I need some help with the algorithm of my code. I want to read a meter reading from the eeprom and add it up to the monthly consumption. After that I want to add the timer1 value to it when it increments to the meter reading. This is how I have done it. temp = eepromReadInt(0x00); pulses = (count*65535)+ (TMR1H<<
hi experts.... I m working on a project which have a 24c16 eeprom.... My programming for this is given- void save() {start(); send_byte(0xA0); aknowledge(); send_byte(0x00); aknowledge(); send_byte(arm_hr);aknowledge(); send_byte(arm_min);aknowledge(); send_byte(dis_hr);aknowledge(); send_byte(dis_min);aknowledge(); send_b
Hi! My project is a Energy meter. I'm getting pulses from an energy measurement IC. I want to save the total no of pulses on the eeprom. I know how to read & write from the eeprom using Mikroc PRO. I'm using the timer1 to count the pulses. I'm bit confused in which order to do it. This is what I thought. First TMR1L = 0 , TMR1H = 0 while(1){
This can be done for some of the following possible reasons: The core of your Arduino platform presumably may be 8-bit data bus. eeprom referred on above code is an external I2C or SPI whose data bus is sized to 8-bit. In both cases, scaling original acquired data to 8 bits magnitude will lose some precision after restore.