PIC16F877A to PC serial port using RS232.
Sun Mar 02 2008, 07:34 pm
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
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?
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
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
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
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?
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, 03:05 pm
any tutorial to teach how to write a program to interface with serial port max232?
Tue Mar 04 2008, 09:24 pm
have you written something?
what is the clock frequency? and what is the baud rate you want?
what is the clock frequency? and what is the baud rate you want?
Tue Mar 04 2008, 09:35 pm
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.
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
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...
Powered by e107 Forum System