SNLA267A March 2019 – June 2019 DS90UB953-Q1 , DS90UB954-Q1 , DS90UB960-Q1
## 953_954_Screen_CRC_Parity_CSI_InTime.py
##
## revision 1.0 6/13/17
##
########
import time
devAddr_954 = 0x7A
devAddr_953 = 0x18
waitTime = 10 #Note this time is in seconds
print "\n"
print "devAddr_954 = 0x7A"
print "devAddr_953 = 0x18"
# Clear previous errors
board.ReadI2C(devAddr_954,0x4D)
time.sleep(0.1)
board.ReadI2C(devAddr_954,0x55)
time.sleep(0.1)
board.ReadI2C(devAddr_954,0x56)
time.sleep(0.1)
board.ReadI2C(devAddr_954,0x7A)
time.sleep(0.1)
board.ReadI2C(devAddr_954,0x7B)
time.sleep(0.1)
board.WriteI2C(devAddr_953,0x49,0x08)
time.sleep(0.1)
board.ReadI2C(devAddr_953,0x79)
time.sleep(0.1)
board.ReadI2C(devAddr_953,0x55)
time.sleep(0.1)
board.ReadI2C(devAddr_953,0x56)
time.sleep(0.1)
board.ReadI2C(devAddr_953,0x5C)
time.sleep(0.1)
board.ReadI2C(devAddr_953,0x5D)
time.sleep(0.1)
# Program time to wait
print "Wait ", waitTime, " seconds"
time.sleep(waitTime)
# Print Registers
print "BC Status:", hex(board.ReadI2C(devAddr_953,0x52))
time.sleep(0.1)
print "CRC Error HI:", hex(board.ReadI2C(devAddr_953,0x56))
time.sleep(0.1)
print "CRC Error LO:", hex(board.ReadI2C(devAddr_953,0x55))
time.sleep(0.1)
print "FC Status:", hex(board.ReadI2C(devAddr_954,0x4D))
time.sleep(0.1)
print "Parity Error HI:", hex(board.ReadI2C(devAddr_954,0x55))
time.sleep(0.1)
print "Parity Error LO:", hex(board.ReadI2C(devAddr_954,0x56))
time.sleep(0.1)
print "953 CSI Status:", hex(board.ReadI2C(devAddr_953,0x5D))
time.sleep(0.1)
print "954 CSI Status:", hex(board.ReadI2C(devAddr_954,0x7A))
time.sleep(0.1)
print "CSI Error = ", hex(board.ReadI2C(devAddr_953, 0x5C, 1))
time.sleep(0.1)
print "Packet Header data = ", hex(board.ReadI2C(devAddr_953, 0x61, 1))
time.sleep(0.1)
print "Packet Header Word Count 0 = ", hex(board.ReadI2C(devAddr_953, 0x62, 1))
time.sleep(0.1)
print "Packet Header Word Count 1 = ", hex(board.ReadI2C(devAddr_953, 0x63, 1))
time.sleep(0.1)
# Clear Errors after test
board.ReadI2C(devAddr_954,0x4D)
time.sleep(0.1)
board.ReadI2C(devAddr_954,0x55)
time.sleep(0.1)
board.ReadI2C(devAddr_954,0x56)
time.sleep(0.1)
board.ReadI2C(devAddr_954,0x7A)
time.sleep(0.1)
board.ReadI2C(devAddr_954,0x7B)
time.sleep(0.1)
board.WriteI2C(devAddr_953,0x49,0x08)
time.sleep(0.1)
board.ReadI2C(devAddr_953,0x79)
time.sleep(0.1)
board.ReadI2C(devAddr_953,0x55)
time.sleep(0.1)
board.ReadI2C(devAddr_953,0x56)
time.sleep(0.1)
board.ReadI2C(devAddr_953,0x5C)
time.sleep(0.1)
board.ReadI2C(devAddr_953,0x5D)
time.sleep(0.1)