Data Transfer btw EEPROM and USART

Discussion about projects that used PIC Microcontroller, Hardware Interface, Programming Algorithm and etc......

Data Transfer btw EEPROM and USART

Postby PICTRAIL » Tue Feb 08, 2011 3:03 am

Hi,
I am designing a system which can receive data from SQL database through USART using PIC16F877A. Here is where my problem lies: I intend to store a table of 4 Columns and 10 Rows on EEPROM from my PC SQL Database through Visual Basic.

Each column consist of Name, ID, Unit Code and Confirmation.

Finally i wish to automatically update my SOL database for registered confirmation through the EEPROM.

Can anyone advise on how to go about it or if possible provide a sample source code.

Thanking you for your anticipating support.
PICTRAIL
Apprentice
 
Posts: 40
Joined: Mon Dec 27, 2010 3:32 pm

Re: Data Transfer btw EEPROM and USART

Postby ABSF » Tue Feb 08, 2011 8:59 am

Are you aware that the eeprom of 877A is only 256 bytes in size? A 4x10 database would get about 6 bytes per field. Is that enough for your usage. And besides, the eeprom reads and writes are slower than the flash and ram so it would take longer time for your data to transfer from PC to PIC.

If the size is too small, adding a 24C32 (4096 bytes) I2C external eeprom might solve your problem.

Allen
The next war will determine NOT who is right BUT what is left.
User avatar
ABSF
Professional
 
Posts: 810
Joined: Wed Nov 10, 2010 9:32 am
Location: E Malaysia

Re: Data Transfer btw EEPROM and USART

Postby PICTRAIL » Tue Feb 08, 2011 2:32 pm

Thanks alot for the idea... I will research about the FLASH. If you have any analysis on this i will really appreciate.
PICTRAIL
Apprentice
 
Posts: 40
Joined: Mon Dec 27, 2010 3:32 pm

Re: Data Transfer btw EEPROM and USART

Postby Brian Griffin » Tue Feb 08, 2011 2:47 pm

PICTRAIL WROTE:Hi,
I am designing a system which can receive data from SQL database through USART using PIC16F877A. Here is where my problem lies: I intend to store a table of 4 Columns and 10 Rows on EEPROM from my PC SQL Database through Visual Basic.

Each column consist of Name, ID, Unit Code and Confirmation.

Finally i wish to automatically update my SOL database for registered confirmation through the EEPROM.

Can anyone advise on how to go about it or if possible provide a sample source code.

Thanking you for your anticipating support.


To be safe, try using SD card. I believe it is because the table might be too large for an EEPROM.
PIC - UIC00B from Cytron (replacement for my broken PICKit 2), Pickit 3, MikroC for PIC
dsPIC - MikroC for dsPIC, mikromedia board (dsPIC33)
AVR - AVR Dragon
Parallax - Prop tool
User avatar
Brian Griffin
Enthusiast
 
Posts: 403
Joined: Mon Jan 17, 2011 9:36 am

Re: Data Transfer btw EEPROM and USART

Postby PICTRAIL » Tue Feb 08, 2011 3:34 pm

OK... Thanks so much i really appreciate your advise... I will definitely review that.
PICTRAIL
Apprentice
 
Posts: 40
Joined: Mon Dec 27, 2010 3:32 pm


Return to PIC Microcontroller

Who is online

Users browsing this forum: No registered users and 4 guests

cron