Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

control via serial port

Status
Not open for further replies.

amenoera

New Member
i want to control 32 device via serial port any one have serial to parallel

converter circuit or somthing similer to control devices ?

and i will be thanks for help[/b]
 
amenoera said:
i want to control 32 device via serial port any one have serial to parallel

converter circuit or somthing similer to control devices ?

and i will be thanks for help[/b]

The easiest way is to use a PIC (or other micro-controller), this gives you a cheap, easy, and versatile system.
 
Maybe you don't exactly need a serial to parallel converter.

some uC's like the at89c2051 have a TXD and RXD or similar serial transmit and receive ports.

Just set the clock to match the speed of the serial port transmission. and don't forget about the start and stop bits.

When using a microcontroller, you need to remember that another program is executed each time the uC is turned on or reset, and the speed of it is determined by the clock attached to it.

So first, you need to write a program that manages serial port data and then send it to the microcontroller. then write another program that manages the serial port data, but this time, on the computer.

hook everything up, and you will be ok.
 
Re: thanks mstechca

at89c2051 is a microcontroller.

Go to atmel.com and search for at89c2051, and you will find a manual on how to use it.
 
hi

man i did it befor with microcontroller 89c2051 but it faild

if you have any idea to how i do with any method . i dont care if i used pic

or microcontroller but just i want to implement it . that's all .

if you can help me plz tell me how i do it .
 
As Nigel mentioned, this project could be done with a PIC or any microcontroller... Do you have microcontroller experience?

Here is a sample scheme using Micrel 5841A drivers... If you can construct some sort of Serial Command Language then the microcontroller can interpret the commands and clock 32-bits of output data to four 5841A relay drivers before issuing the Strobe to latch the relay output data...

Sorry, I have not written the PIC code for this system yet...

Good luck with your project... I hope I may have provided you with some useful ideas...

Regards, Mike
 

Attachments

  • serial_relay_controller.jpg
    serial_relay_controller.jpg
    90.5 KB · Views: 1,908
thanks green

dear green.

i tryed this method. but i want you to lock carfully you cant exapnd the

output for more than 8 output . i cant explain it to you but i did it and

got 8 outputs only .

thanks man.
 
get a PIC 16F877A. it has 40 pins, and thus tons of I/O. write a simple program to receive a series of serial bytes, and output them to the ports... very easy!
 
hey evandude

evandude .

i know your idea is right but i cant make it here becuse this chip is not

easy to find in my city so can you help me to make it with 8250(uart)

there is pins iam not understanding how to use it . that's all .

thanks
 
Re: hey evandude

amenoera said:
evandude .

i know your idea is right but i cant make it here becuse this chip is not

easy to find in my city so can you help me to make it with 8250(uart)

As you don't have your location filled in, we can't really advise you on that? - but the 16F877 is freely available almost anywhere!, even as a free sample. You could use a UART, but it makes your hardware a LOT more complicated - by using a 16F877 the software you write keeps the hardware as simple as possible, and makes your project far more versatile.
 
uart

look Nigel the uart is one chip and dont need any code .

and its pins is very easy but there is pins i dont know how and

where to connect them . and i read it have a buffer so how can i

read use this buffer ? thats all.

note: u wrote in ur tutorial no.7 how to get the equivalent binary value

i send by serial port and repesent it on leds . but you didnt explain what

pins i should use (circuit). can you explain this point plz. thanks
 
Re: uart

amenoera said:
look Nigel the uart is one chip and dont need any code .

The UART is one chip, but can't be used just like that - it needs other support chips to function, and depending on the type of UART used, you may need a micro to set it up as well!. You also have the problem that it only has 8 output pins, you wanted considerably more than that.

and its pins is very easy but there is pins i dont know how and

where to connect them . and i read it have a buffer so how can i

read use this buffer ? thats all.

It depends entirely on the type of UART you try and use, the datasheet should explain it all.

note: u wrote in ur tutorial no.7 how to get the equivalent binary value

i send by serial port and repesent it on leds . but you didnt explain what

pins i should use (circuit). can you explain this point plz. thanks

If I recall correctly, it uses PortB on a 16F628, but is easily modified to use other ports on a 16F877.
 
hii

i want to make it using 8250 uart if any one can help plz tell me .

for info about 8250 go to :

**broken link removed**
 
Re: hii

amenoera said:
i want to make it using 8250 uart if any one can help plz tell me .

for info about 8250 go to :

**broken link removed**

There are reference designs all over the net for this kind of thing. Ron H pointed you to one, did you look at it?

What (be very specific) are you still having trouble with?
 
hi

yes i looked optikon but i want any equivalent for (74LV8153)

because i cant find it in any electrinic shop .

note : 74LV8153 supports an internal clock, auto-baud function .
 
Re: hi

amenoera said:
yes i looked optikon but i want any equivalent for (74LV8153)

because i cant find it in any electrinic shop .

note : 74LV8153 supports an internal clock, auto-baud function .

You'll be lucky to find such things in any old electronics shop. It's not lik elooking for resistors. I would like to suggest that you broaden your scope to include ordering parts from far away lands.. you didnt fill in your location but TI sells all over the world. See how far you get:

https://focus.ti.com/docs/prod/folders/print/sn74lv8153.html

Otherwise, you'll have to design something equivalent.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top