diff --git a/pypcc/config/RECVTR_LB.yaml b/pypcc/config/RECVTR_LB.yaml index 0450b4c706deec2d5cfe5a24498d2fbeaf388efa..8bc5af40731b048aa4b6c19d5d7a025e83203c58 100644 --- a/pypcc/config/RECVTR_LB.yaml +++ b/pypcc/config/RECVTR_LB.yaml @@ -141,6 +141,9 @@ device_registers: - name: JESD_control1 description: JESD link control address: 0x5F + - name: JESD_control3 + description: JESD link control + address: 0x61 - name: SYNC_control address: 0x3A - name: CML_level @@ -534,11 +537,23 @@ variables: driver: I2C_RCU devreg: [ADC1.JESD_control1,ADC2.JESD_control1,ADC3.JESD_control1] width: 8 - rw: ro + rw: rw dtype: uint8 dim: 96 dim2: [3,32] debug: true + mask: ANT_mask + + - name: RCU_ADC_JESD3 + driver: I2C_RCU + devreg: [ADC1.JESD_control3,ADC2.JESD_control3,ADC3.JESD_control3] + width: 8 + rw: rw + dtype: uint8 + dim: 96 + dim2: [3,32] + debug: true + mask: ANT_mask - name: RCU_ADC_CML_level driver: I2C_RCU diff --git a/scripts/ADC_JESDtest.py b/scripts/ADC_JESDtest.py new file mode 100644 index 0000000000000000000000000000000000000000..1bf67939f50aaafcb7a0559e536aeb3864945715 --- /dev/null +++ b/scripts/ADC_JESDtest.py @@ -0,0 +1,28 @@ +from test_common import * +connect() + +#name="RCU_ADC_JESD3" +name="RCU_ADC_JESD" +#RCU=[0]; +RCU=[x for x in range(32)]; +Att=[0x14]*3 #default +Att=[0x34]*3 +#RCU=[0,1,2,3,16,17,18,19]; +#Att=[0x24]*3 #8-bit 0010, 0100 PN9 +#Att=[10,10,10] + + +setAntmask(RCU) + +att=get_debug_value(name+"_R") +print("JESD old:",att[:15]) +for r in RCU: + att[3*r:3*r+3]=Att +print("JESD set:",att[:15]) +set_debug_value(name+"_RW",att) + +time.sleep(0.5) +att=get_debug_value(name+"_R") +print("JESD new:",att[:15]) + +disconnect() \ No newline at end of file