[an error occurred while processing this directive]
[an error occurred while processing this directive]
Используй bdata
(«Телесистемы»: Конференция «Микроконтроллеры и их применение»)
[an error occurred while processing this directive]
[an error occurred while processing this directive]
[an error occurred while processing this directive]
Отправлено
Abc123 13 марта 2002 г. 15:49
В ответ на: А как? отправлено
RadiM 13 марта 2002 г. 14:00
unsigned char bdata X; // А биты в этом байте можно так объявить: sbit X_bit0 = X ^ 0; sbit X_bit1 = X ^ 1;
// явно назначить адрес можно: unsigned char bdata Y _at 0x20; // 0x20 - адрес (константное выражение) sbit Y_bit0 = Y ^ 0; sbit Y_bit1 = Y ^ 1;