Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Interfacing the AT90S2313 microcontroller 1

Status
Not open for further replies.

EUGENE2020

Electrical
Jun 8, 2004
5
i want to us a AT90S2313 to drive 8 relays on /off , will use pc's serial port to send data to atmel need a schematic an code for atmel . max232 will be between atmel and pc.thanks
 
Replies continue below

Recommended for you

All this to drive 8 relays? Is the LPT port available on your PC instead? That would give you 8 lines to interface directly with your relays. No microcontroller, no protocol to build, just a latch/buffer and your relays.
 
could use printer port ,but want to use serial port 4-wires need to go 25' to 50'(pc to atmel board).want to drive relays to controll 110v relay for light show.
 
For that distance the RS232 may make more sense. Take a look a the demo board information for that chip at the Atmel site. They ususlly give the schematics of the demo board. There you will find how to connect the Atmel, and very probably the MAX232 on the same schematic. Check if some software development tools come with the Atmel demo board.

 
1 data + GND may be enough from the parallel port.
N short pulses increment a counter to position N
A long pulse toggles the N-th relay and resets the counter.

A dual singleshot, some gates, a counter and a decoder
-- that is all it would take.



<nbucska@pcperipherals DOT com> subj: eng-tips
 
will build program that sends data to serial port that will turn on/off relays i use visual basic for programs need help w/software developement for atmel chips
 
By the way, does it have to be the Atmel chip? You don't need a high frequency processor to turn relays on and off. Take a look at the Zilog Z8Encore! family. It may be a better value if you're on a tight budget. It can run at clocks in the kilohertz range, up to 20MHz. You can get a whole development system, including a development board, the documentation (including the schematics for the demo board and the RS232 interface), development software with a "C" compiler and even a pod to program and debug your software. All this for about $50. I used this chip in a couple of designs and it works fine. Then there's a Z8Encore! forum, where people post libraries and routines. Take a look at it at the Zilog site.
On your PC side, if you use Visual Basic, I think you need a special version of it to control a serial port, do you?
Felix

 
I have a buddy who will give me the chips,was going to try them out. found a site that has info on the way i will try to do this thanks fer da help
 
there are a lot of serial interface cards already available,
places like controlanything.com have them and they are fairly inexpensive.
 
wheres the fun in buying a controller card when one can spend hours building somthing he can burn up in two sec.i find it more fun to build what i need ,i learn more when i do this.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor