Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/22/05 22:35
Read: times


 
#105793 - _getkey() does not wait the user to ..
hello,
i am writing some code using i2c in keil c51 and emulating it using mon51.
here is the problem;
keil says that;"The _getkey function waits for a character to be received from the serial port."
but when i start the program which contains M=_getkey(); it does not wait for the user to input a key, and executes next instruction and prints a char to serial window of keil like | which is 0x11 (device control).
do you think this problem will also appear if i use hyperterminal, i mean is it specific to keil serial window?
does anyone know how _getkey actually works?
how can i solve this problem.
thanks,
ruksen

List of 10 messages in thread
TopicAuthorDate
_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      

Back to Subject List