開始學(xué)習(xí)proteus仿真,完成了12864的仿真~供大家學(xué)習(xí)交流
仿真原理圖如下(proteus仿真工程文件可到本帖附件中下載)
51hei.png (36.94 KB, 下載次數(shù): 46)
下載附件
2020-5-9 16:57 上傳
單片機源程序如下:
- #include "delay.h"
- #include "sys.h"
- #include "12864.h"
- #include "led.h"
- #include "usart.h"
- #include "exti.h"
- #include "timer.h"
- #include "bmp.h"
- #include "stm32f10x_tim.h"
- #include "stm32f10x_exti.h"
- #include "stm32f10x.h"
- int i;
- int main(void)
- {
- Init_12864(); //初始化帶字庫12864液晶 ");
- i=5;
- LCD_Send_Data(2,42,i);//42
- LCD_P6x8Str(2,48,".");//48
- LCD_Send_Data(2,54,6);//54
- LCD_P6x8Str(2,0,"BMP180:");
- LCD_P6x8Str(3,0,"MQ-2 :");
- while(1)
- {
- long UT,UP;
- IIC_Init();
- IIC_Init1();
- UT = Get_BMP180UT();
- UP = Get_BMP180UP();
- LCD_Send_Data(5,0,UP);//54
- LCD_Send_Data(4,0,UT);//54
- }
- }
復(fù)制代碼
所有資料51hei提供下載:
仿真工程.rar
(296.07 KB, 下載次數(shù): 55)
2020-5-9 15:15 上傳
點擊文件名下載附件
Project_1.7z
(413.49 KB, 下載次數(shù): 53)
2020-5-9 16:58 上傳
點擊文件名下載附件
|