• problem about putchar and puts functions
    I have a sub void init() { PCON |= 0x80; TMOD |= 0x20; SCON=0x52; TH1=0xF3; TR1=1 } void main() { init(); while(1) { } } I see no reason why when I call init() it automatic send two bytes...
  • problem about putchar and puts functions
    I have a sub void init() { PCON |= 0x80; TMOD |= 0x20; SCON=0x52; TH1=0xF3; TR1=1 } void main() { init(); while(1) { } } I see no reason why when I call init() it automatic send two bytes...
  • putchar and getchar
    i have read Mark Odell's UART driver. However,the code size is too large for me. can i just using the simple function call: char x,y; getchar(y); //get char from urat x=y; putchar(x); //put...
  • pfintf and putchar
    Dear Colleagues, I want to work with printf and putchar but I have not had luck. Anybody can help me what is wrong on the below code. I am trying to prove the two functions printf and putchar wiht the...
  • putchar and getchar
    i have read Mark Odell's UART driver. However,the code size is too large for me. can i just using the simple function call: char x,y; getchar(y); //get char from urat x=y; putchar(x); //put...