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

how to input on serial

Hi Folks

Long time since I used keil! am using uvision v3 and wondering how to input on serial port ?
(ie to generate a receive interrupt and receive chars on SBUF)

thanks :)

Parents
  • Hi Andy thanks for bearing with me! :)

    The UART window I have does not allow input, only shows output, the page you gave a link for says a UART window allows "interaction". does that mean it *should* allow input?

    Other than that, I tried entering SIN = 0xA9 into the command line (and setting RI bit) with no luck, SBUF remains empty when the ISR is called

    Where is it that I debug scripts?

    sorry for being totally dumb! all the guides etc on the internet assume that users already know something so basic...

    On a positive note I have had luck entering Hex code char by char in the serial channel control window, however this does not help with reading in a line of text (also with text[index] = SBUF; text[index] remains empty, but probably my code maybe?)

    Thanks again

Reply
  • Hi Andy thanks for bearing with me! :)

    The UART window I have does not allow input, only shows output, the page you gave a link for says a UART window allows "interaction". does that mean it *should* allow input?

    Other than that, I tried entering SIN = 0xA9 into the command line (and setting RI bit) with no luck, SBUF remains empty when the ISR is called

    Where is it that I debug scripts?

    sorry for being totally dumb! all the guides etc on the internet assume that users already know something so basic...

    On a positive note I have had luck entering Hex code char by char in the serial channel control window, however this does not help with reading in a line of text (also with text[index] = SBUF; text[index] remains empty, but probably my code maybe?)

    Thanks again

Children
  • Yes, the serial window should allow input - as it says on that manual page, "like a terminal"

    "all the guides etc on the internet assume that users already know something so basic."

    Have you got the "Getting Started" Guide?

    As I said, it's no longer online (shame!) - but, as you have an old version, it should be included in your installation on your hard drive.
    IIRC, it was called GS51.pdf

    It contained a few basic, worked example projects that walked you through the whole process - including debugging.

  • hmm will see if I can find what Im doing wrong with the serial window.

    will look the guide up, thanks for being so helpfull! :)