I am trying to use the GPIO of the CPLD on connector J23.
In output mode, everything works fine: I write 0x00 (output mode) to register 720 and I can toggle the GPIO by writing to register 721.
In input mode, I cannot read the GPIO. I write 0xFF to register 720 (all input). Reading register 721 only gives me the value previsouly written to it and not the status of the inputs.
A quick look at the CPLD code did not reveal any obvious problem. Any idea?