Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
PyPCC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LOFAR2.0
PyPCC
Commits
880ea3b2
Commit
880ea3b2
authored
1 year ago
by
Paulus Kruger
Browse files
Options
Downloads
Patches
Plain Diff
RCU2H uC reset on startup added
parent
70d913a3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#56618
passed
1 year ago
Stage: run
Stage: image
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
pypcc/config/RECVTR_HB.yaml
+14
-1
14 additions, 1 deletion
pypcc/config/RECVTR_HB.yaml
scripts/GPIO.py
+11
-0
11 additions, 0 deletions
scripts/GPIO.py
scripts/get_uC.py
+25
-0
25 additions, 0 deletions
scripts/get_uC.py
with
50 additions
and
1 deletion
pypcc/config/RECVTR_HB.yaml
+
14
−
1
View file @
880ea3b2
...
...
@@ -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
:
0x
F8
-
IO4.CONF2
:
0x
00
#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
...
...
This diff is collapsed.
Click to expand it.
scripts/GPIO.py
0 → 100644
+
11
−
0
View file @
880ea3b2
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
()
This diff is collapsed.
Click to expand it.
scripts/get_uC.py
0 → 100644
+
25
−
0
View file @
880ea3b2
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
()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment