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

Problem with pin port

Hello

I have a problem with my code.

I have configured P2_P8 how fast interruption. When I create a button in keil debugger I don't have any problem

define button "ppoAvisoAI",		"PORT2 |=0x0100"


Then when I click this button the fast interruption run. But if I put in my code:

P2_P8 = 1;

Then nothing happend even if I read this pin

if (P2_P8 == 1) {
//my code
} else {
// another code
}

my code is not executed, but another code yes.

Why is it? What can I do?

Thanks.

0