Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PWM signal from PC using RS232

Status
Not open for further replies.

chinchin

Electrical
Oct 15, 2002
3
0
0
US
Is there a simple interface circuit that generates a PWM (0 to 100%) signal controlled by a personal computer thru. RS232?
 
Replies continue below

Recommended for you

you may use the RTS (ready to send ) signal with software
only to generate relative slow PWM

Somewhat faster if use timer/interrupt driven programming.

I can't go into details without spec's.
<nbucska@pcperipherals.com>
 
Easy, just send a 0x00 to 0xFF out the serial port. It will give you some were from +/- 5V to +/- 15V, most likely +/- 9V. It will be slighly off becuase of the start bit - set it up for no parity and only one stop, but it will be a good approximation. The RTS idea is also pretty good, but liekly to be too slow to drive anything but the simplest loads.

It also would not be a big deal to simply design a little RS-232 powered dongel with a little &quot;pic&quot; controller that could generate the signal. You may have to have some eletronics anyway depending on what you are trying to drive. Are you trying to drive a FET?

Steve Owens
Finish Line Product Development Services
 
Simplest would be to use the PC's loudspeaker output
and internal timer. Send E-mail address for sample program <nbucska@pcperipherals.com>
 
Status
Not open for further replies.
Back
Top