If i want to access the output of my user project ...
# mpw-3-silicon
c
If i want to access the output of my user project through IO, what should i write to the "reg_mprj_io" registers. It can be "GPIO_MODE_MGMT_STD_OUTPUT" or "GPIO_MODE_USER_STD_OUTPUT". I believe its the later, but I would like confirmation.
a
for MPW-3 chips you'll need to use the flow documented in the README
where you run the program to find which pins have dependent hold violations, then create a python file with your GPIO configs, then use that as part of your build
c
Ok, yes i have done this and generated the gpio_config_def.py.
a
ah
so now you'll want to create a gpio_config_io.py
take a look at the
gpio_test
project in the repo as an example
image.png
its smth like this
c
Ahh ok yes you are right.
And here i can simply set the relevant gpios to "C_USER_OUT" to access the user project is that right?
a
yep!
what's your project? there's a few other quirks that you may run into
for certain pins, you may have a weak drive strength
c
its slot_038 the sar adc.
a
ooh i see
do you have some analog pins then
c
Yes that is correct.
a
i see
if you're running at lowish speeds you should be fine, but at higher speeds the drive strength on the digital outputs will lead to not-very-sharp edges
c
Yes i saw your discussion in the other thread regarding this issue.
👍 1
Thanks again, you have been very helpful!
a
np!