Discussion in "8051 Discussion Forum" started by    Help    Dec 15, 2007.
Sat Dec 15 2007, 01:12 pm
#1
Hi,

Is it possible without MCU directly using RS232 to control some output device?

At this moment i just only need to control one LED and one Buzzer.
I just need to control 2 output signal. So, hope can design a very simple and no costly design and i just only have serial port TXD and RXD pin only.
I had seen other people did before, they had using MAX232 as a driver to control 2 output but i'm not sure whether their thing is work fine not.

Thank you.
Sat Dec 15 2007, 01:52 pm
#2
well Help...

Is it possible without MCU directly using RS232 to control some output device?


by that i understand u mean directly from pc serial port.... if yes then read on ...

leds and buzzers are simple on off devices... and need no protocols..
by using TXD and RXD as GPIOs u can do the switching....
check the voltage level at ur pc port.. i beleive.. it is enough to drive a led.. for buzzer if u want to make the sound a little more audible u will need a current booster kinda thing...
altogether yes.. u can control these devices from serial port....
 Help like this.
Sun Dec 16 2007, 12:08 am
#3
how to control TXD and RXD as GPIOs?...
Because whatever data sent to serial port, follows a standard RS232 format...
usually with one start bit + 8 data bits + one stop bit(usually). imagine if you wanted to control an LED tied to TXD pin, then u need to send 0xFF to serial port continuously. and using human perception rate, we can even comprise on data rate (and data value also)

But if you want to control one more buzzer independent of LED then i think you require controller to do this job. I may be wrong also.. please clear the matter....
 Help like this.
Sun Dec 16 2007, 12:20 am
#4
why don't you make use of parallel port? its better than using UART as GPIO
 Help like this.
Sun Dec 16 2007, 01:43 am
#5
since u need to control just 2 outputs so u have an option of using DTR and RTS signals.
except TX,DTR,RTS all the other signals are read only for ur pc.u can make a simple application that toggles DTR,RTS on/off
 ajay_bhargavHelp like this.
Sun Dec 16 2007, 05:21 pm
#6
A very intelligent answer abbas
 Help like this.

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

ArnoldDiant
Fri Apr 26 2024, 03:53 am
RodneyKnorb
Thu Apr 25 2024, 07:08 pm
Williamjef
Thu Apr 25 2024, 02:08 pm
SamuelSmise
Thu Apr 25 2024, 09:56 am
DustinErele
Thu Apr 25 2024, 08:44 am
ztaletpzca
Wed Apr 24 2024, 11:19 pm
IrardlPex
Wed Apr 24 2024, 08:42 pm
Charlestehed
Wed Apr 24 2024, 05:20 pm