Hi,Yasser

First , In the title , understand we do not know at all what you did ( hardware ) nor what you wrote ( software ) ... and there are no "crystal ball" option on this forum ...

For the car ... " did you insert the key ??? " is a first question to consider ...


...

There's a funny thing in this feature ... the "end of mismatch" condition.

I think there were ( numerous ) threads about that on this forum. ( a SEARCH will be useful ...)

... in a word, you have to READ PortB in your interrupt stubb to get it that interrupt working properly ( see examples given ...)

BUT, as always ... only knowing which processor and compiler ... leaves NUMEROUS non-working reasons ...

Alain