Forum Discussion
Altera_Forum
Honored Contributor
14 years ago --- Quote Start --- Look at the "My First NIOS" tutorial that ships with every Terasic board. There is a PIO component used for turning LEDs on/off. Get that working, then modify the design to toggle an I/O with the timing you want. The NIOS tools most likely have a timer software interface; you could use a timer to generate the rising and falling edges, or use two timers, one for each edge. You can then look for a PWM component. I recall there being one with the BeMicro boards, perhaps the BeMicro-SDK, and use that to generate a more accurate pulse. Its not too hard to develop an Avalon custom peripheral, so you could always look at designing your own. If you get stuck ask questions. Cheers, Dave --- Quote End --- thanks. i get the led lightening. but if disconnect usb cable and then reconnect or power it up by dc volt, doesn't it work? i am totally newbie on fpga. maybe some silly questions:confused: