Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

How to interface RS232 with PIC16F877?

Status
Not open for further replies.

ryusgnal

Advanced Member level 4
Joined
Oct 4, 2005
Messages
102
Helped
3
Reputation
6
Reaction score
1
Trophy points
1,298
Location
Malaysia
Activity points
1,992
smainj serial

How to send and receive data from RS232 to PIC16F877? Is there any suggestion for the circuit and sourcecode?
 

andre_teprom

Super Moderator
Staff member
Joined
Nov 7, 2006
Messages
9,198
Helped
1,142
Reputation
2,303
Reaction score
1,119
Trophy points
1,403
Location
Brazil
Activity points
53,530
smainj pcb

ryusgnal,

I have something writen at Borland C++Builder 5.03.
If you want, I may post it here, or send to you.


+++
 

ryusgnal

Advanced Member level 4
Joined
Oct 4, 2005
Messages
102
Helped
3
Reputation
6
Reaction score
1
Trophy points
1,298
Location
Malaysia
Activity points
1,992
smainj.free.fr

andre_teprom said:
ryusgnal,

I have something writen at Borland C++Builder 5.03.
If you want, I may post it here, or send to you.


+++
Can you post it here. may be it will help me or other people.

Thanks so much!! :D
 

andre_teprom

Super Moderator
Staff member
Joined
Nov 7, 2006
Messages
9,198
Helped
1,142
Reputation
2,303
Reaction score
1,119
Trophy points
1,403
Location
Brazil
Activity points
53,530
smainj

ok...attached, but, some comments in portuguese language :D
 

    ryusgnal

    points: 2
    Helpful Answer Positive Rating

bk3e

Newbie level 6
Joined
Jul 31, 2006
Messages
14
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,365
download interfacing rs232 to pic16f877

You can use Visual Basic 6.0 to make GIU interface which is very simple. Firmware can be done by using USART module in PIC16F877. Good luck.
 

seinchan

Newbie level 1
Joined
May 15, 2007
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,284
rs232 with pic16f877

How about the C program for RS232 with PIC18F4550?
 

davemaster

Advanced Member level 4
Joined
Jan 23, 2007
Messages
112
Helped
11
Reputation
20
Reaction score
8
Trophy points
1,298
Location
Peru, South America
Activity points
1,865
interface rs232 to pic16f877

ryusgnal said:
sai001 said:
go to this site

http://smainj.free.fr/tutorial/

you can get some real useful 5 vedios

that will help you
What kind of software is used in the tutorial? where i can find it?
Hi,
you can use the UART rx/tx of pic16f877.
check the pic16f877 datasheet, where you find out the pins of UART...

The best and easy software is the c language for PIC microcontroller, CCS C PIC, or HITECH.
For PC, the visual basic is the best and easy way to comunicate with PIC16F877.

GOOD luckl
 

vsmGuy

Advanced Member level 2
Joined
Jun 26, 2006
Messages
503
Helped
44
Reputation
88
Reaction score
15
Trophy points
1,298
Location
VddVss
Activity points
3,888
@ryusgnal

vISUAL c++ is for PC... you need one compiler for a uC.
 

ryusgnal

Advanced Member level 4
Joined
Oct 4, 2005
Messages
102
Helped
3
Reputation
6
Reaction score
1
Trophy points
1,298
Location
Malaysia
Activity points
1,992
vsmGuy said:
@ryusgnal

vISUAL c++ is for PC... you need one compiler for a uC.
I mean instead of using VB for interface. I prefer to use visual c++ because I'm not very good in VB and nobody can guide me in VB.
 

abdullahrafe

Newbie level 2
Joined
Sep 15, 2007
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,292
you should know about 9 pin and 25 pin RS 232 data traveler serial port data sheet
so download it and try to program in VB.net
 

mImoto

Full Member level 4
Joined
Feb 21, 2002
Messages
211
Helped
4
Reputation
8
Reaction score
1
Trophy points
1,298
Activity points
1,746
I think you should check Microchip website. It is a general question.
 

rinthesun

Junior Member level 2
Joined
Sep 23, 2006
Messages
22
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Tallahassee, FL
Activity points
1,437
Use a solderless breadboard or a pcb from Olimex.com. You will need a 16F877A , St232A and a power source. For the power source you could add your own with a 7805 regulator and a wart. Check Futurlec.com or mouser.com for parts and datasheet downloads. Connect the st232A output/inputs to the RX and TX pins on the 16F877A. Download the ST232A datasheet from mouser or www.stm.com

Next goto Oshonsoft.com and download the Pic-Simulator which includes a basic compiler. It also has a PC com port interface to talk to the 16F877A. You could also use any number of terminal emulators available on the internet. Use Google.

If you're willing to spend some money buy a PicKit2 from Microchip ($40.) and the Pic-Simulator (29 euro). If you want to make life very simple also use the bootloader on the Oshonsoft site. See projects.
 

tom_hanks

Full Member level 5
Joined
Aug 28, 2003
Messages
243
Helped
14
Reputation
28
Reaction score
1
Trophy points
1,298
Activity points
1,585
use the inbuilt function

#use RS232(BAUD=9600, XMIT=PIN_C6, RCV=PIN_C7)
output_c (0x40); //RC6/TX RS232 =1
SET_TRIS_c(0x98);

easy & fast
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top