We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi everybody. I've a question. I must modify the standard getkey function: #include <reg51.h> char _getkey () { char c; while (!RI); c = SBUF; RI = 0; return (c); } to know if it receives something by RS232 in 30 sec. If in this time i don't receive anything i must return an error. My problem is how to know if 30 seconds are passed. Thanks everybody.
...or he won't listen.
Sounds like Graham has had some experience with chiefs as well as the 8051.