Forum Discussion
BeB
Occasional Contributor
1 year agoWhy overwrite/reset the complete edge register in a PIO ISR?
Hello, Refering to the Nios 2 software handbook (code below), why overwrite *edge_capture_ptr completely and clear the entire edge capture register with IOWR_ALTERA_AVALON_PIO_EDGE_CAP systematical...
tehjingy_Altera
Regular Contributor
1 year agoHi
Do you have any update on this case?
Did you try out the suggested parameters?
Regards
Jingyang
BeB
Occasional Contributor
1 year agoHello,
Sorry for the late reply.
Your suggestion concerns the pio output register, which was not really the matter.
I am trying to understand why the complete variable 'edge_capture_ptr' should be overwritten when reading the edge capture register, and whether information from previous interrupts may be lost because of that.
Thank you!
Bertrand