Hello,
I'm having an issue with switching the OPT9221 to use 4-lane SSI output.
I'm able to load the OPT9221 v23 firmware and get/set the I2C configuration registers just fine. I have worked out a very basic initialization sequence just to activate streaming and see the OPT9221 outputting data. When I do this it seems like the OPT9221 responds to every register setting I apply except for changing op_mode to serial.
Here is my init sequence after loading the firmware:
set TG reg 80h to 0x000001 // disable streaming
set DE reg 33h to 0x010030 // set sysclk_in to 24MHz
set DE reg 39h to 0x000620 // set to 4-lane serial op_mode, rising clk edge, 24MHz output freq
set TG reg 80h to 0x000000 // enable streaming
While I have streaming active, I can write to DE register 39h and change the op_clk_freq and op_clk_edge and see with an oscilloscope that the changes are taking effect, but when I try to change the op_mode the OPT9221 just continues with 8bit parallel out (oscilloscope shows data being output on all 8 bits and the chip select stays high). I am also able to write to DE register 40h and see the chip select polarity change. Basically the OPT9221 appears to be ignoring the op_mode bits and responding to everything else.
What is preventing the OPT9221 from entering 4-lane SSI mode? Are there other registers that need to be set as a pre-requisite for 4-lane SSI mode?
Thanks,
Mike Smtih
Hardware and Software Engineer
mike.smith@viionsystems.com