Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
12 years ago

Problem Cyclone III

hi to all,

I use Cyclone III starter board I downloaded the instalation kit for this board , i tried with the standard project and does it work , later I copy this code [1] to eclipse and works also.

I tried to light the other LEDs and used the buttons I have not found the solution.

I await your solutions if you have documents can help me (tutorials) ^^,

Thank you in advance :)

Code [1]:# include <stdio.h># include "system.h"# include "altera_avalon_pio_regs.h"

int main()

{

printf("Hello from Nios II!\n");

int count = 0;

int delay;

while(1)

{

IOWR_ALTERA_AVALON_PIO_DATA(LED_PIO_BASE, count & 0x01);

delay = 0;

while(delay < 2000000)

{

delay++;

}

count++;

}

return 0;

}
No RepliesBe the first to reply