×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Interfacing the AT90S2313 microcontroller

Interfacing the AT90S2313 microcontroller

Interfacing the AT90S2313 microcontroller

(OP)
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

RE: Interfacing the AT90S2313 microcontroller

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.

RE: Interfacing the AT90S2313 microcontroller

(OP)
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.

RE: Interfacing the AT90S2313 microcontroller

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.

RE: Interfacing the AT90S2313 microcontroller

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

RE: Interfacing the AT90S2313 microcontroller

(OP)
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

RE: Interfacing the AT90S2313 microcontroller

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

RE: Interfacing the AT90S2313 microcontroller

(OP)
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

RE: Interfacing the AT90S2313 microcontroller

there are a lot of serial interface cards already available,
places like controlanything.com have them and they are fairly inexpensive.

RE: Interfacing the AT90S2313 microcontroller

(OP)
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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources