Other Parts Discussed in Thread: ALP
Dear Team,
I am trying to write one script file to configure Serializer(DS90UB0949) and remote deserializer(DS90UB0948) using I2C interface. How to implement "Assert Hot Plug" functionality. I have not found any valid information from serializer data sheet. While debugging ALP code, I found below information.
# Assert Hot Plug
def assert_hot_plug(s):
s.APB_Write(s.HDMI_SETUP_CTRL, s.HOT_PLUG_DETECT)
s.hot_plug_asserted = True
where
s.HDMI_SETUP_CTRL = 0x0000; # HDMI Setup Ctl Reg
s.HOT_PLUG_DETECT = 0x01000001; # Assert Hot plug detect
Whether above code can be re-written just like as follows using board.WriteI2C API?
#Assert HPD
# Select HDMI APB interface.
board.WriteI2C(UB0949, 0x48, 0x01)
board.WriteI2C(UB0949, 0x49, 0x00)
board.WriteI2C(UB0949, 0x4A, 0x00)
board.WriteI2C(UB0949, 0x4B, 0x01)
board.WriteI2C(UB0949, 0x4C, 0x00)
board.WriteI2C(UB0949, 0x4D, 0x00)
board.WriteI2C(UB0949, 0x4E, 0x01)
Could you please give the expansion or definition of APB_Write ? What is actally happenning via I2C interface when APB_Write is called?
Regards,
Chintha