Discussion in "PIC Microcontroller Discussion" started by    needginer    Mar 2, 2008.
Sun Mar 02 2008, 02:04 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, 03:43 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?
Sun Mar 02 2008, 04:15 PM
thank, do have any example or sample of pic16f877a asm code? asm o c will be easy for beginner?
Mon Mar 03 2008, 07:42 AM
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, 10:33 AM
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, 07:22 AM
default is 9600 kbps
Tue Mar 04 2008, 09:35 AM
any tutorial to teach how to write a program to interface with serial port max232?
Tue Mar 04 2008, 03:54 PM
have you written something?
what is the clock frequency? and what is the baud rate you want?
Tue Mar 04 2008, 04:05 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.
Tue Mar 04 2008, 04:26 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...

Get Social


Powered by e107 Forum System


Wed Nov 08 2017, 01:35 PM
Anirudh jain
I want to burn code in atmel 89s51 24pc 0329 but cannot get the connection with the burner. Can somebody provide me with the circuit diagram for connecting controller to burner. I'm using usb burner
Thu Nov 02 2017, 11:44 AM
write a program to exchange the content of b register with external RAM address 02CFH help me
Wed Nov 01 2017, 05:47 PM
i am using the DHT11 but i'm getting some errors in the simulate the programe in proteus 8 professional,: 1)cannot find model file 'DHTXX.MDF'.2)simulation failed due to netlist linker error(s).
Fri Sep 29 2017, 02:45 AM
i am doing the same project on verilog please contact me [email protected]
Wed Sep 20 2017, 12:36 AM
In a missing pulse detector using a 555 timer connected as a monostable vibrator with a PNP transistor,how does the positve input pulse turn on the PNP transistor?
Sun Sep 03 2017, 02:29 PM
How do I connect an <NOKIA 1100 LCD > to an atmega328P ?
Sun Aug 20 2017, 10:23 AM
i am intending to interface sd card with STM32F4 and want to write a file in sd card using SPI protocol but using HAL only. Can anyone help me PLEASE!!!!
Sun Aug 20 2017, 10:22 AM
Fri Aug 18 2017, 11:37 AM
hi @ angel patel i will attach a file i hope it will be helpfull for you
Mon Aug 14 2017, 09:57 PM
@ angel patel... just log in and post your problem



Mon Nov 20 2017, 07:40 PM
Sun Nov 19 2017, 07:34 PM
Wed Nov 15 2017, 10:46 AM
Sat Nov 11 2017, 03:43 AM
Fri Nov 10 2017, 06:53 AM
Wed Nov 08 2017, 05:27 PM
Tue Nov 07 2017, 09:08 AM
Sat Nov 04 2017, 10:46 PM


Guests: 54, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM

Members: 37918
Forum Activity
ExperimenterUK Avatar
Posted By ExperimenterUK
Mon Nov 20 2017, 10:18 PM
Here is a version of the tutorial that reads a key...
Ansh12 Avatar
Posted By Ansh12
Mon Nov 20 2017, 02:15 AM
As a starting point, can you tell us how much of t...
ExperimenterUK Avatar
Posted By ExperimenterUK
Sun Nov 19 2017, 08:35 PM
As a starting point, can you tell us how much of t...
Ansh12 Avatar
Posted By Ansh12
Fri Nov 17 2017, 04:07 AM
I am looking keypad interfacing program. I was rea...
JardCrocker Avatar
Posted By JardCrocker
Wed Nov 08 2017, 05:29 PM
Hi...i am a new user here. I was also facing the s...
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Nov 07 2017, 07:13 PM
> It employs a fairly advanced technique to detect...
vivitern Avatar
Posted By vivitern
Tue Nov 07 2017, 09:33 AM
I own a used Clavia ddrum4 SE drum module. It empl...
bvdb Avatar
Posted By bvdb
Wed Oct 18 2017, 01:50 AM
I purchased the RKitL51 8051 C compiler from Raiso...
ExperimenterUK Avatar
Posted By ExperimenterUK
Mon Oct 16 2017, 11:44 PM
That looks complicated.Is 8051_BLK a standard 80...
ExperimenterUK Avatar
Posted By ExperimenterUK
Sun Oct 15 2017, 07:29 PM
According to this, gmail should support POP3.https...