This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Configuration of P1 versus INT0 !

I want to use the external interupt pin 0.
So I configured the Port 1 like this :
// 3 IRQ : Input Only.

	P1M1 = 0X7E;
	P1M2 = 0x81;
But when debugging, the checkboxes in P1 window are greied for P1.2 and P1.3. All these bits are set. So it gives P1.3 in pull-down mode :
P1M1 = 0X7E;
P1M2 = 0xAD;
It's not the mode I wanted !
Is there an option somewhere that inhibits these checkboxes ?
How could I make the INT0 to be effective ?
Thanks.

  • interupt pin 0. ... Port 1 ....
    P1M1 = 0X7E;
    P1M2 = 0x81;
    ... greied ????

    your message makes absolutely no sense. Maybe it would, if you mentined which derivative you are using.

    Erik

  • Excuse me !

    I forgot to say :
    I'm developing on uVision for the Philips P89LPC932.
    I wanted to write :
    I want to use the external interupt INT0 on pin P1.3. ...
    While debugging, you usually can change the I/O port mode and it's value.
    But in my case, the P1.2 and P1.3 port mode checkboxes are inhibited.
    That's my problem. Usually Interupt pins are supposed to be inputs.
    Thanks again.