Commit 1d8eed1b authored by Paolo Baesso's avatar Paolo Baesso

Brief panick when everything stopped working.

parent 769bd069
......@@ -45,20 +45,20 @@ class EUDETdummy:
self.IC6=PCA9539PW(self.TLU_I2C, 0x74)
self.IC6.setInvertReg(0, 0x00)# 0= normal, 1= inverted
self.IC6.setIOReg(0, 0x00)# 0= output, 1= input
self.IC6.setOutputs(0, 0x77)# If output, set to XX
self.IC6.setOutputs(0, 0xAA)# If output, set to XX
self.IC6.setInvertReg(1, 0x00)# 0= normal, 1= inverted
self.IC6.setIOReg(1, 0x00)# 0= output, 1= input
self.IC6.setOutputs(1, 0x77)# If output, set to XX
self.IC6.setOutputs(1, 0xAA)# If output, set to XX
self.IC7=PCA9539PW(self.TLU_I2C, 0x75)
self.IC7.setInvertReg(0, 0x00)# 0= normal, 1= inverted
self.IC7.setIOReg(0, 0x00)# 0= output, 1= input
self.IC7.setOutputs(0, 0x00)# If output, set to XX
self.IC7.setOutputs(0, 0x0F)# If output, set to XX
self.IC7.setInvertReg(1, 0x00)# 0= normal, 1= inverted
self.IC7.setIOReg(1, 0x00)# 0= output, 1= input
self.IC7.setOutputs(1, 0xB0)# If output, set to XX
self.IC7.setOutputs(1, 0x50)# If output, set to XX
##################################################################################################################################
......
......@@ -45,20 +45,20 @@ class TLU:
self.IC6=PCA9539PW(self.TLU_I2C, 0x74)
self.IC6.setInvertReg(0, 0x00)# 0= normal, 1= inverted
self.IC6.setIOReg(0, 0x00)# 0= output, 1= input
self.IC6.setOutputs(0, 0xAA)# If output, set to XX
self.IC6.setOutputs(0, 0x77)# If output, set to XX
self.IC6.setInvertReg(1, 0x00)# 0= normal, 1= inverted
self.IC6.setIOReg(1, 0x00)# 0= output, 1= input
self.IC6.setOutputs(1, 0xAA)# If output, set to XX
self.IC6.setOutputs(1, 0x77)# If output, set to XX
self.IC7=PCA9539PW(self.TLU_I2C, 0x75)
self.IC7.setInvertReg(0, 0x00)# 0= normal, 1= inverted
self.IC7.setIOReg(0, 0x00)# 0= output, 1= input
self.IC7.setOutputs(0, 0x0F)# If output, set to XX
self.IC7.setOutputs(0, 0x00)# If output, set to XX
self.IC7.setInvertReg(1, 0x00)# 0= normal, 1= inverted
self.IC7.setIOReg(1, 0x00)# 0= output, 1= input
self.IC7.setOutputs(1, 0x50)# If output, set to XX
self.IC7.setOutputs(1, 0xB0)# If output, set to XX
##################################################################################################################################
......@@ -645,9 +645,9 @@ class TLU:
self.setDUTmask(DUTMask)
#
# # # Set mode
DUTMode= 0xFFFFFFFF
DUTMode= 0xFFFFFFFC ####
self.setMode(DUTMode)
# # # Set modifier
modifier = int("0xFF",16)
self.setModeModifier(modifier)
......
......@@ -65,7 +65,7 @@ if __name__ == "__main__":
logdata= True
TLU.start(logdata)
time.sleep(1.5)
time.sleep(5)
TLU.stop(False, False)
# prompt = MyPrompt()
# prompt.prompt = '>> '
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment