Hello,
I wonder if someone can help me in creating a python code to control several TCA9535 I/O Expander. I am writing a code to automate testing of several identical RF devices connected to the I/O Expander ICs.
There are two I/O Expanders being used and each expander controls two identical RF devices i.e. 4 RF devices in total. Each RF device is 5-bits controlled (Parallel, TTL) which means there are 32 different bit states to be tested.
The I/O Expanders are controlled by a USB-SPI/I2C controller e.g. Analog Devices USB to I2C and SPI Interface Board, USB-SDP-CABLEZ.
So the code would have to 1.communicate with the I/O expanders via the USB/I2C controller
2. Select particular RF device
3. Loop around 32 states (e.g. 000000, 110000 etc. per device and each time capture the measurements with an instrument.
Can some one please assist me in helping to create a python code (preferably) to communicate with the I/O Expanders and control the state of each RF device?
Much appreciated for the assistance.