Skip to content
Snippets Groups Projects
Commit 99bf434a authored by Gijs Schoonderbeek's avatar Gijs Schoonderbeek
Browse files

Used for testing 3 L2TS boards

parent db15a0a5
No related branches found
No related tags found
1 merge request!6Apsct ad9511
......@@ -16,6 +16,7 @@ Check APSCT_CLK
"""
import apsct_lib
import sys
import time
READ_ALL = False # True
......@@ -33,6 +34,7 @@ for mode in modi:
print(f"Check APSCT in {mode} mode")
apsct.frequency = mode
apsct.set_apsct()
time.sleep(1)
if mode == "200MHz":
state = state & apsct.pll_200.read_lock()
if mode == "160MHz":
......@@ -40,6 +42,7 @@ for mode in modi:
apsct.frequency = "200MHz"
apsct.set_apsct()
time.sleep(1)
apsct.pll_200.read_lock()
apsct.sensors.apsct_sensors()
state = state & apsct.check_apsct()
......@@ -55,6 +58,7 @@ if state:
rw_ok = apsct.eeprom.wr_rd_eeprom(apsct_id, address=0)
if rw_ok:
rw_ok = apsct.eeprom.wr_rd_eeprom(serial, address=0x20)
print("APSCT tested successfully ")
if not rw_ok:
print("EEPROM Error")
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment