Discussion in "PIC Microcontroller Discussion" started by    needginer    Mar 2, 2008.
Sun Mar 02 2008, 07:34 pm
#1
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. im doing a data acquisition system. may i have an sample ASM code about this, plz...
Sun Mar 02 2008, 09:13 pm
#2
As you know about site rules.. no giving codes.. but we can correct your codes if you have made any mistake.. for that you have to write something yourself..
Our motive is to make you learn...

So for you.. download PIC16F87XA datasheet and read page starting from 116. I hope you will write something once you care done with controller side.. we will work on VB ok?
Sun Mar 02 2008, 09:45 pm
#3
thank, do have any example or sample of pic16f877a asm code? asm o c will be easy for beginner?
Mon Mar 03 2008, 01:12 pm
#4
Just take a look at the page i told you. It has got complete algorithm of how to configure PIC for UART. for beginner C is easy.. but do work on assembly also, coz its the basic.
Mon Mar 03 2008, 04:03 pm
#5
In my lecture is learning with C using pic16f84 but online tutorial mostly using assembly.
i had connected the pic with MAX232 and serial port.

PIC16F877A with the MAX232
pin26 RC7 -> pin10 TxD
pin25 RC6 -> pin9 RxD

MAX232 with the Serial Port
pin7 -> pin2
pin8 -> pin3

what is baud rate?
Tue Mar 04 2008, 12:52 pm
#6
default is 9600 kbps
Tue Mar 04 2008, 03:05 pm
#7
any tutorial to teach how to write a program to interface with serial port max232?
Tue Mar 04 2008, 09:24 pm
#8
have you written something?
what is the clock frequency? and what is the baud rate you want?
Tue Mar 04 2008, 09:35 pm
#9
one more thing.. please correct your connections:

PIC16F877A with the MAX232
pin26 RC7 -> pin9 TxD
pin25 RC6 -> pin10 RxD

MAX232 with the Serial Port
pin7 -> pin2
pin8 -> pin3

Baud rate is rate at which data is transferred measured in bits per second.
Tue Mar 04 2008, 09:56 pm
#10
since my friend is using 9600 for the baud rate, so i decide to use 9600 too... the connection was incorrect? i only wrote something about ADC program...

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

Richardedils
Wed Apr 24 2024, 04:07 am
ChrisLub
Tue Apr 23 2024, 05:21 pm
Davidbab
Tue Apr 23 2024, 10:41 am
Richardrit
Tue Apr 23 2024, 09:54 am
HenryLaf
Mon Apr 22 2024, 03:50 pm
bleradrar
Mon Apr 22 2024, 06:38 am
ppu-pro_ka
Sun Apr 21 2024, 07:39 pm
Infewow
Sun Apr 21 2024, 06:30 pm