Forum Discussion
Altera_Forum
Honored Contributor
20 years agohow to set i/O
i have set one i/o pin to bidirectional(tri-state) I/O port,and finished the hardware compile. but in the nios II IDE ,how to set the bidirectional(tri-state) I/O port to out por.what should i wri...
Altera_Forum
Honored Contributor
20 years agohi wbqyy,
The PIO has a direction register where you can define if its a in- or output. For accessing the PIO registers there are some macros from Altera. Take a look at this thread: http://forum.niosforum.com/forum/index.php...pic=2978&hl=pio (http://forum.niosforum.com/forum/index.php?showtopic=2978&hl=pio) regards revolt