Altera_Forum
Honored Contributor
13 years agoIORD 11.0 vs IORD 9.1
Hello,
int main()
{
int i;
while(1)
{
i = IORD_ALTERA_AVALON_PIO_EDGE_CAP(BUTTON_BASE);
printf("PIO EDGE CAP: %d\n", i);
IOWR_ALTERA_AVALON_PIO_EDGE_CAP(BUTTON_BASE, 0x0);
usleep(1000000);
}
} BUTTON is a 4-bit PIO in my SOPC. If I run this code with Nios II 9.1 I read: PIO EDGE CAP: 0 If I press BUTTON[0] I read: PIO EDGE CAP: 1 .. If I press BUTTON[3] I read: PIO EDGE CAP: 8 Now: If I run the same code with Nios II 11.0 I read: PIO EDGE CAP: 512 If I press BUTTON[0] I read: PIO EDGE CAP: 513 .. If I press BUTTON[3] I read: PIO EDGE CAP: 520 What does it means?