Due to high demand, expect some shipping delays at this time - orders may not ship for up to 2-3 business days.
0

TCA4307 program example
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

TCA4307 program example

by mperdue on Mon Jan 17, 2022 8:22 pm

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.

mperdue
 
Posts: 6
Joined: Wed Feb 20, 2019 8:04 pm

Re: TCA4307 program example

by mikeysklar on Wed Jan 19, 2022 5:10 pm

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.

Other 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).


https://learn.adafruit.com/adafruit-tca ... -3099742-4

mikeysklar
 
Posts: 7582
Joined: Mon Aug 01, 2016 8:10 pm

Re: TCA4307 program example

by mperdue on Wed Jan 19, 2022 5:52 pm

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.

mperdue
 
Posts: 6
Joined: Wed Feb 20, 2019 8:04 pm

Re: TCA4307 program example

by adafruit2 on Thu Jan 20, 2022 1:59 pm

RDY just means that the bus isnt in contention - its not smart enough to know about connected devices

adafruit2
Site Admin
 
Posts: 20870
Joined: Fri Mar 11, 2005 7:36 pm

Re: TCA4307 program example

by mperdue on Thu Jan 20, 2022 6:47 pm

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.

mperdue
 
Posts: 6
Joined: Wed Feb 20, 2019 8:04 pm

Please be positive and constructive with your questions and comments.