The PL2303HX is used to convert USB serial bridge controller.
I would like to connect an LED to TXD pin so that it lights when it is logic 1 and off when it is logic 0.
I would like to consider 5mm white LED (3.3v,20mA).
Can I directly connect the LED anode to TXD with a resistor and cathode to GND.
Does it affect the baud rate?
Is it safe to draw 20mA from TXD pin?
Is there a better way to light the LED using Vcc(5v)
as power source and TXD
as on and off like-
EDIT
I tried above circuit, but getting error.
I want the LED to turn off when logic 0 and turn on when logic 1. LED is powered by 5v separately. It should work fast like it should workswitch at the rate of 9600 baud rate.