Rooney_04
Member level 2

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);
};
}
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);
};
}