here's some asm serial code from another source:
http://www.instructables.c
Main Topics
Browse All TopicsHey,
I have a PIC16F877A which has an 8 bit ADC output. I want to connect it using the Max232 interface to a PC's serial port (COM1) using RS232. I am looking for the asm code on the PIC side as well as the VB or C code (or hyperterminal with steps) on the PC side.
I have spent over 3 sleepless days trying various codes on both sides (asm/c and VB) but am yet to find 'the perfect one'.
Tyvm.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
here's some asm serial code from another source:
http://www.instructables.c
Business Accounts
Answer for Membership
by: Erick37Posted on 2007-07-10 at 18:35:49ID: 19459272
.Net 2.0 has a new SerialPort class which allows you to connect your hardware via the rs232 port of the PC.
.htm#com_p ort_termin al
/en-us/lib rary/ syste m.io.ports .serialpor t(vs.80).a spx
ownloads/d etails.asp x? FamilyID =075318ca- e4f1-4846- 912c-b4ed3 7a1578b&di splaylang= en
tellent/id cplg? IdcSe rvice=SS_G ET_PAGE&no deId=1824& appnote=en 012073
Example code:
http://www.lvr.com/serport
MS documentation:
http://msdn2.microsoft.com
If you are still using thye 1.1 framework, you may give this a shot:
http://www.microsoft.com/d
As far as the PIC code goes, you can find application notes with sample code at the Microchip website.
See AN774
http://www.microchip.com/s
I have done this in the past using the PIC16cXX processors and VB6 -- it was not easy then and I doubt it will be any easier now. Be prepared for a lot of debugging. I used Hyperterminal for testing both hardware and software before hooking both together. That eliminated some of the problems. It's a plus if you can set up 2 computers via a null modem cable to test your VB code on one machine and hyperterminal on another.