Hi, I need to set pins 6, 7 and 0 as outputs on port1 of the lpc932. Pins 5, 4, 3, 2 and 1 will be inputs. Below is the configuration I have done, but for some reason pin 3 which is the INT0 is not high (input) as it should be. can you please check my configuration below. I read the data sheet and user manual, and I do not think I need an external pull up resistor do I? P1M1 = 0x08; // Push-pull all except rst, int0, int1, and RX P1M2 = 0xC1;
you set the pin to input which leave the pin floating, if you want to see it high, you must set it to quasi-bidirectional Erik
Got it Erik. Thanks
Erik, can I configure pin 3 on port 1 quasi-bid-irectional and then make it high, so that it looks as an input? The datasheets say can be input-only or Open Drain.
quasi-bidirectional is the standard/old fashioned '51 port config. refer to "the bible" for info. Erik