TCA4307 program example
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- mperdue
- Posts: 6
- Joined: Wed Feb 20, 2019 8:04 pm
TCA4307 program example
Is there an example of programming the Arduino for the TCA4307 anywhere? I'm mostly interested in the use of the enable and ready signals as the communications are straightforward once you get connected.
- mikeysklar
- Posts: 14194
- Joined: Mon Aug 01, 2016 8:10 pm
Re: TCA4307 program example
I wasn't able to locate any example code for using the EN and RDY pins, but the usage for those also seems straight forward enough to experiment with.
https://learn.adafruit.com/adafruit-tca ... -3099742-4Other Pins
EN - This is the Enable input pin. Allows you to disconnect the in and out sides when pulled low
RDY - This is the Ready output pin. It will let you know if the peripheral is buffer-connected to the controller (and is safe to attempt communication).
- mperdue
- Posts: 6
- Joined: Wed Feb 20, 2019 8:04 pm
Re: TCA4307 program example
Yeah, you’d think it would be pretty easy but I seem to get RDY high whenever EN is high. It doesn’t seem to care if a peripheral is connected or not. I was hoping to use RDY as a signal that a peripheral is connected but I guess I’ll have to try a different solution.
- adafruit2
- Posts: 22200
- Joined: Fri Mar 11, 2005 7:36 pm
Re: TCA4307 program example
RDY just means that the bus isnt in contention - its not smart enough to know about connected devices
- mperdue
- Posts: 6
- Joined: Wed Feb 20, 2019 8:04 pm
Re: TCA4307 program example
OK, that makes sense. I'll just set up the cable with a pin that will add a device-connected signal. All is good. Thanks for the replies.
Please be positive and constructive with your questions and comments.