??? 12/24/05 01:28 Read: times Msg Score: +1 +1 Informative |
#105855 - here is the answer Responding to: ???'s previous message |
i found the answer at keil's site.
http://www.keil.com/support/docs/2069.htm In some cases, uVision interrogates the MON51 target using XON and XOFF characters. If you receive 0x11 or 0x13 characters, this may be the problem you are experiencing. To correct this problem, you must ignore XON and XOFF in your program. If you use the standard GETKEY routine, the following substitute function may be added to your project: #include <reg51.h> char _getkey () { char c; do { while (!RI); c = SBUF; RI = 0; } while (c == 0x11 || c == 0x13); // IGNORE XON and XOFF return (c); } it works now!! |
Topic | Author | Date |
_getkey() does not wait the user to .. | 01/01/70 00:00 | |
intser2.c ? | 01/01/70 00:00 | |
serial interrupt 2 | 01/01/70 00:00 | |
See for yourself | 01/01/70 00:00 | |
problem is different | 01/01/70 00:00 | |
is this the solution? | 01/01/70 00:00 | |
Getkey | 01/01/70 00:00 | |
Serial communication | 01/01/70 00:00 | |
i use both i2c and uart | 01/01/70 00:00 | |
here is the answer![]() | 01/01/70 00:00 |