Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

how to set i/O

Altera_Forum
Honored Contributor II
1,037 Views

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!
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
360 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
360 Views

 

--- 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
0 Kudos
Reply