476 Threads found on edaboard.com: 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.
Microcontrollers :: 04-25-2014 13:09 :: milan.rajik :: Replies: 11 :: Views: 1257
sbit SCL = P2^2; /* connect to SCL pin (Clock) */
sbit SDA = P2^1; /* connect to SDA pin (Data) */
SCON = 0x50; // setup serial port control
TMOD = 0x20; // hardware (9600 BAUD @11.0592MHZ)
TH1 = 0xFD; // TH1
TR1 = 1; // Timer 1 on
Microcontrollers :: 03-28-2014 06:31 :: MachaniGoutham :: Replies: 0 :: Views: 1252
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
i have attached (...)
Microcontrollers :: 03-24-2014 15:43 :: embpic :: Replies: 0 :: Views: 1017
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,
The code is in assembly and the components are all SMD.
You can check every detail incl
Show your DIY :: 03-23-2014 23:25 :: Ricardo_Electropepper :: Replies: 0 :: Views: 1463
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
Microcontrollers :: 03-23-2014 06:04 :: milan.rajik :: Replies: 1 :: Views: 1525
I can send message normally using the following code
HSERIN 5000 , error,
HSERIN 3000 , Error,
How can I send message to a number which is stored from location 0 to 9 in eeprom
I tried storing val
Microcontrollers :: 03-22-2014 10:28 :: alokdaga :: Replies: 11 :: Views: 1421
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?
PLD, SPLD, GAL, CPLD, FPGA Design :: 03-13-2014 11:13 :: FvM :: Replies: 4 :: Views: 7196
Which eeprom you are using??
Embedded Linux and Real-Time Operating Systems (RTOS) :: 02-26-2014 06:55 :: embpic :: Replies: 6 :: Views: 1031
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
then LED doesn't get (...)
Microcontrollers :: 02-20-2014 11:55 :: embpic :: Replies: 4 :: Views: 788
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 (...)
Microcontrollers :: 02-15-2014 19:55 :: hello_world :: Replies: 1 :: Views: 851
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
PLD, SPLD, GAL, CPLD, FPGA Design :: 02-04-2014 13:58 :: aruipksni :: Replies: 1 :: Views: 761
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.
Embedded Linux and Real-Time Operating Systems (RTOS) :: 01-31-2014 19:27 :: justsunny :: Replies: 1 :: Views: 1901
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
Microcontrollers :: 01-16-2014 17:17 :: bigdogguru :: Replies: 1 :: Views: 631
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);
Microcontrollers :: 01-16-2014 15:01 :: jayanth.devarayanadurga :: Replies: 6 :: Views: 584
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.
Microcontrollers :: 01-14-2014 09:17 :: jayanth.devarayanadurga :: Replies: 3 :: Views: 520
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[
Microcontrollers :: 01-11-2014 06:22 :: ponnus :: Replies: 2 :: Views: 729
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<<
Microcontrollers :: 01-10-2014 16:29 :: ADGAN :: Replies: 0 :: Views: 493
I m working on a project which have a 24c16 eeprom....
My programming for this is given-
Microcontrollers :: 01-07-2014 13:04 :: Sudhp :: Replies: 9 :: Views: 1471
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
Microcontrollers :: 01-05-2014 13:48 :: ADGAN :: Replies: 8 :: Views: 512
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.
Microcontrollers :: 01-04-2014 01:37 :: andre_teprom :: Replies: 1 :: Views: 1039