First of all you have to download the Keil uVision. After Downloading & installing it. Open this software. Now go to Project -- New uVision Project... then name your project and save it. Next you have to select your device that you're going to program. Simply type 8052 in search engine and select Generic -- 8052(all Variants) and hit ok. See image. Then click No. After this you will see that your project is created successfully. It's time to add the code file that control the on board LED with on board push Button. To create a new file go to File -- New... and just write your code in the editor. See the code image. Don't worry i will share all the source file.
- Development Board FTDI Programmer
- P3.0 TX
- P3.1 RX
- GND GND
- Vcc(Via switch) Vcc
For uploading we need STC-ISP software. You can download the software from the company website or Download from here (All the source File available in zip). Uploading HEX file is simple. Open your STC-ISP software. Then select the COM Port where your FTDI programmer is connected. And click Check MCU. wait... Before clicking the Check MCU button, make sure that power switch is off. It's time to turn ON the power. When you turn ON the power it will find your MCU if all the connections are ok. Select the HEX file you want to upload by clicking Open Code File. Make sure Power Switch is OFF. Then click Download/Program. And turn ON Power.