Thanks Brian, What you say makes sense, that the compiler would ignore the 2nd,3d statements(96,97) accept that the P8 bit 1 came in as a 1 and was never changed to 0 by line 95! I'I will add the volatile in the macro and work in Debug mode.
↧