Perhaps someone can tell me why the line "while(EE_busy & 0x01);" is not compiled? volatile UINT8 EE_busy; EE_busy = 0x01; do EE_busy = hs_NvmRDSR(); while(EE_busy & 0x01); Thanks Rich
You should probably post the assembly for the output from the code generator. (By "not compiled" I assume you mean the code isn't correct? Or you mean that there is a compiler error generated on this line?) The initialization in the first line is redundant, since the do will always execute at least once and promptly overwrite the value set outside the loop.