Forum Discussion
12 Replies
- Altera_Forum
Honored Contributor
--- Quote Start --- int main(void) { int buttons; MenuHeader(); while (1) { buttons = IORD_ALTERA_AVALON_PIO_DATA(BUTTON_PIO_BASE); IOWR_ALTERA_AVALON_PIO_DATA(PIO_BASE,0x08); IOWR_ALTERA_AVALON_PIO_DATA(LED_PIO_BASE,buttons); } return (0); } --- Quote End --- My Nios'code: PIO_BASE is the hsmc output. - Altera_Forum
Honored Contributor
Check that you assigned the ports to the correct FPGA pins on the pin planner.
You can also use a signaltap probe on the ports that you added to check if you are setting them to the correct value. From the code that you posted. it seems that you do.