update 20180530 1200
This commit is contained in:
parent
ea681cf5ff
commit
aac77f1a61
25
README.md
25
README.md
|
@ -10,27 +10,34 @@
|
|||
- I2C
|
||||
- v2
|
||||
- [x] Umbau
|
||||
- [x] union based data structures (removes the need for magic numbers
|
||||
- [ ] save types inside `pi2cproto.h`
|
||||
- [x] **packed** union based data structures (removes the need for magic numbers
|
||||
- [ ] safe types inside `pi2cproto.h`
|
||||
- [ ] old
|
||||
- [x] ballast
|
||||
- [x] reused
|
||||
- remaining compatability to v1
|
||||
- [ ] new
|
||||
- [ ] UUID readout
|
||||
- [ ] r/w-ablility for both 1.8V potentiometers
|
||||
- [x] UUID readout
|
||||
- [x] r/w-ablility for both 1.8V potentiometers
|
||||
- [x] raw memory mapping
|
||||
- [ ] why is `mon48v = 0x11`?
|
||||
- [ ] why are `digipoti` and `anapoti` only readable from `0x02` and 0x04` not partial?
|
||||
- [x] why is `mon48v = 0x11`?
|
||||
- missing `__attribute__((packed))` declarations
|
||||
- [x] why are `digipoti` and `anapoti` only readable from `0x02` and 0x04` not partial?
|
||||
- same as above
|
||||
|
||||
- Calibration
|
||||
- [x] characterize adcbehaviour
|
||||
- [ ] plot resulting fitted incline of $\Delta $V vs. num. of readcycles
|
||||
- [x] plot resulting fitted incline of $\Delta $V vs. num. of readcycles
|
||||
- [ ] write reasoning for using a given `sampleTicks` value
|
||||
- smallest gain error
|
||||
- smallest offset
|
||||
- hightst samplerate
|
||||
- [x] polynomials
|
||||
- [ ] polynomials rw-able
|
||||
- [x] polynomials rw-able
|
||||
- [x] 10I calc
|
||||
- ADC vs. Keithley
|
||||
- [ ] 48V
|
||||
- redo after selection of `sampleTicks` value
|
||||
- [ ] 10V
|
||||
- [x] 1.8V
|
||||
- ADC vs. EL
|
||||
|
@ -40,7 +47,9 @@
|
|||
- Temp
|
||||
- [ ] accuracy
|
||||
- [ ] position in system
|
||||
- inside chip -> on underside of board, between frame and board
|
||||
- [ ] relevancy
|
||||
- peace of mind if readout correct and not too high (no experience)
|
||||
|
||||
- 1.8V Regulation
|
||||
- [ ] compare regulation concepts
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -1,9 +1,10 @@
|
|||
#! /usr/bin/python3
|
||||
|
||||
import scipy.optimize as opt
|
||||
import scipy.optimize as opt
|
||||
import numpy as np
|
||||
import pandas as pd
|
||||
import matplotlib.pyplot as plt
|
||||
import VisTools.plotting as vt
|
||||
|
||||
plt.ioff()
|
||||
plt.style.use('bmh')
|
||||
|
@ -14,14 +15,14 @@ data['Dv'] = data['v_pit48/v'] - data['v_keith/v']
|
|||
print(data)
|
||||
|
||||
axarr[0].errorbar(
|
||||
data['v_keith/v'],
|
||||
data['v_set/v'],
|
||||
data['v_pit48/v'],
|
||||
yerr=data['dv_pit48/v'],
|
||||
label="V$_{MONITOR\_48V}$",
|
||||
fmt='.'
|
||||
)
|
||||
axarr[0].errorbar(
|
||||
data['v_keith/v'],
|
||||
data['v_set/v'],
|
||||
data['v_ps/v'],
|
||||
yerr=data['dv_ps/v'],
|
||||
label="V$_{PS}$",
|
||||
|
@ -29,7 +30,7 @@ axarr[0].errorbar(
|
|||
)
|
||||
|
||||
axarr[1].errorbar(
|
||||
data['v_keith/v'],
|
||||
data['v_set/v'],
|
||||
data['Dv'],
|
||||
yerr=data['dv_pit48/v'],
|
||||
label=" absolute Error of ADC",
|
||||
|
@ -41,7 +42,7 @@ linfnc = lambda x,m,c: x*m+c
|
|||
|
||||
pfinal, pcov = opt.curve_fit(
|
||||
linfnc,
|
||||
data['v_keith/v'],
|
||||
data['v_set/v'],
|
||||
data['Dv'],
|
||||
p0=(.1,2.6),
|
||||
sigma=[.5 for e in range(data['Dv'].size)]
|
||||
|
@ -50,10 +51,13 @@ pfinal, pcov = opt.curve_fit(
|
|||
print( pfinal )
|
||||
|
||||
axarr[1].plot(
|
||||
data['v_keith/v'],
|
||||
data['v_set/v'],
|
||||
data['v_keith/v']*pfinal[0]+pfinal[1]
|
||||
)
|
||||
plt.xlabel('V$_{Keith}$/k$\Omega$')
|
||||
|
||||
vt.annotate_val(plt, pfinal[0], np.sqrt(pcov[0][0]), name="V48[2]", data_pos=(44, 3))
|
||||
|
||||
plt.xlabel('V$_{set}$/V')
|
||||
axarr[0].set_ylabel('V$_{IN}$/V')
|
||||
axarr[0].set_title("PowerIt ADC Calibration: 48V Input")
|
||||
axarr[1].set_ylabel('$\Delta$V$_{IN}$ / V')
|
||||
|
|
|
@ -0,0 +1,169 @@
|
|||
time/s,v_ps/v,dv_ps/v,v_pit48/v,dv_pit48/v,v_keith/v,v_set/v,cycles
|
||||
14.897,43.034,0.011,38.931,0.243,43.112,43.000,000
|
||||
18.963,43.038,0.008,42.409,0.084,43.112,43.000,001
|
||||
23.282,43.032,0.005,42.156,0.074,43.113,43.000,002
|
||||
28.781,43.032,0.009,41.976,0.067,43.114,43.000,003
|
||||
32.817,43.039,0.006,41.805,0.062,43.113,43.000,004
|
||||
36.864,43.034,0.005,41.734,0.069,43.112,43.000,005
|
||||
40.986,43.039,0.006,41.747,0.048,43.112,43.000,006
|
||||
45.283,43.037,0.008,41.769,0.128,43.113,43.000,007
|
||||
60.684,43.509,0.007,39.502,0.245,43.590,43.500,000
|
||||
64.738,43.511,0.007,42.796,0.255,43.590,43.500,001
|
||||
68.810,43.518,0.007,42.478,0.202,43.588,43.500,002
|
||||
72.857,43.513,0.007,42.396,0.130,43.589,43.500,003
|
||||
77.183,43.513,0.003,42.310,0.138,43.589,43.500,004
|
||||
81.795,43.516,0.008,42.208,0.063,43.589,43.500,005
|
||||
87.295,43.516,0.013,42.211,0.063,43.590,43.500,006
|
||||
91.484,43.515,0.006,42.230,0.133,43.590,43.500,007
|
||||
105.784,43.998,0.009,39.731,0.308,44.075,44.000,000
|
||||
109.826,44.002,0.009,43.176,0.153,44.074,44.000,001
|
||||
113.874,43.999,0.006,42.917,0.218,44.075,44.000,002
|
||||
118.008,44.000,0.011,42.845,0.080,44.075,44.000,003
|
||||
122.284,43.997,0.010,42.741,0.125,44.074,44.000,004
|
||||
126.319,43.998,0.006,42.517,0.236,44.075,44.000,005
|
||||
130.399,43.999,0.006,42.680,0.196,44.075,44.000,006
|
||||
134.446,43.998,0.009,42.718,0.207,44.075,44.000,007
|
||||
148.686,44.491,0.008,40.495,0.476,44.569,44.500,000
|
||||
152.731,44.494,0.007,43.695,0.485,44.569,44.500,001
|
||||
156.793,44.493,0.006,43.455,0.250,44.569,44.500,002
|
||||
160.843,44.493,0.007,43.444,0.192,44.570,44.500,003
|
||||
165.187,44.495,0.006,43.110,0.275,44.570,44.500,004
|
||||
169.798,44.493,0.003,43.226,0.047,44.569,44.500,005
|
||||
173.987,44.493,0.005,43.005,0.278,44.571,44.500,006
|
||||
178.022,44.495,0.006,43.218,0.085,44.571,44.500,007
|
||||
193.308,44.996,0.006,41.094,0.623,45.075,45.000,000
|
||||
197.362,44.999,0.007,44.219,0.321,45.074,45.000,001
|
||||
201.487,44.994,0.005,44.147,0.426,45.074,45.000,002
|
||||
205.545,44.997,0.010,43.712,0.405,45.076,45.000,003
|
||||
209.600,44.998,0.011,43.618,0.223,45.074,45.000,004
|
||||
213.799,45.005,0.006,43.659,0.087,45.075,45.000,005
|
||||
217.988,44.996,0.003,43.667,0.055,45.076,45.000,006
|
||||
222.389,45.002,0.004,43.789,0.111,45.074,45.000,007
|
||||
236.689,45.484,0.004,41.129,0.365,45.569,45.500,000
|
||||
240.730,45.487,0.005,44.854,0.269,45.569,45.500,001
|
||||
244.785,45.491,0.010,44.418,0.278,45.570,45.500,002
|
||||
248.840,45.490,0.006,44.443,0.254,45.569,45.500,003
|
||||
253.188,45.486,0.006,44.103,0.292,45.570,45.500,004
|
||||
257.242,45.492,0.010,44.114,0.047,45.568,45.500,005
|
||||
261.286,45.489,0.010,44.227,0.307,45.570,45.500,006
|
||||
266.533,45.493,0.008,44.109,0.180,45.569,45.500,007
|
||||
280.690,45.997,0.009,41.747,0.131,46.076,46.000,000
|
||||
285.301,45.999,0.005,45.251,0.099,46.077,46.000,001
|
||||
289.490,45.998,0.008,45.027,0.082,46.079,46.000,002
|
||||
293.536,46.001,0.006,44.796,0.066,46.078,46.000,003
|
||||
297.582,45.997,0.008,44.696,0.092,46.078,46.000,004
|
||||
302.831,45.993,0.007,44.650,0.063,46.077,46.000,005
|
||||
307.301,45.994,0.006,44.611,0.082,46.079,46.000,006
|
||||
312.802,45.997,0.008,44.672,0.127,46.077,46.000,007
|
||||
328.073,46.508,0.010,42.175,0.077,46.587,46.500,000
|
||||
332.392,46.507,0.006,45.764,0.081,46.587,46.500,001
|
||||
336.456,46.503,0.008,45.516,0.049,46.588,46.500,002
|
||||
340.504,46.507,0.016,45.301,0.060,46.588,46.500,003
|
||||
344.552,46.505,0.006,45.171,0.042,46.587,46.500,004
|
||||
348.892,46.508,0.009,45.165,0.099,46.587,46.500,005
|
||||
352.934,46.514,0.004,45.066,0.074,46.588,46.500,006
|
||||
356.982,46.504,0.004,45.130,0.172,46.587,46.500,007
|
||||
371.042,46.990,0.008,42.754,0.061,47.074,47.000,000
|
||||
375.294,46.993,0.006,46.258,0.038,47.076,47.000,001
|
||||
379.328,47.001,0.006,46.021,0.045,47.075,47.000,002
|
||||
383.376,46.994,0.006,45.750,0.056,47.075,47.000,003
|
||||
389.838,46.995,0.003,45.607,0.095,47.077,47.000,004
|
||||
393.993,46.995,0.006,45.618,0.078,47.076,47.000,005
|
||||
398.072,46.996,0.003,45.607,0.186,47.076,47.000,006
|
||||
403.325,46.997,0.005,45.560,0.108,47.076,47.000,007
|
||||
418.587,47.479,0.005,43.204,0.072,47.564,47.500,000
|
||||
422.806,47.479,0.010,46.738,0.066,47.564,47.500,001
|
||||
426.994,47.480,0.005,46.470,0.071,47.565,47.500,002
|
||||
431.047,47.482,0.005,46.283,0.030,47.564,47.500,003
|
||||
435.094,47.478,0.009,46.128,0.089,47.564,47.500,004
|
||||
441.557,47.477,0.006,46.123,0.108,47.564,47.500,005
|
||||
445.695,47.475,0.008,46.150,0.197,47.565,47.500,006
|
||||
451.196,47.472,0.009,46.156,0.137,47.564,47.500,007
|
||||
465.496,47.996,0.007,43.717,0.046,48.079,48.000,000
|
||||
469.534,47.995,0.009,47.221,0.050,48.081,48.000,001
|
||||
473.582,47.997,0.006,47.011,0.034,48.081,48.000,002
|
||||
477.807,47.996,0.008,46.790,0.042,48.079,48.000,003
|
||||
481.997,47.996,0.004,46.661,0.091,48.079,48.000,004
|
||||
486.045,47.996,0.006,46.517,0.094,48.079,48.000,005
|
||||
490.149,47.995,0.004,46.520,0.182,48.080,48.000,006
|
||||
494.307,47.994,0.005,46.534,0.118,48.080,48.000,007
|
||||
510.809,48.492,0.007,44.142,0.056,48.575,48.500,000
|
||||
514.998,48.491,0.005,47.714,0.059,48.574,48.500,001
|
||||
519.063,48.493,0.007,47.480,0.031,48.575,48.500,002
|
||||
524.309,48.489,0.008,47.207,0.071,48.574,48.500,003
|
||||
530.804,48.487,0.006,47.022,0.087,48.573,48.500,004
|
||||
536.100,48.489,0.010,47.099,0.132,48.575,48.500,005
|
||||
540.298,48.491,0.007,46.994,0.148,48.575,48.500,006
|
||||
544.338,48.490,0.007,47.058,0.058,48.575,48.500,007
|
||||
558.399,48.969,0.005,44.597,0.033,49.059,49.000,000
|
||||
562.447,48.973,0.004,48.175,0.042,49.060,49.000,001
|
||||
566.699,48.974,0.004,47.943,0.029,49.061,49.000,002
|
||||
570.749,48.974,0.006,47.684,0.076,49.060,49.000,003
|
||||
574.796,48.972,0.007,47.599,0.102,49.060,49.000,004
|
||||
578.934,48.973,0.007,47.585,0.126,49.060,49.000,005
|
||||
583.199,48.968,0.007,47.516,0.180,49.060,49.000,006
|
||||
587.242,48.977,0.009,47.557,0.111,49.059,49.000,007
|
||||
601.304,49.489,0.007,45.132,0.088,49.577,49.500,000
|
||||
607.782,49.490,0.007,48.710,0.023,49.577,49.500,001
|
||||
611.829,49.486,0.007,48.434,0.027,49.577,49.500,002
|
||||
616.200,49.490,0.007,48.228,0.062,49.578,49.500,003
|
||||
620.245,49.485,0.005,48.054,0.154,49.578,49.500,004
|
||||
624.290,49.487,0.004,48.032,0.129,49.577,49.500,005
|
||||
628.338,49.490,0.005,48.034,0.097,49.577,49.500,006
|
||||
632.701,49.489,0.007,48.139,0.108,49.578,49.500,007
|
||||
647.001,49.986,0.012,45.576,0.034,50.073,50.000,000
|
||||
651.037,49.982,0.008,49.193,0.040,50.071,50.000,001
|
||||
656.326,49.984,0.005,48.942,0.044,50.073,50.000,002
|
||||
660.379,49.984,0.007,48.592,0.116,50.071,50.000,003
|
||||
664.814,49.979,0.007,48.468,0.129,50.072,50.000,004
|
||||
669.002,49.983,0.005,48.492,0.079,50.072,50.000,005
|
||||
673.049,49.978,0.008,48.479,0.153,50.072,50.000,006
|
||||
677.096,49.984,0.008,48.528,0.135,50.072,50.000,007
|
||||
691.159,50.472,0.009,46.087,0.036,50.564,50.500,000
|
||||
697.814,50.474,0.005,49.692,0.022,50.563,50.500,001
|
||||
702.004,50.475,0.009,49.386,0.033,50.562,50.500,002
|
||||
706.057,50.475,0.003,49.119,0.071,50.563,50.500,003
|
||||
710.098,50.468,0.010,49.017,0.094,50.562,50.500,004
|
||||
714.315,50.473,0.008,48.898,0.161,50.561,50.500,005
|
||||
718.505,50.472,0.008,48.950,0.114,50.563,50.500,006
|
||||
722.904,50.473,0.006,49.022,0.176,50.562,50.500,007
|
||||
737.204,50.962,0.007,46.528,0.053,51.050,51.000,000
|
||||
741.262,50.963,0.008,50.159,0.026,51.050,51.000,001
|
||||
745.350,50.965,0.007,49.866,0.027,51.050,51.000,002
|
||||
749.404,50.959,0.007,49.670,0.158,51.050,51.000,003
|
||||
754.805,50.955,0.006,49.475,0.070,51.050,51.000,004
|
||||
759.205,50.959,0.007,49.483,0.047,51.050,51.000,005
|
||||
763.257,50.966,0.003,49.403,0.109,51.050,51.000,006
|
||||
768.520,50.965,0.004,49.494,0.071,51.051,51.000,007
|
||||
782.582,51.471,0.004,47.014,0.045,51.563,51.500,000
|
||||
787.828,51.475,0.005,50.691,0.037,51.563,51.500,001
|
||||
793.307,51.471,0.007,50.388,0.030,51.564,51.500,002
|
||||
797.707,51.473,0.004,50.007,0.096,51.563,51.500,003
|
||||
801.762,51.471,0.005,50.120,0.125,51.563,51.500,004
|
||||
805.807,51.475,0.006,49.985,0.086,51.563,51.500,005
|
||||
812.270,51.473,0.007,49.938,0.068,51.563,51.500,006
|
||||
816.407,51.471,0.008,49.993,0.120,51.563,51.500,007
|
||||
833.148,51.948,0.008,47.474,0.042,52.040,52.000,000
|
||||
838.426,51.949,0.008,51.127,0.033,52.040,52.000,001
|
||||
842.474,51.952,0.006,50.835,0.049,52.040,52.000,002
|
||||
846.536,51.950,0.008,50.633,0.113,52.040,52.000,003
|
||||
850.584,51.950,0.006,50.357,0.152,52.040,52.000,004
|
||||
854.909,51.948,0.011,50.429,0.142,52.041,52.000,005
|
||||
860.408,51.946,0.008,50.401,0.075,52.040,52.000,006
|
||||
864.454,51.948,0.005,50.501,0.117,52.039,52.000,007
|
||||
878.516,52.436,0.006,47.946,0.037,52.525,52.500,000
|
||||
882.564,52.435,0.005,51.615,0.029,52.526,52.500,001
|
||||
886.810,52.436,0.004,51.317,0.051,52.526,52.500,002
|
||||
890.865,52.432,0.005,51.077,0.116,52.525,52.500,003
|
||||
894.912,52.427,0.005,50.901,0.061,52.527,52.500,004
|
||||
898.997,52.432,0.007,50.879,0.095,52.526,52.500,005
|
||||
903.310,52.436,0.006,50.876,0.053,52.526,52.500,006
|
||||
907.358,52.437,0.009,50.964,0.087,52.527,52.500,007
|
||||
921.419,52.961,0.007,48.451,0.038,53.061,53.000,000
|
||||
925.515,52.973,0.007,52.150,0.037,53.061,53.000,001
|
||||
929.711,52.965,0.007,51.792,0.026,53.059,53.000,002
|
||||
933.754,52.963,0.008,51.519,0.100,53.061,53.000,003
|
||||
937.836,52.962,0.011,51.450,0.082,53.060,53.000,004
|
||||
941.928,52.967,0.008,51.439,0.114,53.058,53.000,005
|
||||
948.411,52.961,0.007,51.408,0.140,53.060,53.000,006
|
||||
952.811,52.968,0.007,51.378,0.088,53.060,53.000,007
|
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,93 @@
|
|||
#! /Usr/bin/python3
|
||||
|
||||
import scipy.optimize as opt
|
||||
import numpy as np
|
||||
import pandas as pd
|
||||
import matplotlib.pyplot as plt
|
||||
import VisTools.plotting as vt
|
||||
|
||||
plt.ioff()
|
||||
plt.style.use('bmh')
|
||||
fig, axarr = plt.subplots(2,1,figsize=(11.88, 8.4))
|
||||
data = pd.read_csv("./" + __file__[:-3].split("_")[1] + ".csv")
|
||||
|
||||
fits = np.array([])
|
||||
errs = np.array([])
|
||||
colors = np.array([])
|
||||
|
||||
data['Dv'] = data['v_pit48/v'] - data['v_set/v']
|
||||
data['Dvk'] = data['v_keith/v'] - data['v_set/v']
|
||||
print(data)
|
||||
# fit to abs dist
|
||||
linfnc = lambda x,m,c: x*m+c
|
||||
|
||||
p = axarr[0].errorbar(
|
||||
data[data.cycles == 0]['v_set/v'],
|
||||
data[data.cycles == 0]['Dvk'],
|
||||
label="relative Error of ADC, keith",
|
||||
fmt='.'
|
||||
)
|
||||
|
||||
pfinal, pcov = opt.curve_fit(
|
||||
linfnc,
|
||||
data[data.cycles == 0]['v_set/v'],
|
||||
data[data.cycles == 0]['Dvk'],
|
||||
p0=(.1,2.6),
|
||||
sigma=[.5 for e in range(data[data.cycles == 0]['Dv'].size)]
|
||||
)
|
||||
|
||||
axarr[0].plot(
|
||||
data[data.cycles == 0]['v_set/v'],
|
||||
data[data.cycles == 0]['v_set/v']*pfinal[0]+pfinal[1],
|
||||
label="fitted, keith",
|
||||
color = p[0].get_color()
|
||||
)
|
||||
for i in range(8):
|
||||
p = axarr[0].errorbar(
|
||||
data[data.cycles == i]['v_set/v'],
|
||||
data[data.cycles == i]['Dv'],
|
||||
yerr=data[data.cycles == i]['dv_pit48/v'],
|
||||
label="relative Error of ADC, scaler: "+str(i),
|
||||
fmt='.'
|
||||
)
|
||||
|
||||
pfinal, pcov = opt.curve_fit(
|
||||
linfnc,
|
||||
data[data.cycles == i]['v_set/v'],
|
||||
data[data.cycles == i]['Dv'],
|
||||
p0=(.1,2.6),
|
||||
sigma=[.5 for e in range(data[data.cycles == i]['Dv'].size)]
|
||||
)
|
||||
|
||||
axarr[0].plot(
|
||||
data[data.cycles == i]['v_set/v'],
|
||||
data[data.cycles == i]['v_set/v']*pfinal[0]+pfinal[1],
|
||||
label="fitted, scaler: "+str(i),
|
||||
color = p[0].get_color()
|
||||
)
|
||||
|
||||
fits = np.append(fits, pfinal[0])
|
||||
errs = np.append(errs, np.sqrt(pcov[0][0]))
|
||||
colors = np.append(colors, p[0].get_color() )
|
||||
|
||||
#vt.annotate_val(plt, pfinal[0], np.sqrt(pcov[0][0]), name="V48[2]", data_pos=(44, 3))
|
||||
|
||||
print(fits)
|
||||
for i in range(8):
|
||||
axarr[1].errorbar(
|
||||
i,
|
||||
fits[i],
|
||||
yerr = errs[i],
|
||||
fmt='.',
|
||||
c = colors[i]
|
||||
)
|
||||
|
||||
axarr[0].set_xlabel('V$_{set}$/V')
|
||||
axarr[0].set_title("PowerIt ADC Calibration: dependency on measurement cycles")
|
||||
axarr[0].set_ylabel('$\Delta$V$_{IN}$ / V')
|
||||
|
||||
axarr[1].set_xlabel('sampleTicks scaler')
|
||||
axarr[1].set_ylabel('$\Delta(\Delta$V$_{IN})$')
|
||||
|
||||
plt.tight_layout()
|
||||
plt.savefig("./" + __file__[:-3].split("_")[1] + ".eps", format='eps', dpi=1000)
|
|
@ -2,4 +2,9 @@
|
|||
|
||||
\chapter{Intro}
|
||||
|
||||
\section{The Hardware}
|
||||
|
||||
The hardware used in this thesis is a PowerIt board, developed in the electronic visions group. It functions as power supply inside of the Waferscale System\footnote{
|
||||
%TODO
|
||||
}. In which it iis providing the HICANN Chips with ~1.8V and the FPGAs with 9.6V.
|
||||
<containing intro to system and board>
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 134 KiB |
|
@ -4,28 +4,37 @@
|
|||
\begin{tabular}{l|l<{\ttfamily} l l l}
|
||||
\bfseries{addr} & \bfseries{name} & \bfseries{type} & \bfseries{size} & \bfseries{perm} \\
|
||||
\hline
|
||||
0x00 & onmask & byte & 1 & rw\\
|
||||
0x01 & offmask & byte & 1 & rw\\
|
||||
0x02 & anapot & 9bit & 2 & rw\\
|
||||
0x04 & digipot & 9bit & 2 & rw\\
|
||||
0x00 & onmask & byte & 1 & rw\\
|
||||
0x01 & offmask & byte & 1 & rw\\
|
||||
0x02 & anapot & 9bit & 2 & rw\\
|
||||
0x04 & digipot & 9bit & 2 & rw\\
|
||||
\hline
|
||||
0x06 & TEMP\_SENSOR & float & 4 & r\\
|
||||
0x0a & EXT\_AIN & float & 4 & r\\
|
||||
0x0e & MONITOR\_48V & float & 4 & r\\
|
||||
0x12 & MONITOR\_48I & float & 4 & r\\
|
||||
0x16 & MONITOR\_8VBUS & float & 4 & r\\
|
||||
0x1a & MONITOR\_8IBUS & float & 4 & r\\
|
||||
0x1e & MONITOR\_8V\_0 & float & 4 & r\\
|
||||
0x22 & MONITOR\_8V\_1 & float & 4 & r\\
|
||||
0x26 & MONITOR\_8V\_2 & float & 4 & r\\
|
||||
0x2a & MONITOR\_8V\_3 & float & 4 & r\\
|
||||
0x2e & VDD\_1V8\_ANA & float & 4 & r\\
|
||||
0x32 & VDD\_1V8\_IOUT\_ANA & float & 4 & r\\
|
||||
0x36 & VDD\_1V8\_DIGI & float & 4 & r\\
|
||||
0x3a & VDD\_1V8\_IOUT\_DIGI & float & 4 & r\\
|
||||
0x06 & polyFit.V48 & float arr & 12 & rw\\
|
||||
0x12 & polyFit.I48 & float arr & 12 & rw\\
|
||||
0x1e & polyFit.V8 & float arr & 12 & rw\\
|
||||
0x2a & polyFit.V18 & float arr & 12 & rw\\
|
||||
0x36 & polyFit.I18 & float arr & 12 & rw\\
|
||||
\hline
|
||||
0x3e & CommitHash & float & 4 & s\\
|
||||
0x42 & CommitDirtyFlag & byte & 1 & s\\
|
||||
0x43 & STM32UUID & 96bit & 12 & s\\
|
||||
0x42 & sampleTicks & byte & 1 & rw\\
|
||||
\hline
|
||||
0x43 & TEMP\_SENSOR & float & 4 & r\\
|
||||
0x47 & EXT\_AIN & float & 4 & r\\
|
||||
0x4b & MONITOR\_48V & float & 4 & r\\
|
||||
0x4f & MONITOR\_48I & float & 4 & r\\
|
||||
0x53 & MONITOR\_8VBUS & float & 4 & r\\
|
||||
0x57 & MONITOR\_8IBUS & float & 4 & r\\
|
||||
0x5b & MONITOR\_8V\_0 & float & 4 & r\\
|
||||
0x5f & MONITOR\_8V\_1 & float & 4 & r\\
|
||||
0x63 & MONITOR\_8V\_2 & float & 4 & r\\
|
||||
0x67 & MONITOR\_8V\_3 & float & 4 & r\\
|
||||
0x6b & VDD\_1V8\_ANA & float & 4 & r\\
|
||||
0x6f & VDD\_1V8\_IOUT\_ANA & float & 4 & r\\
|
||||
0x73 & VDD\_1V8\_DIGI & float & 4 & r\\
|
||||
0x77 & VDD\_1V8\_IOUT\_DIGI & float & 4 & r\\
|
||||
\hline
|
||||
0x7b & CommitHash & float & 4 & s\\
|
||||
0x7f & CommitDirtyFlag & byte & 1 & s\\
|
||||
0x80 & STM32UUID & 96bit & 12 & s\\
|
||||
\end{tabular}
|
||||
\caption{memory mapping of the packed struct moved over i2c}
|
||||
\end{figure}
|
||||
|
|
Loading…
Reference in New Issue