Part Number: SN65C1167
Dear E2E Team,
We have developed a CMOS sensor based smart camera, with IO (Digital & Analog) support to interact with field devices like Valves, Actuators etc. We have two hardware versions of the camera with different form factors. In the first version, we have populated all the IOs inside the camera in a separate PCB, with analog outputs realized using AD5686R (SPI DAC) and digital I/O via processor GPIO pins directly. In the second version, due to form factor constraints, we have planned to support the IOs, external to camera by means of Processor's SPI bus in a separate PCB. Based on the Analog Application journal (slyt441), we have used the IC SN65C1167EPWR in our design for extension of SPI bus. We have two hardware boards (1 & 2) in the design.
Board 1: Power Board
Board 2: IO Expander Board
The connection between the two boards, with the hardware functional blocks in each board is shown in figure 1.
In the IO Expander Board, we have two slave devices (16-bit 4 channel serial DAC- AD5686R & 16-bit SPI IO Expander- MCP23S17).
Figure 1: Board 1 & 2 and the connection between them
Our camera's processing element is based on Zynq Ultrascale+ MPSoC, and is linux based. We have successfully tested the MCP23S17 device (at 1MHz SPI clock frequency) in output mode. But failed in testing the device in input mode.
Also, with the other device (DAC- AD5686R), there are issues with MOSI data transmission. Please find the table below for the expected and actual values of the DAC output voltage for the input count values.
DAC count |
Expected DAC output voltage |
Actual DAC output voltage (in Volts) |
13100 |
1 |
2.3 |
25200 |
2 |
4.6 |
39300 |
3 |
3.6 |
52500 |
4 |
4.3 |
65500 |
5 |
5.3 |
We have followed all the design guidelines properly for the routing of differential pair, as well as all the suggested components in the application note, were included in the design. Also, we tried various experiments like: reducing cable lengths between the two boards (1.5 m and 0.5 m) & SPI clock speeds at 50MHz, 10MHz & 1 MHz.
We are actually stuck up with the testing. In fact, we have tried to probe the SPI signals, with oscilloscope's serial decode enabled.
Kindly help us to resolve the issue and move forward with the testing successfully.
Attached the SPI Extender design we used in both boards:
Board 1 - SPI Extender design
Board 2 - SPI Extender design