Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Send TEXT file from PC via RS232 to external eeprom

Status
Not open for further replies.

pasicr

Advanced Member level 1
Joined
Aug 13, 2005
Messages
440
Helped
39
Reputation
80
Reaction score
29
Trophy points
1,308
Location
Macedonia
Activity points
4,213
tocom via eprom

Hi for all,
I work on led message project, shows text, date, time and temperature.
I use PIC16F877 dev board from FUTURLEC and MIKROBASIC IDE from MIKROE. and everithing work super on 2x16 LCD. Now I use 8x8 led matrix with MAX7219 driver.
Becouse internal eeprom of PIC877 is small, I use external eeprom 24C08,
If somebody have experience with SENDING TEXT FILE (MADE FOR EXAMPLE IN NOTEPAD) VIA RS232 TO EXTERNAL EEPROM, please share with me.
Best regards
 

rs232 send file

You can send out a simple text file out the RS232 port easily with Windows' Hyperterminal.
But that won't work this way because it needs some processing, write timing etc.
Write some code into the 877 to receive a file and do the EEPROM write that way.
 

send file rs232

A good way in doing this you have to make a custom software which read your test file character-by-character and send it through COM Port.
 

    pasicr

    Points: 2
    Helpful Answer Positive Rating
send text via rs232 with hyperterminal

Hi Saeed,
do you have this kind of software to read chr to chr and send to com port?
regards
 

sourceboost rs232

here is the software which is transmit the text file serially .

*now , you need the board thr which data dump in eeprom ok !

**other option is icprog , whatever file you want to transmit , load it and select the
ic number and you will be happy , then you need ckt

i have both the ckt and board * / **.
 

    pasicr

    Points: 2
    Helpful Answer Positive Rating
ic2 to rs232

#include <AT89X51.H>

char getCharacter (void)
{
char chr; /* variable to hold the new character */
while (RI != 1) {;}
chr = SBUF;
RI = 0;
return(chr);
}


void main (void)
{
//int i;
char chr; /* variable to hold characters in */
SCON = 0x50; /* mode 1, 8-bit uart, enable receiver */
TMOD = 0x20; /* timer 1, mode 2, 8-bit reload */
TH1 = 0XFD; /* 9600 */
TR1 = 1;
TI = 1;
while (1)
{
chr = getCharacter ();
//for(i=0;i<3300;i++)
//{};
P1=chr;

}
}

i have LEDs on port 1 but there will be nothinn on LEDs when i run the client used the same baudrate 9600

even i use the client provid in this web site & it was not connected to the port can any one plz help
 

eeprom rs232

if you want your requirement in asm tell me, i will provide code for you.
 

the external eeprom file

pasicr said:
Becouse internal eeprom of PIC877 is small, I use external eeprom 24C08,
If somebody have experience with SENDING TEXT FILE (MADE FOR EXAMPLE IN NOTEPAD) VIA RS232 TO EXTERNAL EEPROM, please share with me.
Best regards

Is the micro controller going to receive the text file from the terminal and then program the file into the eeprom?

That is the best way (in my opinion)

This is what I do:

Use windows hyperterminal to send the text file. Choose any baud rate that the micro controller will support with less than 1% error.

The micro controller will receive the data into a circular buffer (if the file is large), and write it to the eeprom. You should use interrupts with your serial routines to minimize lost data and/OR slow the data down from within hyperterminal.

Good Luck
 

rs232 read write to txt

Hi can anyone give me a code with which i can write the text file into an eeprom???

Plz..
 

sending 16 bits via rs232

Hello anybody has an idea..Please give a way or any material which i can try out..
 

dump for eeprom

heres a piece of sample code showing you how to access a serial eprom through I2C. and breaks the process into "nice easy to translate to basic" functions..

http://www.sourceboost.com/Products/C2C-plus/ExampleCode/i2c/i2clow.html
(btw sourceboost have a very nice free trial version and well worth looking into)

However the mikroElectronika forum seems to be very active and there are numerous threads on ic2 and rs232 communication.
Hope that helps :)
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top