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 :)
This has nothing specifically to do with Keil!
The operation of the UART (receiving serial data, generating interrupts, SBUF) is defined by the hardware - it is not influenced by what language or brand of tools you use!
All the basics like this are described in the so-called "bible" for the 8051 - links here: www.8052.com/.../120112
8051/2 Tutorials here: http://www.8052.com/tutorial
Books: http://www.keil.com/books/8051books.asp
"am using uvision v3"
In that case, you should still have the old "Getting Started" guide (sadly, no longer available) - you should study that an work through the example projects to get to know the tools.
There's a whole load of examples included in your Keil installation, and also available here: http://www.keil.com/download/list/c51.htm
Hi
didnt make myself clear maybe (or maybe I didnt understand your reply correctly),
If I write a UART output function, the actual data outputed is shown in a window in uvision GUI (UART1 window pane).
I need a window to initiate the reverse operation
that is, somewhere for me to manually type data that will be seen by the simulating environment (uvision) as having been received on the serial port.
maybe I'm thinking about this the wrong way??
www.keil.com/.../uv4_sm_uartcommunication.htm
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
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! :)