Forum Discussion
Altera_Forum
Honored Contributor
14 years agoNIOS II PIO Data read problem
Hi All. I have some problems with data processing, based on NIOS core. My FPGA project includes external interface, strobe line (NIOS Internal interrupt or just Flag), 8 bit data input port and FI...
Altera_Forum
Honored Contributor
14 years agoFirst of all you must write ones, not zero, into edge capture register to reset status:
IOWR_ALTERA_AVALON_PIO_EDGE_CAP(STROBE_BASE, 1) Anyway this seems to be irrelevant, unless you are using edge capture in another part of the code. I guess your problem is that you can't get the correct pio status in 'data', isn't it? This can be simply due to bad timing relative to strobe signal.