Hi, I am looking for examples in programming the 2nd serial interface.I get data on ser0 and have to send it to ser1. Who can help me???
Search the Keil support site - there's certainly a C51 interrupt-driven example there!
Since polled I/O consumes too much of the processor's computing power, can I find some example using buffered interrupt instead?
Take a look at the following knowledgebase article. http://www.keil.com/support/docs/788.htm Jon
You need to write your own copy of getkey, and putchar to redirect the printf to the desired I/O port. The c166 toolchain includes a sample for you to modify. By the way they are polled I/O.
You will need to rewrite putchar() to use the other port. It's in putchar.c - surprise! See Chapter 6, "Advanced Programming Techniques" in the manual. Similarly getkey() for input
View all questions in Keil forum