View previous topic :: View next topic |
Author |
Message |
Sophi
Joined: 14 Jun 2005 Posts: 64
|
PonyProg->24LC128 |
Posted: Mon Jan 09, 2006 2:35 pm |
|
|
I have programmed a 24LC128 eeprom using PonyProg with a data hex file.
When I load the file into PonyProg, it shows up in three separate sections, brown (presumably the memory address), then blue, according to Ponyprog help documentation
Quote: | In case of splitted Program/Data device like AVR and PIC the content of the data eeprom will be displayed after the content of the program flash memory in the current window with a different color.
|
then purple (I recognize my file!).
When I "play" the file, I have the file also printing to an LCD. What prints is the middle section- the blue, the "content of the program flash memory".
*edit- and is there even flash memory on the eeprom?
But what I want to be playing is the content of the data eeprom.
Here is my i2c code:
thanks-
Sophi
Code: |
#include <16F877.h>
#use delay(clock=20000000)
#use i2c(Master, SDA=PIN_C4, SCL=PIN_C3)
#fuses hs,noprotect,nowdt,nolvp
#byte PORTB=6
#include <24128.c>
#include <LCD_16f877A.c>
#use fast_io(b)
main()
{
int data=0;
long int a=0;
int i;
set_tris_a(0b00100000); // sets Port a direction 0=out 1=in
set_tris_b(0); // sets Port b all outputs
portb=0x00; // init Port b sets all pins low
delay_ms(1000); // delay for settling
lcd_init(); // init LCD
init_ext_eeprom(); // init 24128, call before the other functions are used
data = read_ext_eeprom(0); // read the byte data from the address a
portb = data; // variable data = port B
printf(lcd_putc,"\nRead Eeprom");
delay_ms(1000);
for(a=0;a<30000;a++) //Read 30000 times
{
data = read_ext_eeprom(a);
portb = data;
printf(lcd_putc,"\nReading %lx", data);
}
portb=0x00;
delay_ms(250);
printf(lcd_putc,"\ncomplete ");
} |
|
|
|
Sophi
Joined: 14 Jun 2005 Posts: 64
|
|
Posted: Mon Jan 09, 2006 3:12 pm |
|
|
deleted
Last edited by Sophi on Tue Jan 10, 2006 7:29 am; edited 1 time in total |
|
|
Sophi
Joined: 14 Jun 2005 Posts: 64
|
|
Posted: Tue Jan 10, 2006 7:29 am |
|
|
Tried this with another programmer ALL-11. The program buffer from my file of all hex digits still has three columns. Address, something in the middle, and my file.
Does anyone know what this file in the middle is?
Sophi |
|
|
treitmey
Joined: 23 Jan 2004 Posts: 1094 Location: Appleton,WI USA
|
|
Posted: Tue Jan 10, 2006 10:01 am |
|
|
Does it look something like the intel-hex file format? |
|
|
Sophi
Joined: 14 Jun 2005 Posts: 64
|
|
Posted: Tue Jan 10, 2006 5:14 pm |
|
|
thanks for reply-
No, it looks like regular hex, no record type.
I have been told that what I am seeing is the same data file in both ASCII and in hex.
thanks again-
Sophi |
|
|
|