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++
12599 Discussions

How to read previously written data

Altera_Forum
Honored Contributor II
998 Views

Hello, 

 

I'm using the DE2 board. I want to write and read from a one bit port. I built my hardware in Quartus and did the software programming using NIOS II IDE. Using a biredictional port enables me to write and read but not read the previously written data. 

I would like to know how to read my previously written data from the same one bit port. 

 

Thanks.
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
286 Views

 

--- Quote Start ---  

originally posted by kofinator@Mar 20 2007, 12:26 PM 

hello, 

 

i'm using the de2 board. i want to write and read from a one bit port. i built my hardware in quartus and did the software programming using nios ii ide. using a biredictional port enables me to write and read but not read the previously written data. 

i would like to know how to read my previously written data from the same one bit port. 

 

thanks. 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=22366) 

--- quote end ---  

 

--- Quote End ---  

 

 

I guess you are using the PIO component in bidirectional mode? Usually a port itself does not hold signals. Therefore, if there is no other components connecting to the port to store the data you wrote, the data will get lost when the write operation is ended. So when you read it later, you cannot get the previously written data.  

 

Or if you already have something connected there, could you post a little more details about your system ? Thanks.
0 Kudos
Reply