| Electronics Forum |
Help
Search
Members
Calendar
|
| Welcome Guest ( Log In | Register ) | Resend Validation Email |
![]() ![]() ![]() |
| kasuncharya |
Posted: January 26, 2012 03:03 pm
|
|
Newbie ![]() Group: Members+ Posts: 1 Member No.: 36,428 Joined: January 25, 2012 |
For my project I want around 50 I/O pins, how can I expand I/O pins.
As I know it can be done I2C or 74573 latch IC. If somebody have experience of this matter please publish diagrams and codes (I use MikroC). I want to drive 7 stepper motors, dual line LCD module and one port for Inputs. |
| Sch3mat1c |
Posted: January 26, 2012 04:58 pm
|
![]() Forum Addict ++ Group: Moderators Posts: 18,138 Member No.: 73 Joined: July 24, 2002 |
At what bitrate??
Back in the day, 8255s were used. These have a parallel bus, typical of microprocessors but not microcontrollers. There should be tons of serial (I2C, SPI, etc.) devices on the market that'll do what you're looking for. Run a search at your favorite distributor and see what's available. As for diagrams and codes, you'll find all the data you need in the datasheet. Tim -------------------- Answering questions is a tricky subject to practice. Not due to the difficulty of formulating or locating answers, but due to the human inability of asking the right questions; a skill that, were one to possess, would put them in the "answering" category.
|
| millwood |
Posted: January 26, 2012 05:37 pm
|
||
|
Forum Addict ++ ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Trusted Members Posts: 1,823 Member No.: 25,377 Joined: July 26, 2009 |
you pretty much answered your own question. |
||
| Village Idiot |
Posted: January 27, 2012 02:20 am
|
![]() Forum Addict ++ ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Trusted Members Posts: 1,399 Member No.: 11,398 Joined: October 08, 2007 |
In the very simplest terms:
For inputs, use a parallel in serial out shift register. For outputs, use a serial in parallel out shift register. Cascade as many stages of each type as necessary. As for part numbers, there are hundreds to choose from, depending on requirements for speed, voltage/current rating, number of bits, etc. In one application, I used a single 32 bit serial in parallel out shift register to drive 32 high voltage (60V) outputs. |
| Gorgon |
Posted: January 27, 2012 01:39 pm
|
|
Forum Addict ++ ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Trusted Members Posts: 2,927 Member No.: 3,861 Joined: December 18, 2005 |
You should use the SPI module, to drive serial-to-parallel I/O. Parallel loaded shiftregisters for inputs and latched shiftregisters for outputs. If you do it right, you can read the inputs at the same time you set the outputs.
TOK -------------------- Light travels faster than sound. That's why some people appear bright until they speak!
|
![]() |
![]() ![]() ![]() |
:: support us ::