Altera_Forum
Honored Contributor
13 years agoReading Input Pin
Hi, I want to read a signal from a PIN.
Everything ist fine I built it up in the SOPC Builder and declare a 8bit for Input. I chose 8Pins in Quartus and everything wotks fine. I can write Output to other Pins and it works also fine. But now I want to read a Pin if it 1 or 0. int in = IORD_ALTERA_AVALON_PIO_DATA(PIO_IN_BASE); printf("%i\n",in); Always they console print me 255. It doesen´t matter which PIN is on 3,3V from the Board. What I do wrong?? thx everybody for help.