This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

A51 :How to Clear UART with Assembler

Hi everyone,
i write an assembler-program with Keil µ-Vision with the device C515C-L which has an 8051 architecture.
Now I try to clear the UART window in the simulator with some assembler code.
Does anyone know if this is possible?
I found out that it is possible to do this in C by sending <ESC>[J
But how I can I send this using assembler?
Can I anyone help me?

The C-Example is here:
http://www.keil.com/support/man/docs/uv4/uv4_db_dbg_serialwin.htm

Parents
  • Just note that you can't really confuse the UART. But you can "confuse" the state machine on the receiving end, that switches mode when it sees the ESC (which is why the character Escape is named as it is) and then waits for the sequence of characters that forms the control code.

    It seems that this state machine fails the "restart" situation, where there is a new ESC character received while it already thinks that it is processing an escape sequence. It is, alas, quite common that state machines forgets to resynchronize if there is a new start condition.

Reply
  • Just note that you can't really confuse the UART. But you can "confuse" the state machine on the receiving end, that switches mode when it sees the ESC (which is why the character Escape is named as it is) and then waits for the sequence of characters that forms the control code.

    It seems that this state machine fails the "restart" situation, where there is a new ESC character received while it already thinks that it is processing an escape sequence. It is, alas, quite common that state machines forgets to resynchronize if there is a new start condition.

Children
No data