This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

why the serial window gets nothing ?

In debug mode , why the serial window gets nothing output?
Thank You

#include <at89x51.h>
#include <stdio.h>
void main(void)
{
SCON = 0x50;
TMOD = 0x20;
TCON = 0x40;
TH1 = 0xE8;
TL1 = 0xE8;
T1 = 1;
TR1 = 1;
while(1)
{
printf("Hello World\n");
}
}

Parents
  • Hi Frank,

    I not experienced with 8-bit, but for 16-bit
    processors you have to set transmit interrupt request flag for ASC to get
    printf() to work. For me this works.

     ASC0_TIC_IR=1;
    Additional you have to include
    <stdio.h>
    and
    <ctype.h>

    Hope this helps

Reply
  • Hi Frank,

    I not experienced with 8-bit, but for 16-bit
    processors you have to set transmit interrupt request flag for ASC to get
    printf() to work. For me this works.

     ASC0_TIC_IR=1;
    Additional you have to include
    <stdio.h>
    and
    <ctype.h>

    Hope this helps

Children