I am building a project using the PIC 16c74.
Part of it involves interfacing to a PC, I am not to sure how to do
this. I am thinking of using the Serial Communications Interface
(SCI), configured as a full duplex asynchronous system, and a
MAX232 to level shift to RS-232.
Could someone explain the nature of operation and how I should
Eric van Es
TORRENS SR wrote:
> I am building a project using the PIC 16c74.
> Part of it involves interfacing to a PC, I am not to sure how to do
> this. I am thinking of using the Serial Communications Interface
> (SCI), configured as a full duplex asynchronous system, and a
> MAX232 to level shift to RS-232.
> Could someone explain the nature of operation and how I should
> implement it?
I did a project that has comms to a rs232 port on the pc from the pic.
Works asynchronous at 2400 baud. We simply used Hyperterminal to
display the ascii from the pic. My program had to recognise commands
from the pc and react to it.
Let me know if you want the code. It's written in C, but should be a
breeze in asm.
Eric van Es | Cape Town, South Africa
ilink.nis.za | vaneshttp://www.nis.za/~vanes
LOOKING FOR TEMPORARY / HOLIDAY ACCOMODATION?
I recently tried serial communications PIC<->PC
and they worked. I used three wires only - TxD, RxD and Ground.
From the PC-side the sofware was under DOS and I
did NOT used BIOS and worked with the port directly.
BIOS INT 14 is not good thing.
From the PIC side the transmitter is simple thing...
just write to TXREG.
For receiving it is good idea to implement timeout checking
and error return to calling routine on the both sides.
The software either does not catch the incoming char
or hangs up forever without timeout check.
It essential that PC's UART and PIC's SCI to operate
at same baud rate. (BRGH bit in TXSTA)
MAX232 is an appropitate IC.
Hope this helps...
More... (looser matching)
- Last day of these posts
- In 1997
, 1998 only
- New search...