Continue to Site

Welcome to EDAboard.com

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

How to interface RS232 with PIC16F877?

Status
Not open for further replies.

ryusgnal

Advanced Member level 4
Full Member level 1
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?
 

smainj.free

go to this site

**broken link removed**

you can get some real useful 5 vedios

that will help you
 

use rs232 for pic16f877

sai001 said:
go to this site

**broken link removed**

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?
 

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.


+++
 

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
 

smainj

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

    ryusgnal

    Points: 2
    Helpful Answer Positive Rating
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.
 

rs232 with pic16f877

How about the C program for RS232 with PIC18F4550?
 

interface rs232 to pic16f877

ryusgnal said:
sai001 said:
go to this site

**broken link removed**

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
 

@ryusgnal

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

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.
 

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
 

I think you should check Microchip website. It is a general question.
 

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.
 

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.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top