![]() | ![]() | ![]() |
| | |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
| | Thread Tools | Display Modes |
| | (permalink) |
| New Member | Hi, I am using 89S51 and RS 232 for serial communication. I drived relays using ULN2003 . I am using Embedded C Now i want switch multiple relays and how to connect these multiple relays using limited I/O pins. Kindly help me .. Thanks |
| | |
| | (permalink) |
| Experienced Member | Use a shift register with a built in latch. Something like the 74HC595 will work and you can cascade as many as you want.
__________________ --- The days of the digital watch are numbered. --- |
| | |
| | (permalink) | |
| Experienced Member | Quote:
The data should be clocked into the SR as quickly as possible so that the relays don't chatter. The time to clock in all the data should be less than say one tenth of the relay operate time - or faster.
__________________ Len | |
| | |
| | (permalink) |
| Experienced Member | The 74HC595 that kchriste mentioned is a latching shift register, it has a built in storage register that holds the contents of the shifted data until a third line is toggled then the output latch is updated. It requires one extra I/O line for operation but the latch updates all the lines at the same time. Perfect for driving relays such as this to avoid any possibility of triggering the relay accidentally. You could operate it as a standard shift register by tieing the update to the clock line if needed.
__________________ Curiosity killed the cat; That's why they have nine lives. |
| | |
| | (permalink) | |
| Experienced Member | Quote:
Another possibility would be to programme another PIC, such as a 16F84 or 16F628, etc. to receive data sent on one line and output it in parallel to drive the relays.
__________________ Len | |
| | |
| | (permalink) |
| Experienced Member | to reduce cost, and use a minimum number of I/o lines, using a 89S51 at 24 Mhz and a 74164 SR will work perfectly, the relays wont notice anything until the voltages are seteled down.. In your case send the data as fast as you can do it, the 74164 response will allways be much higher than the maximum output frequency of the uC at 24 Mhz. good luck |
| | |
| | (permalink) |
| Experienced Member | allegro makes a latching shift register (similar to the 74hc595) plus mosfet current sink combo chip... might help to cut down on the amount of IC's and/or soldering http://www.allegromicro.com/sf/6821/
__________________ If you don't have a planet, what good are gold bars? want to contact me directly? gmail gordonthree check out my project website: http://projects.dimension-x.net Favorite numbers: 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0 |
| | |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
| | ||||
| Thread | Thread Starter | Forum | Replies | Latest |
| help required urgent...microcontroller burning project +keypad interfacing | kalprajesh | Micro Controllers | 0 | 17th October 2006 05:30 AM |
| interfacing microcontroller with UART(8250) | jam_mafia | Micro Controllers | 23 | 26th February 2006 03:20 AM |
| interfacing low power microcontroller | banh | Micro Controllers | 2 | 27th July 2004 12:31 AM |
| Interfacing a microcontroller with a modem | matt_d82 | General Electronics Chat | 3 | 21st March 2004 02:43 AM |
| interfacing Atmel Microcontroller AT89C51 with LM75 | umar abdul sattar | Micro Controllers | 0 | 28th June 2003 05:26 AM |