CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

PonyProg->24LC128

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Sophi



Joined: 14 Jun 2005
Posts: 64

View user's profile Send private message

PonyProg->24LC128
PostPosted: Mon Jan 09, 2006 2:35 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Jan 09, 2006 3:12 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Tue Jan 10, 2006 7:29 am     Reply with quote

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

View user's profile Send private message Visit poster's website

PostPosted: Tue Jan 10, 2006 10:01 am     Reply with quote

Does it look something like the intel-hex file format?
Sophi



Joined: 14 Jun 2005
Posts: 64

View user's profile Send private message

PostPosted: Tue Jan 10, 2006 5:14 pm     Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group