Skip to content
Snippets Groups Projects
Commit 880ea3b2 authored by Paulus Kruger's avatar Paulus Kruger
Browse files

RCU2H uC reset on startup added

parent 70d913a3
No related branches found
No related tags found
No related merge requests found
Pipeline #56618 passed
......@@ -712,6 +712,18 @@ variables:
mask: ANT_mask
wait: 1000
# - name: [RCU_uC_VPP,RCU_uC_PGC,RCU_uC_PGD]
# driver: I2C_RCU
# devreg: IO4.GPIO2
# bitoffset: [0,3,0]
# width: 3
# rw: rw
# dtype: uint8
# dim: 96
# dim2: [3,32]
# mask: ANT_mask
methods:
- name: RECVTR_Init #Called after startup to load. Should have all stored registers
driver: I2C_RCU
......@@ -786,9 +798,10 @@ methods:
- IO4.CONF1: 0xC0 #pin 0x40, 0x80 not used
- IO4.CONF2: 0xF8
- IO4.CONF2: 0x00 #reset uC?
- IO4.GPIO1: 0x2A #DAB switch states: 0x2A or 0x51
- IO4.GPIO2: 0x02 #Band select
- IO4.CONF2: 0xF8
- HB_UC.waitPPS: 1 #wait for PPS
- HB_UC.VREF: 0x0C
......
from test_common import *
name="RCU_IO4_GPIO2"
RCU=2;
connect()
setRCUmask([RCU])
led=get_debug_value(name+"_R")
print("GPIO:",[hex(x) for x in led])
disconnect()
from test_common import *
name="RCU_firmware_version"
RCU=[0,1,2,3];
#On=[False,True,False]
#On=[False,False,False]
#Att=[10,10,10]
#RCU=[1,2,3];
#Att=[0,0,0]
connect()
setRCUmask(RCU)
att=get_value(name+"_R")
print("Att old:",att[:18])
#for r in RCU:
# att[3*r:3*r+3]=On
#print("Att set:",att[:18])
#set_value(name+"_RW",att)
#time.sleep(0.5)
#att=get_value(name+"_R")
#print("Att new:",att[:18])
disconnect()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment