[an error occurred while processing this directive] [an error occurred while processing this directive]
Ответ: You should declare it before manipulating
(«Телесистемы»: Конференция «Микроконтроллеры и их применение»)
[an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive]

Отправлено Mihasic 08 января 2002 г. 21:22
В ответ на: Keil C51(bit access) отправлено AlexM 08 января 2002 г. 21:12

The compiler understood you correctly - according to the C language. Bit manipulation is Keil specific, that is why one should follow what they invented. The following code will work:

unsigned char bdata char_var;
sbit bit_var2 = char_var^2;
...
P1_1 = bit_var2;
...

Regards,
Mihasic.

Составить ответ  |||  Конференция  |||  Архив

Ответы



Перейти к списку ответов  |||  Конференция  |||  Архив  |||  Главная страница  |||  Содержание  |||  Без кадра

E-mail: info@telesys.ru