Quantcast
Channel: Altera Forums
Viewing all articles
Browse latest Browse all 19390

Read back PIO output status

$
0
0
I have a Qsys PIO component that is 7 bits wide. It is configured as an output (it drives 7 LEDs). I would like to be able to determine which bits of the output are set and which are cleared (or alternatively, what 7-bit data the PIO is outputting).

When I create my BSP project in Eclipse, I get the attached altera_avalon_pio_regs.h. It looks like I should be able to use IORD_ALTERA_AVALON_PIO_DATA(base) to read back the current output state, or one of the macros for reading the set or cleared bits. However, none of them seem to work.
Has anyone tried to do this? Is it possible?
Attached Files

Viewing all articles
Browse latest Browse all 19390

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>