• DJNZ instruction running simulator of DScope doesn't work properly
    Observing action single stepping through below code segment reveals that DJNZ instruction in div_loop doesn't decrement R6. On first loop execution it adds 16. The next loop through decrements. Susequent...
  • DJNZ instruction running simulator of DScope doesn't work properly
    Observing action single stepping through below code segment reveals that DJNZ instruction in div_loop doesn't decrement R6. On first loop execution it adds 16. The next loop through decrements. Susequent...
  • How can I get an efficient loop?
    I have written the following code to perform a copy procedure between RAM and FLASH Memory: unsigned char i; i = 0x00; do{ i --; *(&FLASHADDRESS + j + i) = DataBuffer[i]; }while(i != 0x00...
  • How can I get an efficient loop?
    I have written the following code to perform a copy procedure between RAM and FLASH Memory: unsigned char i; i = 0x00; do{ i --; *(&FLASHADDRESS + j + i) = DataBuffer[i]; }while(i != 0x00...
  • Delay Loop in C51
    Dear Friends, How to create a delay loop in C51.Say for example I need a delay loop for 35mS.How to do this.I tried a code taken from this forum.It is void delay(void) { unsigned long msdl; msdl...