Forum Discussion
Altera_Forum
Honored Contributor
14 years agoHmmm... IMHO any code that uses any of the IOWR* defines is inherently unreadable and difficult to maintain.
In this case you are also forcing 3 io/memory cycles when (probably) 2 are needed. I'd also tend to recommend using 'write 1 to set' and 'write 1 to clear' registers for general pio in order to remove the need for read-modify-write cycles on shared resources (save the need to disable interrupts).