hi,
I got a code where one avr send message via usart and another avr receives and send back the same message after capitalization. So far capitalization works but I don't know how to include the space between the words. The received message is capitalized but there is no space between the words. Below is example code:
thanks
I got a code where one avr send message via usart and another avr receives and send back the same message after capitalization. So far capitalization works but I don't know how to include the space between the words. The received message is capitalized but there is no space between the words. Below is example code:
C:
while (1){
mychar = usartreceive();
if(mychar >= 'a' && mychar <= 'z'){
mychar += ('A' - 'a');
usartsend(mychar);
_delay_ms(50);
}
thanks