What is Program?
A program is a set of instructions for a computer to perform a specific task.A program can be write in any high level language like c, c++, Java, VB.net and so on. Even it can be write in assembly language (intermediate language).
In Embedded System program mainly write in 'C' Language. If u good in 'C' language, Embedded system programing is so easy.
Here i assuming reader's have some basic knowledge in 'C' Programing.
How control IO pins?
In p89v51RD2 micro-controller has 32 IO pins are available.