• 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; ...
  • problem with bdata of type char
    iam getting syntax errors whiel accessing bdata chat buff[10] i wrote the code as below to acces the array char bdata buff[10]; sbit mybit4; unsigned int i=0; for(i=0;i<=10;i++) { mybit4 ...