Selecting an IC for reading the status of arduino digital pin

Hi,
If anyone knows an IC that gives 8 inputs and 3 outputs?
This IC is going to use for identifying digital pin status.

another arduino ?
MCP23008 ? (I2C)

you need to be more specific in terms of what you want to achieve. An arduino knows what's the status of its pins, so if you have 8 input you can read them from an arduino. Then you output what you want I assume your 3 output is for representing (23) the 8 possibilities?

Check out a 1 of 8 mux.

You want an encoder.

sn74ls148.pdf (1.15 MB)

J-M-L:
another arduino ?
MCP23008 ? (I2C)

you need to be more specific in terms of what you want to achieve. An arduino knows what's the status of its pins, so if you have 8 input you can read them from an arduino. Then you output what you want I assume your 3 output is for representing (23) the 8 possibilities?

Thankyou this is the I/O expander that I wanted