[an error occurred while processing this directive]
|
#include
#includeconst unsigned char AA = 0x06;
#if (AA == 0x06)
#define AA_COPY 0x06
#else
#define AA_COPY 0xFF
#endifunsigned char cc;
//
void main()
{
while(1)
{
if (AA_COPY == 0x06)
cc = 6;
else
cc = 0xFF;
__delay_cycles(10000);
}
}
Результат, получаемый в симуляторе: cc = 0xFF (!!!)
E-mail: info@telesys.ru