technical people,
when I tried to write a menu to 89C51, with header correct header file, 100% sure I correctly sent the baud rate for hyperterminal program in computer to communicate. I turn on serial interrupt buy setting EA=1 & ES=1; I clear RI or TI when I have interrupt in Interrupt service routine(serial() interrupt 4) at every time. However, when I tried to echo the word I typed in hyperteminal, It doesn't show. I compiled in keil c IDE and get hex code. and burn it into my 89C51 chip, it does not jump to the main program. It always stay in interrupt service routine. What's happening?Can you help?
Thanks, Steve
... to disable interrupts in the ISR.
Have you looked at the interrupt-driven serial IO example in the downloads section of this very website?