Forum Discussion
Altera_Forum
Honored Contributor
14 years agoPIO Direction
hi all, I am using bidirectional pio for my design.Can some one tell me how to set the directions. I am using IOWR_ALTERA_AVALON_PIO_DIRECTION(PIO_DATA_BASE, 0); for using pio as output...
Altera_Forum
Honored Contributor
14 years agoActually they are inverted: 0 is for input and 1 for output.
Moreover this is correct only for single I/O pio: if your pio is wider, you need to set all the required bits. Last thing you need to check is if you enabled the bidirecitonal feature in sopc/Qsys pio properties