-
more questions sorry seb :) i can run the calibration process up until the last step OUTPUT -5V... at this point i'm meant to hold the ubutton to switch to -5V but not sure which it is? there are three buttons on the ecpix5... SW1 RESET -> resets the board ( and the cal.py aborts with i traced the code for |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
for reference, in case i'm naming things wrong... |
Beta Was this translation helpful? Give feedback.
-
hmmm. i need to get my head around the calibration, maybe i need something more specific anyways... i don't want to hijack my own calibration thread but i don't want in my project i've been working with FP config of 4 bits for the integer portion and 12 bits for the fractional part with the module working with inputs/outputs mapped for 8V to the range (-1, 1) for example, 5V => 0.61751866 => 0000.100111100001 so i need to work out how to do this mapping, which is more than the calibration might provide... the exact way to do this hasn't quite clicked in my brain yet :) |
Beta Was this translation helpful? Give feedback.
-
Hey there @matpalm, sorry for the confusion on the uButton! That is just the name of the extra pushbutton on the iCEbreaker. The logic in The calibration tool is mostly designed to zero out the DC biases present in the CODEC from the factory. If you wish to use a different fixed-point configuration than the standard 4000 counts/volt (i.e 14.2 fixed point mV), then the relevant places to start hacking are probably:
At some point I'd like to clean this up and make it easier to change the fixed-point format globally, but hopefully the above pointers are enough for you to start hacking :) |
Beta Was this translation helpful? Give feedback.
Hey there @matpalm, sorry for the confusion on the uButton! That is just the name of the extra pushbutton on the iCEbreaker. The logic in
top.sv
is a bit convoluted as when we're inOUTPUT_CALIBRATION
mode (define enabled), we disconnectRESET_BUTTON
fromsysmgr_instance
(top-level system PLL reset that resets all state machines) and instead connect it here such that it modifies the output DAC values. Unfortunately the button has to share both functions as on some boards (i.e ICEbreaker) there is only 1 button. So feel free to reassign the button in the top-levellpf
to whichever input works, or even to a pin on a different PMOD. If you don't have a button you could even hard-code the out…