• Asm bit banding macro
    Good day. I try to create asm bit bannding macro. it's only macro and invocation code: MACRO ;macro definition sram_bit_band_set $p1,$p2 LDR R4,=0x22000000+p1*32+4*p2 MOV R5,#1 STR R5,[R4]...
  • Asm bit banding macro
    Good day. I try to create asm bit bannding macro. it's only macro and invocation code: MACRO ;macro definition sram_bit_band_set $p1,$p2 LDR R4,=0x22000000+p1*32+4*p2 MOV R5,#1 STR R5,[R4]...
  • Avoiding macro using 32 bits shift warning
    Hi, I use below macro #define SFRX(Sfr,Msk) (Sfr=((Sfr & (~ ((Msk)>>8)) ) |(Msk))) to simply both Set and Reset specified bits in some register. If I write SFRX ( MyReg , 0x0100 ) this macro...
  • Avoiding macro using 32 bits shift warning
    Hi, I use below macro #define SFRX(Sfr,Msk) (Sfr=((Sfr & (~ ((Msk)>>8)) ) |(Msk))) to simply both Set and Reset specified bits in some register. If I write SFRX ( MyReg , 0x0100 ) this macro...
  • 64 Bits integer numbers
    How can we manage a 64 bits integer number to convert it to ASCCII value for LCD display. Does SPRINTF work with 'double' data type reguards.