There is one switch in Transmitter part ( Attiny2313 : PORTB.1) and one LED (Attiny2313
ORTB.0) in Reciever part. The LED must On and Off with pressing the switch but it not works. What is the problem?
The Codes in Transmitter part: (codevision)
(codewizard-->USART-->Transmitter)
...
int Data;
while(1)
{
Data=PINB.1;
printf( "%u",Data);
};
The Codes in Reciever part:
(codewizard-->USART-->Reciever)
....
int Data=0;
while(1)
{
scanf("%u",Data);
PORTB.0=Data;
};
(TX pin in Transmitter part is connected to RX pin in Reciever part)
Thanks
The Codes in Transmitter part: (codevision)
(codewizard-->USART-->Transmitter)
...
int Data;
while(1)
{
Data=PINB.1;
printf( "%u",Data);
};
The Codes in Reciever part:
(codewizard-->USART-->Reciever)
....
int Data=0;
while(1)
{
scanf("%u",Data);
PORTB.0=Data;
};
(TX pin in Transmitter part is connected to RX pin in Reciever part)
Thanks
Last edited: