Forum Discussion
Altera_Forum
Honored Contributor
15 years agoThen, what's the problem? You have to write:
IOWR_ALTERA_AVALON_PIO_DATA(LED_PIO_BASE, led_mask); Examples: IOWR_ALTERA_AVALON_PIO_DATA(LED_PIO_BASE, 0xffff); All LEDs on IOWR_ALTERA_AVALON_PIO_DATA(LED_PIO_BASE, 0); All LEDs off IOWR_ALTERA_AVALON_PIO_DATA(LED_PIO_BASE, 0x0003); Turn on LEDs connected to pio pins 0 and 1, off the others IOWR_ALTERA_AVALON_PIO_DATA(LED_PIO_BASE, 0x050c0); Turn on LEDs connected to pio pins 2,3,8,10, off the others