Christoph Weiser
06/23/2023, 7:44 AMTim Edwards
06/23/2023, 7:55 PMChristoph Weiser
06/24/2023, 9:02 AMChristoph Weiser
06/24/2023, 12:34 PM#include "../defs.h"
#include "../gpio_config/gpio_config_io.c"
void main() {
reg_mprj_io_31 = GPIO_MODE_MGMT_STD_BIDIRECTIONAL;
gpio_config_io();
reg_mprj_io_31 = GPIO_MODE_MGMT_STD_OUTPUT;
int i;
while (true)
{
for (i=0;i<=10;i++)
{
reg_mprj_datal = (reg_mprj_datal | 0x80000000);
delay(10000);
reg_mprj_datal = (reg_mprj_datal & ~0x80000000);
delay(10000);
}
delay(1000000);
}
}
Tim Edwards
06/25/2023, 12:38 AMC_MGMT_OUT
will work. Because disabling the input requires an isolated "1" bit, it's impossible to get a working configuration past an independent hold violation, so the C_MGMT_OUT
has been redefined as bidirectional (both output and input buffers on). In this case, it's exactly what you want.