Hi! below is the code Im sending from module to another. The same code lives in both modules and well in theory this should work. Can anyone see why this wouldnt work. the code works with both modules connected to 1 pic but when I isolate the modules with their respective pics and run the program it doesnt work.
thanx in advance
mango4u
while(1)
{
if(SW==0)
{
delay_ms(250);
delay_ms(250);
configure_transmitter();
receiveLED=0;
data_array[0] = 0x31;
data_array[1] = 0x32;
data_array[2] = 0x33;
data_array[3] = counter;
DelayUs(); // delay 100uS
transmit_data();
delay_ms(10);
configure_receiver();
}
if(RX_DR == 1) //We have data!
{
DelayUs();
receive_data();
receiveLED=1;
}