my problem is i want to send data to the serial port without using printf, this is because i want to read data of the serial port to use in another application. but using printf takes too long to run as i want my program to run at a speed less than 1mS. any help as soon as possible would be very helpfull??????????
Try putchar and puts. Note that you can modify the implementation of putchar to make your serial I/O buffered and interrupt-driven. - Mike
what i want to do is put a variable "temp" onto the serial port so i can read it from there using labview. its written in C so what code do i use?? putchar(" temp" ??????????????
As Andrew said, see my UART driver, written in C, that writes data to the serial port. All you need to do is "override" putchar() and _getket(). Keil's printf and getchar functions will then use your versions of putchar and _getkey. UART driver at http://www.embeddedfw.com (bottom of page). - Mark
View all questions in Keil forum