【Proteus學(xué)習(xí)之路】序列之9:LCD1602仿真
本節(jié)我們主要是從下面3個方面進(jìn)行講解:
本文引用地址:http://www.ex-cimer.com/article/281009.htm1.硬件環(huán)境搭建
2.軟件編寫
3.聯(lián)調(diào)
一、硬件環(huán)境搭建
1.先打開Proteus8.1。如下圖所示:

2.打開Proteus仿真界面。如下圖所示:

3.找到所需要的電子元器件。如下圖所示:

4.把元器件布局好仿真界面上。如下圖所示:

5.按照自己的想法設(shè)計(jì)電路。如下圖所示:

二、軟件編寫
1.打開keil軟件,然后建立工程,如下圖所示:

2.主程序部分。如下圖所示:

3.LCD1602驅(qū)動——頭文件部分



4.LCD1602驅(qū)動——源函數(shù)部分











三、聯(lián)調(diào)
1.先用keil生成hex文件。如下圖所示:

2.把hex文件加載到Proteus仿真的單片機(jī)中。如下圖所示:

3.最后點(diǎn)擊運(yùn)行,看看是否通過。如下圖所示:


評論