We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi, This is my program. int a = 0x0A; printf("%c",a); Why is it that the output from the serial port is 0x0D and 0x0A instead of just 0x0A itself? Thanks..
Well, there are several ways to overcome this problem... 1. Go to a Keil training class. There, they teach how to do stuff like that plus a whole lot more. 2. Hire a consultant. There are many good to great consultants on this forum who would be more than happy to consult for you. 3. Take a look in the manuals to find out how to configure printf for your needs. Then, look at the putchar.c file in the lib directory. Jon
Hi, Anyone will like to help me with this problem. I don't understand the putchar.c file. Thanks..
Using serial port,what about writing yourself function uchar putchar(uchar ch) { while (!TI) ; TI = 0; SBUF = ch; }