Some trouble with I/O port
Examples may help: http://www.keil.com/download/list/c51.htm
View all questions in Keil forum