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.

programming for PIC 16F877a

Status
Not open for further replies.

Rooney_04

Member level 2
Joined
Oct 2, 2010
Messages
47
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Activity points
1,604
hi
I m using C compiler for programming the 16f877a. I would like send binary data through this PIC by using RS 232 communication which able to transmit data serially. I would to program like i have a push button connected to PIC. When a press the push button, the pic will send certain binary data(8bit).So i hope the members would give suggestion or idea or perhaps some example of programming regarding this topic. Actually i m kind of desperate for this solution...lol
 

Tahmid

Advanced Member level 5
Joined
Jun 17, 2008
Messages
4,758
Helped
1,792
Reputation
3,576
Reaction score
1,651
Trophy points
1,393
Location
Silicon Valley, California, USA (from Dhaka, Bangl
Activity points
30,543
Hi,
For this purpose you have to use USART/UART module incorporated in the controller. Check the relevant section in the datasheet. If you are using mikroC or mikroBASIC, in the help file, there is an example of using UART and in the examples, there are a few examples, as well as in the manual. What compiler are you using?
Hope this helps.
Tahmid.
 

Rooney_04

Member level 2
Joined
Oct 2, 2010
Messages
47
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Activity points
1,604
Me using CSS C compiler. So can u help?
furthemore i m planning using this command
"#use rs232 (baud=2400, xmit=PIN_C6, rcv=PIN_C7)"
 
Last edited:

pmar_kpj

Member level 3
Joined
Feb 5, 2006
Messages
57
Helped
11
Reputation
22
Reaction score
10
Trophy points
1,288
Location
Romania
Activity points
1,616
hi !

if you use CCS C compiler try to find this example : Ex_sisr.c .
this example shows how to use serial interrupt.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top