• Return Statements inside Case Statements
    I encountered a wierd runtime error after compiling and running the following statement: FuncCall(unsigned char casenum) { switch (casenum) { case 0x00: return 0x0100; default: return 0x1000;...
  • Return Statements inside Case Statements
    I encountered a wierd runtime error after compiling and running the following statement: FuncCall(unsigned char casenum) { switch (casenum) { case 0x00: return 0x0100; default: return 0x1000;...
  • printf statement not working after putchar statement is used.
    Hi All I am using following putchar routine. void srl_putchar(unsigned char send) { SBUF = send; while (!TI); TI = 0; } after using above routine to transfer a character via serial port i continued...
  • printf statement not working after putchar statement is used.
    Hi All I am using following putchar routine. void srl_putchar(unsigned char send) { SBUF = send; while (!TI); TI = 0; } after using above routine to transfer a character via serial port i continued...
  • Scanf statement
    Hi all, I am trying to get an integer number as input through serial window.To do that I wrote the program below and it didnt work.The problem is with Scanf.Is it correct to give scanf the way that...