We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hey,
I have a problem with my UART. It runs as long as the RS232-Cable to the PC is connected, but once I unplug it(i.e. the TxD and RxD Pins are open), the UART stops sending data. Is this a correct behaviour or am I doing something wrong?
Errr... without a cable connected, how do you know that it's not transmitting?!
lol, I've got a scope attached;)
RS-232 is not hot-pluggable. If you do this, there is an (albeit remote) chance of damaging your hardware, or other kinds of misbehavior.
once I unplug it(i.e. the TxD and RxD Pins are open), the UART stops sending data. Is this a correct behaviour or am I doing something wrong?
make a small program as sketched below
initilaize UART TI = 1; while (1) { if (TI) ( TI = 0; SBUF = 0x55; }
If that does not pulse your Txd you have a REAL MYSTERY.
My guess is that something in your full code stop transmitting for some reason when nothing is received.
Erik