Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

extend input/output port in microcontroller

Status
Not open for further replies.

bhattaroshan

Member level 1
Joined
Sep 28, 2010
Messages
33
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,288
Activity points
1,531
Hello everybody,

I have used 74595 to extend output pin and 74165 to extend input pin of my micro-controller separately. In micro-controller we can use same pin as input or output. Is there any way, I can do to my extended pins same as in microcontroller
 

You could use an i2c or SPI port expander, with the additional benefit that some have an interrupt for a change in configured inputs:

I2C:

Microchip MCP23017
On Semi CAT9555WI
On Semi CAT9552WI
TI PCF8574
Maxim MAX7311

SPI:

Maxim MAX7301


...and probably many more - they are just the ones I know.
 

I have used 74595 to extend output pin and 74165 to extend input pin of my micro-controller separately. In micro-controller we can use same pin as input or output. Is there any way, I can do to my extended pins same as in microcontroller
I am not quite sure I understand the last part correctly. You are using shift registers to expand your I/Os. Are you using the hardware SPI with MISO and MOSI pins? If so, then those are the pins you can use for hardware SPI. MOSI for outputs and MISO for inputs (since the MCU is the master). You could place more shift registers in series to add more I/Os.
If you are bit banging SPI, that is produce data and clock by software as well as serial data reading, then you can use any MCU GPIO pin for this purpose. Still you can add more shift registers in series to get more I/Os.
 

I think bhattaroshan is asking if the extended inputs and outputs can be made to be bidirectional, like the pins on the microcontroller are. So, the additional i/o's could be programmed to be either input or output as required.

At least, that's how I read it.
 

Yes, i am asking for same thing as told by FoxyRick and not about SPI or expanding input/ouput pins. If you have any idea about it please do help me.

thanks in advance.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top