Forum Discussion
Altera_Forum
Honored Contributor
14 years agobasic question
Hi, Well it looks very stupid question for many people, but I am new to nios. I have used count binary templet to test my board and it is working fine.I can see the leds blinking and I can see the...
Altera_Forum
Honored Contributor
14 years agoHi,
once you got the getchar() working, the rest is about c programming. About PIO's, I assume you already have a PIO component on your system (from the SOPC Library\peripherals\Microcontroller Peripherals), then you would just be writing on its base address and the PIOs would take the binary value of what you write. A good doc to start with if you still didn't look at: http://www.altera.com/literature/tt/tt_my_first_nios_sw.pdf (http://www.altera.com/literature/tt/tt_my_first_nios_sw.pdf)