第一步:新建工程
點擊【project】----點擊【new project】
1、起名稱,選擇保存路徑
2、選擇單片機型號【Atmel】----【at89c51】
第二步:新建文件
點擊【file】----點擊【new】
1、起名稱.c
2、選擇保存路徑
第三步:文件添加到工程
右擊【source group1】----選擇【add files to group ‘source grpup1’】
第四步:設置工程屬性
點擊【project】----選擇【options for group ‘source group1’】
1、改寫晶振的頻率(根據電路板實際晶振的頻率)【Target】----【Xtal】
2、選擇產生hex文件【output】----【create hex file】
第五步:編寫程序
改變程序編輯器界面的方法,點擊【view】----選擇【options】---
點擊【colors&fonts】標籤---選擇【editor c files】
第六步:編譯文件
點擊【project】----選擇【options Rebuild all target files】
第七步:下載hex文件到單片機
1、打開燒錄軟件(STC-ISP軟件)
2、選擇單片機型號
3、選擇要下載的hex文件
4、設置通信端口(comx)
5、點擊【下載/編程】按鈕