Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

RS232 Control LED without MCU

Status
Not open for further replies.

Help

Advanced Member level 2
Joined
Feb 15, 2005
Messages
617
Helped
7
Reputation
14
Reaction score
3
Trophy points
1,298
Activity points
7,065
led txd on rs232

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.

Thank you.
 

picaxe toronto

This may do things rather difficult ..

You see, information is usually coded in numbers and not in the presence or absence of a signal ..
And to “decode” a serially sent byte one needs some “intelligence” which is easily provided by even reduced-pin microcontroller ..
For simple tasks like you just mentioned in your post I would go for a simple 8-pin microcontroller, programmable in simple basic and with built-in serial interface and clock, so, in fact, only this 8-pin “gizmo” + one, or two BJTs (MOSFETS) will be your hardware ..
What I have in mind is the PICAXE-08, but the same can be done, as you know, with any other MCU ..

Regards,
IanP
 

    Help

    Points: 2
    Helpful Answer Positive Rating
rs232 control led

I would say yes, you can toggle the DTR, CTS lines and hook an LED and buzzer to each. Might need a small driver transistor though.
 

    Help

    Points: 2
    Helpful Answer Positive Rating
Hi IanP,

Thank for your advice. I'm not familiar with the PIC. I'm using 8052 MCU. there is no tiny MCU for 8052 with 8-pin.
I just need to 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.

Thank You.

Hi blueroomelectronics,

If i just have the TXD and RXD? Is it any possibility to do it? 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.
 

The 8051 is really weak on the 8 pin side of things ..

The king of the hill of 8 pin Micro's is the PIC 16F508, but, based on similar chip, there is the PICAXE – family, with the PICAXE-08 being its 8-pin member ..
The PICAXE-family is only based on PICs, but the programming language is BASIC, so if you know just a little bit of BASIC you can easily switch to PICAXE ..
On top of that, PICAXE is programmable directly through serial port (3-wire) ..

Here is an example of PICAXE-based receiver that sets/resets pins after receiving simple commands through 3-wire (Tx, Rx and GND) serial port:

That’s really very tempting option ..

Otherwise, should this be done on 8051, there is the 89C2051, or LPC764 .., but all of them require special programmer, or an adaptor that reduces 40-pin standard 8051 to 20-pin 2051 ..

Regards,
IanP
Code:
                                                                  180R
       .---.                                                    .------.      .---------------.
      /    |                  .------.     .----.          .----|      |---.  |               |
GND  |   O |--5------.   .----|   ===|  1  | O  |----------'    `------'   `--| Digital Out   |
     | O   |         |   |    | .----|     |   ||               .------.      |               |
     |   O |     .---|---|----| | ===|  2  | O ||----------.----|      |------| Digital In    |
     | O   |     |   |   |    | `----|     |   ||          |    `------'      |               |
TX   |   O |--3--'   `---|----|   ===|  3  | O  |---.     _|_      22K     .--| 0v            |
     | O   |             |    `------'     `----'   |    |   |             |  |               |
RX   |   O |--2----------'                          |    |   | 10K         |  `---------------'
     | O   |                                        |    |   |             |        PICAXE
     |   O |                                        |    `-.-'             |
      \    | 9-Way Female                           |      |               |
       `---' Socket (DCE)                         --^------^---------------^-- 0v
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top