Content originally posted in LPCWare by raimond on Mon Mar 08 11:50:31 MST 2010
As I said, the pins are configured as GPIO (PINSEL bits are 00 = GPIO).
Anyway, this is the default after reset, but I double checked, displaying this info too on my LCD.
Anyway, it's weird because I write bits on the DIR register, but when I read the DIR back, the bits are zero... This have nothing to do with the PINSEL functions... Seems that the DIR bits are hard wired to zero...
Can this be a bug? :(
By the way, P0.16 is SSEL0, and it works ok if I set it with the SSEL0 function. But if I want to use it as GPIO...
Raimond