Other Parts Discussed in Thread: PCF8574, PCA9554
Tool/software:
Hi ti team,
The GPIO expansion was successful, but I failed to operate this node using ADB, such as changing the output. For example, echo out > gpio504/direction still results in in.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi Switch,
What exactly am I looking at in the image provided, and what is the problem?
Is the TCA9554 not being detected by your i2c driver?
Regards,
Tyler
Hi Tyler,
According to the documentation, register 0x03 is configured as 0x00 and GPIO can be configured as output, but the actual i2cset -fy 0 0x20 0x03 0xff b can see that GPIO is still input, GPIO only becomes low, please help to analyze it.
Hi Liu and Switch,
Just to be clear, we are talking to the TCA9554 device and not the PCF8574 correct?
TCA9554 has configurable registers, PCF8574 does not.
According to the documentation, register 0x03 is configured as 0x00 and GPIO can be configured as output, but the actual i2cset -fy 0 0x20 0x03 0xff b can see that GPIO is still input, GPIO only becomes low, please help to analyze it.
Correct me if I am wrong, but the I2Cset command you just mentioned looks to be writing 0xFF data to the register to set it to output? This is incorrect. To configure the pins as OUTPUT's you would need to write 0x00 to the configuration register located at 0x03.
When I use command " echo 0 > gpio504/value", also can't change value from high to low, why?
Do we have any oscilloscope captures of the commands you are attempting to write to the IO expander?
Regards,
Tyler
Hi Liu,
We do not provide drivers or source code from TI side.
However, I found a github that might have some useful code. It looks to be the driver for PCA9554, but it should be essentially the same as the TCA9554.
Regards,
Tyler
Hi Liu,
Awesome! If you have any additional questions please feel free to reach out.
Regards,
Tyler