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.

using serial port with pic

Status
Not open for further replies.

bader

Member level 1
Joined
Jan 17, 2005
Messages
37
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
310
i want to connect pic to serial port on pc where can i find a good explaintion for that ?
 

xmli1976

Full Member level 1
Joined
Nov 3, 2004
Messages
95
Helped
3
Reputation
6
Reaction score
1
Trophy points
1,288
Activity points
829
pic have many ports and interfaces you can connect.
 

vvvvv

Member level 1
Joined
May 18, 2004
Messages
39
Helped
9
Reputation
18
Reaction score
0
Trophy points
1,286
Activity points
518
it's simple :
1. Connect MAX232 transceiver from pic to PC port (5V to 12V levels), see datasheet for connection :
https://www.maxim-ic.com/quick_view2.cfm/qv_pk/1798

2. Write soft for RS232 port on PIC , see this links :
https://www.winpicprog.co.uk/pic_tutorial7.htm
https://www.sprut.de/electronic/pic/grund/rs232.htm
https://www.piclist.com/techref/microchip/rs232.htm
Example of projects :
https://www.electronic-engineering.ch/microchip/projects/projects.html

and of course find appnotes from site www.microchip.com. Good Luck.
 

inglaof

Newbie level 5
Joined
Jan 6, 2006
Messages
8
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,283
Activity points
1,440
Hi bader....

Well, the first of all is that you undestand the protocol of a serial asynchronous comunication, then, know the electric levels of the signals and the circuits that converts TTL logic to RS232 logic (0(space) & 5V(mark) in TTL, and (+3v to +12V) for space or zero logic & (-3v to -12v) for mark or 1 logic).

The most common circuit that convert that levels is the MAX232, i belive that you can find it everywhere, and it ots very simple to use...

Anothe rthing that you must study it is about using the serial port on a PC. you can try with th hyper terminal, but also can try with visual basic for undesrstanding it, it has a control OCX named MSComm that does a lot of work for that. Also, ther is another option more reliable for education purposes, its MATLAB, you can manipulate the serial port in a Ultra easy way to understand it, and the help files explain you a lot of info that you would migth require...

Then, well, its time for the PIC, some pics have an UART hardaware which can help you to develop a better comm system, but, you can also implement the UART by software, if you already program PICS in assembler, once you understando all the info about the serial protocol, the program of the pic would be insignificant, you only have to take care about the time...

well, i'll going to seek a routine in assembler for it and post it if i found it... Good luck any way...:D


forgive me if i make some gramatical fault, i barely speak english, but i'm doing my best, my fellows...
--------------------------------------------------------------------
From Sinaloa, Mexico, to the World

The Man work's harder to avoid their fear's, more than to reach his dreams
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top