ninit() to setup 8051 Serial port for 2-way 9600 Baud, No
Parity, 1 Stop bit
nputchar(char)
// blocks until prev. character sent
nchar getchar()
// blocks until a character is recv’d
nmain()
// calls init() then just echoes whatever is received
forever
nNo need for interrupts but you will need to setup the
serial port, and one of the timers.
nComment your code!
nKeil has a serial window for real I/O with your
code!
nHardware description document is best resource