Hello
I need to address 3 x MCP23S17.
The 1st chip has hardware address : 000
The 2sd chip has hardware address : 001
The 3rd chip has hardware address : 111
I've tried to configure IOCON register in order to set HAEN bit accordingly.
Into my init function i think i have to enable the hardware address for the 3 chips.
In order to do that,
Should i configure IOCON register only one time by setting the device hardware address as 000 ?
Then*all of the 3 chips will receive the same IOCON configuration with HAEN set ?
OR
I should write 3 x IOCON configurations : one for each chip by specifying the device hardware address into the control byte of the chip i'm talking to ?
( datasheed page 8, fig 1-3 )
I did not find in the datasheed how to proceed in order to init multiple MCP23S17 with hardware address enabled.
Many thanks for your help,
I need to address 3 x MCP23S17.
The 1st chip has hardware address : 000
The 2sd chip has hardware address : 001
The 3rd chip has hardware address : 111
I've tried to configure IOCON register in order to set HAEN bit accordingly.
Into my init function i think i have to enable the hardware address for the 3 chips.
In order to do that,
Should i configure IOCON register only one time by setting the device hardware address as 000 ?
Then*all of the 3 chips will receive the same IOCON configuration with HAEN set ?
OR
I should write 3 x IOCON configurations : one for each chip by specifying the device hardware address into the control byte of the chip i'm talking to ?
( datasheed page 8, fig 1-3 )
I did not find in the datasheed how to proceed in order to init multiple MCP23S17 with hardware address enabled.
Many thanks for your help,
Last edited: