Usart...
Hi there,
I want to thank Mr. Nigel Goodwin for his tutorial.
Well I've started using the USART(or UART) and I've got something to ask.
If I send, using the SEROUT statement, a byte variable of value "64", and on the reciever side I use the SERIN statement to retreive it, and then display this variable on portc-already configured as output port- will I obtain the value 64 on portc?
what I've also done in the attachement is that I introduced a condition:
if the received byte is 64 then display a zero output on portC, otherwise display 170. However I'm always getting a 170 output, which means that the program doesn't recognize the 64 input.
I'll post the code I've written so far and if you could tell me what's wrong I'll greatly appreciate it.
thx in advance
regards.