i am using ds80c320 and i am using both serial ports in my application how to use the pooling technique for this application and how its differ with interupt based program.
"i am using both serial ports in my application how to use the pooling technique" Note that's "Polling", not "pooling". Polling two serial ports uses exactly the same principle as polling one serial port - you're just polling two ports instead of one! "Polling" means that you main code keeps checking (or "polling") the status bits to determine when a character has arrived and/or a character has completed transmittion. Keil's standard putchar and getchar library functions use polling. See the C51 Manual for further details. Similarly, an interrupt driven approach could just have two interrupt handlers - one for each port. Look in the downloads section for an interrupt-driven serial IO example.