as
Self address= 2
Remote address= 1 (address of the remote device i.e. address of transceiver connected on 3pi)
Channel as= 3 (selecting channel frequency over which device wants to communicate).
Now i have to do the same on the 3pi and program the atmega328p as follows:-
Self address= 1
Remote address= 2 (address of the remote device i.e. address of transceiver connected on Desktop)
Channel as= 3 (selecting channel frequency over which device wants to communicate).
Now i see that 3pi has a inbuilt function to set the baud rate
- Code: Select all
serial_set_baud_rate(115200);
My Question is is there any such functions to set up the above mentioned parameters?
- Code: Select all
serial_set_mode(SERIAL_CHECK);
serial_receive_ring(buffer, 100);
Moreover i want to know what these two functions signify can how can i change the modes.
I wrote a program in avr studio .The code is as follows
- Code: Select all
void TX (unsigned char data)
{
UDR=data;
while(!UCSRA&(1<<UDRE)));
}
int main(void)
{
serial_set_baud_rate(38400);
sei;
TX('1');
TX('2');
TX('3');
while(1)
{
}
return 0;
}

