Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
python_test_scripts
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LOFAR2.0
python_test_scripts
Merge requests
!3
Apsct production
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
Apsct production
apsct_production
into
master
Overview
0
Commits
19
Pipelines
0
Changes
3
Merged
Apsct production
Gijs Schoonderbeek
requested to merge
apsct_production
into
master
Feb 13, 2023
Overview
0
Commits
19
Pipelines
0
Changes
3
Changes for production testing of APSCT
0
0
Merge request reports
Viewing commit
8ecf836e
Prev
Next
Show latest version
3 files
+
193
−
81
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
8ecf836e
Added test functionality, not tested on HW yet.
· 8ecf836e
Gijs Schoonderbeek
authored
Jan 6, 2023
APSCT_I2C.py
0 → 100644
+
61
−
0
View file @ 8ecf836e
Edit in single-file editor
Open in Web IDE
"""
Copyright 2022 Stichting Nederlandse Wetenschappelijk Onderzoek Instituten,
ASTRON Netherlands Institute for Radio Astronomy
Licensed under the Apache License, Version 2.0 (the
"
License
"
);
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an
"
AS IS
"
BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Created: 2022-12-07
This file contains the definitions of the APSPU registers etc.
"""
#
# I2C address, registers and ports for APSCT
# Created: 2023-01-06
#
#
# Power supplies
#
PWR_LOCATIONS
=
{
"
INPUT
"
:
0
,
"
PLL_160M
"
:
1
,
"
PLL_200M
"
:
2
,
"
DIST_A
"
:
3
,
"
DIST_B
"
:
4
,
"
DIST_C
"
:
5
,
"
DIST_D
"
:
6
,
"
CTRL
"
:
7
}
PWR_VOUT
=
{
"
INPUT
"
:
3.3
,
"
PLL_160M
"
:
3.3
,
"
PLL_200M
"
:
3.3
,
"
DIST_A
"
:
3.3
,
"
DIST_B
"
:
3.3
,
"
DIST_C
"
:
3.3
,
"
DIST_D
"
:
3.3
,
"
CTRL
"
:
3.3
}
#
# PLL constants / pin locations
#
CS
=
6
SCLK
=
4
SDO
=
5
SDI
=
7
PLL_200M
=
0x20
PLL_160M
=
0x21
#
# Central I2C Devices
#
EEPROM
=
0x50
Loading