• union, bit field and bdata
    I want to fix (in C langage if possible) in bdata memory a word (u16). At the same address I want to use 2 bytes (u08) and always in the same area (0x20 and 0x21 addresses for example) to declare bits...
  • bdata problem
    can any one solve this #include <AT89X51.H> #include<stdio.h> bdata unsigned int a; sbit lsb=a^0; sbit msb=a^7; bit i; void main() { a=0xaa; while(1) { i=lsb; a=a>>1; msb=i; a^7=msb;...
  • Initialize bit variable when using (bdata + sbit) ?
    I have one question about bit variable initialization. Before I used below simple way to initialize bit vars: Ex. bit bvar_0=0;bit bvar_1=1; bit bvar_2=1;bit bvar_3=1; bit bvar_4=1;bit bvar_5...
  • bitfields in bdata behaviour
    Hello, If a bdata variable is defined in the form: struct foo { unsigned char b1:1; unsigned char b2:1; unsigned char b3:1; unsigned char b4:1; unsigned char b5:1; unsigned char b6:1; ...
  • Question with bdata declaration
    DATA 0020H 000BH BIT_ADDR ?BA?XXACT_H BIT 002BH.0 0000H.1 UNIT _BIT_GROUP_ 002BH.1 0000H.7 *** GAP *** IDATA 002CH 000FH UNIT ?ID?XXACT_H 003BH 002DH *** GAP *** So from what i know Bdata start...