Project -> new uVision project -> project name and save
Search "Atmel" and inside Atmel select " AT87F51 " and click yes yes...
Inside Taget folder we have Source group
-- Right click on source group
-- Click "Add new item r if u have a file add existing item"
Most important run only one file at a time otherwise you will get error
Always bulid first and check its shows zero errors
-- Then start the debuging (Ctrl + F5)
-- run (F5)
-- Peripherals -> IO port
-- Open Ports that you want
--- Press New(Insert) button Type Port number eg:P0
--- select display type as bit
--- and change colour u want
-- From serial window and select # Uart1