View previous topic :: View next topic |
Author |
Message |
chris_1982 Guest
|
Transfering data from external eeprom to a PC |
Posted: Wed Apr 02, 2003 10:15 am |
|
|
Hi all
I am thinking about reading data from an external eeprom using a serial port. This is part of a Uni project and I realisticly only have 2 days in which to complete this project. Can it be done? How do I recive data on the PC? What type of serial cable do i need? How do I send the data from the PIC(a 16F877)?
Thanks
Chris
___________________________
This message was ported from CCS's old forum
Original Post ID: 13312 |
|
|
Neutone
Joined: 08 Sep 2003 Posts: 839 Location: Houston
|
Re: Transfering data from external eeprom to a PC |
Posted: Wed Apr 02, 2003 10:39 am |
|
|
:=Hi all
:=I am thinking about reading data from an external eeprom using a serial port. This is part of a Uni project and I realisticly only have 2 days in which to complete this project. Can it be done? How do I recive data on the PC? What type of serial cable do i need? How do I send the data from the PIC(a 16F877)?
:=
:=Thanks
:=Chris
Thats a lot of details to what you want to do. You can't develop that in 2 days. Your fastest development path would be to find a freeware programm for the PC. That gives you your man machine interface. Use a MAX232 to change rs232 to logic voltage levels. Impliment support in the pic and your done. Look through the forum and you may find some examples for transfering packets to and from a pic. A widely supported and well documented protocol you might use is modbus.
www.modbus.org
___________________________
This message was ported from CCS's old forum
Original Post ID: 13314 |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
Re: Transfering data from external eeprom to a PC |
Posted: Wed Apr 02, 2003 10:41 am |
|
|
:=Hi all
:=I am thinking about reading data from an external eeprom using a serial port. This is part of a Uni project and I realisticly only have 2 days in which to complete this project. Can it be done? How do I recive data on the PC? What type of serial cable do i need? How do I send the data from the PIC(a 16F877)?
:=
------------------------------------------------------------
CCS has an example file called EX_EXTEE.C, which does
exactly what you want. You can find it here:
c:\Program Files\Picc\Examples
The CCS FAQ page has a schematic showing how to connect a PIC
to a PC, using a MAX232 chip. (You could use MAX232A and only
have to use 0.1 UF caps, instead of 1 UF).
<a href="http://www.ccsinfo.com/faq/?6" TARGET="_blank">http://www.ccsinfo.com/faq/?6</a>
Also, you would use pins C6 and C7 on the 16F877 instead of
A2 and A3. (Pin C6 would go to pin 11, and pin 12 would go
to pin C7).
___________________________
This message was ported from CCS's old forum
Original Post ID: 13315 |
|
|
Shane Rowell Guest
|
Re: Transfering data from external eeprom to a PC |
Posted: Wed Apr 02, 2003 11:56 am |
|
|
Chris,
If you send me a detailed message on exactly what you are trying to do, I may be able to help. Depending on the size of the eeprom the approach may differ. Please indicate all manufacturers part #'s.
Shane
:=Hi all
:=I am thinking about reading data from an external eeprom using a serial port. This is part of a Uni project and I realisticly only have 2 days in which to complete this project. Can it be done? How do I recive data on the PC? What type of serial cable do i need? How do I send the data from the PIC(a 16F877)?
:=
:=Thanks
:=Chris
___________________________
This message was ported from CCS's old forum
Original Post ID: 13319 |
|
|
|