ZHCADV1A September 2022 – February 2024 DS90UB960-Q1 , HD3SS3212-Q1
在切換之前,禁用解串器輸出,防止系統(tǒng)進(jìn)入錯(cuò)誤處理或失效防護(hù)模式。不建議在正傳輸數(shù)據(jù)時(shí)在攝像頭之間切換。在通道間進(jìn)行多路復(fù)用時(shí),實(shí)現(xiàn)以下協(xié)議。
Analog LaunchPad Program
# Digital reset at initialization
board.WriteI2C(desAddr,0x01,0x01)
# Enable CSI-2 output and forwarding (steps below)
board.WriteI2C(desAddr,0x32,0x01) # Select CSI-2 port 0
board.WriteI2C(desAddr,0x33,0x03) # Enable CSI-2 output with continuous clock mode
board.WriteI2C(desAddr,0x20,0x00) # Forward all CSI-2 to port 0
# Before switching the MUX, disable the associated port and forwarding
board.WriteI2C(desAddr,0x20,0xF0) # Disable forwarding
board.WriteI2C(desAddr,0x0C,0x00) # Disable the RX port receiver
# After switching the MUX, restart the forwarding and the port receiver.
board.WriteI2C(desAddr,0x0C,0x0F) # Enable the RX port receiver
time.sleep(0.1) # Allow time for the port to re-lock
board.WriteI2C(desAddr,0x20,0x00) # Enable forwarding
# The switching protocol above disables forwarding for all channels. Depending on the application, deactivating only the multiplexed channel is sufficient.
For Example:
# Disable forwarding of RX Port 2
board.WriteI2C(desAddr, 0x20, 0x40)
# Disable Port 2 Receiver
board.WriteI2C(desAddr, 0x0C, 0x0B)圖 4-1 展示了從打開(kāi)多路復(fù)用器到重新建立鏈路的切換時(shí)間。除重新建立鏈路所需的時(shí)間外,還需要考慮通過(guò) I2C 的成像器的初始化時(shí)間,攝像頭初始化完成后,就可以在處理器上看到輸出。
