Forum Discussion
Altera_Forum
Honored Contributor
14 years agoTried to display increment. That's what i got.
1. If I put usleep before IOWR_ALTERA_AVALON_PIO_EDGE_CAP(BUTTON_PIO_BASE, 0); it is incremented twice per button push. 2. If I put usleep after clearing function it is incremented once per button push. So i conclude the delay after clearing edge_capture reg is necessary.