I am trying to control the logic analyzer pins, to...
# mpw-2-silicon
p
I am trying to control the logic analyzer pins, to get inputs from the processor. Not sure where I am going wrong, can anyone please give some insights looking at my firmware code?
t
One thing that you're missing is that you need to call
set_registers()
after your call to
gpio_config_io()
. But I'm not sure that makes any difference in what you're doing. So my questions are (1) What happens when you set LA data out [20-24]? Do you expect to see something happen on the analog output pin GPIO[13]? (2) What configuration did you pass to the calibration script?
p
These LA lines straightly goes to gate of multiple PMOS, which is basically current mode DAC that has no of PMOS in parallel for each digital code and in the output I should see some current movement according to the inputs. I just set the pin13 to C_DISABLE. But I am getting 0.3mA of constant current in the output line, which doesn't make sense, because for the other gpio_analog pins that I used when I turned off the buffer the current on the line was in nA.
When I changed LA outputs, I see like barely around 6uA movement which is not what I would expect given the circuit that is layed out, but is there any way to check what output i am getting from those LA pins through some digital communication protocol inbuilt?
t
Are you powering your DAC off of any domain other than
vccd1
? That's the only domain that is connected on the demonstration board without installing a header and jumper.
You can read back the LA values if you routed the outputs back to the inputs, but anyway the LA circuit is pretty simple so I would assume that those are at the right values.
👍 1
p
It is connected to vccd1, not to other power source.
@Tim Edwards, is there anyway I can reduce the Vccd domain less than 1.6V?
t
Are you using the Nucleo board? It has access to the programmable potentiometer connected to the LDO on the development board, and there's a command in the API for setting the voltage. I have used it to set the voltage to 1.4V and it can go lower except everything stops working at about 1.4V.
1