Altera_Forum
Honored Contributor
14 years ago2 Leds -> how many PIO?
Hi all,
I'm writing a simple program on interrupt behaviour, with an interval timer (that generate timer interrupt and its handler make a ledg blink) and an hardware interrupt generated by a button... All works fine, but i'd like to have another led(ledr) blink in my hardware interrupt handler.(now its function is to make the ledg blink faster) To do that my system has a 2 bit PIO(output) but I don't understand how to manage the second led... my question is: I had to use 2 different PIO(1 bit) instead of 1 PIO (2 bit)? or even if i have only one PIO i can manage 2 led? How can I do that?