| ??? 06/20/02 15:49 Read: times |
#24686 - UART printf and scanf |
Hi there all, thanx for all the help, I have another question.
I need to setup a protocol between two devices one being the uart of the 8051 the other being a device that accepts strings, similar to a modem (i.e must recognise "connect" string and "ok" string) I have set up the UART that works fine I can transmit from the Micro, I have also enabled the uart interupt so that the Micro will emediatly know when a device has connected or data has been sent(i.e. recieved at the SBUF) but when using the interupt vector the program always hangs/halts when I attempt to scanf within the interupt vector so I can not read in the values(character string) being sent. Can anyone suggest a solution around this or an alternative way of implementing this in order to achive the same effect (i.e. character sting based protocol between devices). kind Regards Michael |
| Topic | Author | Date |
| UART printf and scanf | 01/01/70 00:00 | |
| RE: UART printf and scanf | 01/01/70 00:00 | |
RE: UART printf and scanf | 01/01/70 00:00 |



