Jesal, Tst5 = (myCap->ECEFLG) & 0x00FF; The line above should correctly mask myCap.ECEFLG to only show the lower 8 bits. This makes me suspect that myCap->ECEFLG isn't referenced correctly. Can you try something even more simple like the following and see if the correct value can be found in "TstStructAccess". TstStructAccess = myCap->ECEFLG; Tst5 = (myCap->ECEFLG) & 0x00FF; If you cannot see the correct value then you need to check your pointers, references, and de-references. Regards, Cody
↧