Altera_Forum
Honored Contributor
21 years agoDirect access to pins
Hello you all! http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif
I've just begun playing with Nios Development Kit - Cyclone Edition. I'm using the count binary tutorial to do my tests. Now I would like to generate a square wave on a pin on J11; let's say pin 39, connected to pin PIN_J16 of the 1c20. I think I've to do the following steps: 1. in sopc builder, I've to add a new PIO module. 2. in the bdf, I bind the pio output to pin j16 3. in the software, I've to write something to set and reset the pin. Are these steps correct? And about step 3, how do I set and reset the pin in C? Thanks in advance! My regards, Marco Lazzaroni