Content originally posted in LPCWare by Pacman on Tue Oct 23 10:59:01 MST 2012
@Alex: Usually, I would write the value directly to the port, rather than using SET/CLR, because I'd output a bytestream instead of single bits.
I know this is not my thread, but rocketdawg, you gave me valuable information. Thank you! :)
Now I know that I can go crazy on the GPIO pins. =)
@rocketdawg: There will always be something you can use a quick toggle for, even though it doesn't seem to make sense at first. Someone (Igor Češko) made a bit-bang ethernet on an 8-bit 20MHz chip's I/O pins by toggling them alone. Anyway, toggling a LED at that speed.. *that* would make no sense. ;)