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 write in the programme? thanks!2 Replies
- Altera_Forum
Honored Contributor
hi 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 - Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by wbqyy@Dec 14 2005, 08:12 PM 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 write in the programme?
thanks!
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=11542)
--- quote end ---
--- Quote End --- thanks but i still have a few question ihave write it with a new topic