Forum Discussion
Altera_Forum
Honored Contributor
15 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 bu...
Altera_Forum
Honored Contributor
15 years agoIn my Verilog module in quartus 2 i already have 2 output(ledr and ledg), with the right pin assignment, but in my application how can i manage the second LED?
to make them blink i wrote:IOWR_ALTERA_AVALON_PIO_DATA(LED_PIO_BASE, 1);
usleep(500000);
IOWR_ALTERA_AVALON_PIO_DATA(LED_POI_BASE, 0);Edit: my verilog module is:
module test(clk,rst,button,ledr,ledg);
input clk,rst,button;
output ledg,ledr;
nios2 test_nios (clk,rst,button,ledg,ledr);
endmodule