Forum Discussion
Altera_Forum
Honored Contributor
16 years agoPIO set and clear bits
Hi! I am using a Nios II in my Cyclone II FPGA. I configured the Nios with a 18bit output-PIO. When i use the macro IOWR_ALTERA_AVALON_PIO_DATA() i can easily turn my leds on and off. Looking ...
Altera_Forum
Honored Contributor
16 years agoHi Chris!
Ok, i checked this my system.h file: Before enabling "Enable individual bit setting/clearing" ==># define PIO_0_BIT_MODIFYING_OUTPUT_REGISTER 0 Now after enabling "Enable individual bit setting/clearing" ==># define PIO_0_BIT_MODIFYING_OUTPUT_REGISTER 1 So the registers for setting and clearing the pio should be there... > Did you try to set/clear a single bit instead of the complete 18bit pio? Yes, i also tried this but it did not have any effect. FredFlintstone