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.

Sending data from one PIC to other PIC

Status
Not open for further replies.

Rooney_04

Member level 2
Joined
Oct 2, 2010
Messages
42
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Activity points
1,577
hi
i did some programming for the transmitter PIC. From here, may i know how i could send data to other PIC. How could i send binary data from this coding?

thanks


#include <16F877a.h>
#include <stdio.h>
#include <stdlib.h>
#use delay(clock=20000000)
#fuses hs, noprotect, nowdt, nolvp
#use rs232(baud=9600,parity=N,xmit=PIN_C6,rcv=PIN_C7,stream=RS232,bits=8)


#byte portb=6
#byte portc=7
#byte portd=8

void main()
{
unsigned char k;
k = 0;
while (true){

if (!input(pin_B1));
putchar(k);
delay_ms(500);
};
}
 

Hi

How are the 2 pics connected, do you have a schematic of your connection? Is 2 way communication required?
 
Hi

How are the 2 pics connected, do you have a schematic of your connection? Is 2 way communication required?

its just 1 way comunication. i upload my schematic here
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top