• can't read sbuf on debug
    Hi, how can I read SBUF while debugging? R_serial () interrupt 4 { if(RI) { serialR = SBUF; RI=0; CompDataRx[count]=serialR; count++; } else TI = 0; } when I put any value in SBUF...
  • can't assign a value to SBUF in simulator
    hello every body i have a problem when i use debugger i assign a value to sbuf but i can't get that?!?!? it seems that i can't simulate serial recieve?!?! plz help me :(
  • Why can't I read SBUF?
    The code is like this: #include <reg51.h> void main() { unsigned char ch; SBUF = 0xcc; ch = SBUF ; } I found that the value in ch is always zero,however, when I substituated SBUF with other...
  • Busy flag of AT89C51ED2 is not getting cleared!!!
    Hi Keil, I have written the follwing code for writing the byte in EEPROM in ED2. The Problem is BUSY flag is not being cleared. while(!(EECON & 0x01)) ; EA = 0; EECON |= 0x02; XBYTE[0X0055...
  • In Simulatormode ENDRX Flag is not correctly set
    I'm working with uV3 and AT91SAM7S256. After configuring the PDC and USART0 in this way: AT91F_PDC_SetRx( (AT91PS_PDC) &(pUSART->US_RPR), RxBuf0, 5); AT91F_PDC_SetNextRx( (AT91PS_PDC) &(pUSART-...