91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 44KB
    文件類型: .rar
    金幣: 2
    下載: 1 次
    發(fā)布日期: 2021-05-22
  • 語(yǔ)言: 其他
  • 標(biāo)簽: 51??bmp180??

資源簡(jiǎn)介

51單片機(jī)控制bmp180,并通過(guò)串口返回值,程序已調(diào)通,

資源截圖

代碼片段和文件信息

#include?
#include??
#include?
#include?“bmp180.h“
?
?
/*外部接口函數(shù)在BMP180.h中聲明*/
?
/*****************內(nèi)部函數(shù)******************/
static?void?delay5msForBMP180(void) ;
static?void?BMP180StartSignal(void)?;
static?void?BMP180StopSignal(void)?;
static?void?BMP180Acknowledge(void)?;
static?void?BMP180WriteByte(UB8?dataCode)?;
static?UB8??BMP180ReadByte(void)?;
static?SL32?BMP180AddressRead2Byte(UB8?address)?;
static?SL32?BMP180ReadUnsetTemperature(void)?;
static?SL32?BMP180ReadUnsetPressure(void)?;
static?void?BMP180ReadCalibrateParam(BMP180_info?*p)?;
/**********************************************/
?
?
?
/******************************************************
Function :delay5msForBMP180
Input :N/A
Output :N/A
Return :N/A
Description :N/A
Note :由STC-ISP?V6.67軟件針對(duì)相應(yīng)MCU生成若MCU不同
最好也要修改此函數(shù)。
******************************************************/
static?void?delay5msForBMP180(void) //@11.0592MHZ
{
unsigned?char?i?j;
?
_nop_();
_nop_();
i?=?54;
j?=?198;
do
{
while?(--j);
}?while?(--i);
?
}
?
/******************************************************
Function :BMP180StartSignal
Input :N/A
Output :N/A
Return :N/A
Description :BMP180?start?signal
Note :N/A
******************************************************/
static?void?BMP180StartSignal(void)
{
BMP180_sda_bit?=?HIGH_LEVEL?;
//_nop_()?;
BMP180_sclk_bit?=?HIGH_LEVEL?;
//_nop_()?;
BMP180_sda_bit?=?LOW_LEVEL?;
//_nop_();????
}
?
/******************************************************
Function :BMP180StopSignal
Input :N/A
Output :N/A
Return :N/A
Description :BMP180??stop?signal
Note :N/A
******************************************************/
static?void?BMP180StopSignal(void)
{
BMP180_sda_bit?=?LOW_LEVEL?;
//_nop_()?;
BMP180_sclk_bit?=?HIGH_LEVEL?;
//_nop_()?;
BMP180_sda_bit?=?HIGH_LEVEL?;
?
/*BMP180?self?timed?write?cycle?(5ms?max)*/
delay5msForBMP180();
}
?
/******************************************************
Function :BMP180Acknowledge
Input :N/A
Output :N/A
Return :N/A
Description :When?BMP180?receive?a?data?from?mcu??BMP180?write?the?data
to?internal?address?after?completed?write?BMP180?send?a?zero
to?mcuthen?mcu?can?input?data?into?BMP180.
(Once?the?internally?timed?write?cycle?has?started?and?
the?EEPROM?inputs?are?disabled?until?write?finished.)
Note :N/A
******************************************************/
static?void?BMP180Acknowledge(void)
{
UB8?i=0?;
?
BMP180_sclk_bit?=?LOW_LEVEL?;
//_nop_()?;
?
BMP180_sclk_bit?=?HIGH_LEVEL?;
//_nop_()?;
?

while((BMP180_sda_bit)?&&?(i<250))
{
i++;//暫時(shí),具體見(jiàn)調(diào)試
//經(jīng)過(guò)測(cè)試,這里的250足夠大了
}
BMP180_sclk_bit?=?LOW_LEVEL?;
}
?
?
/******************************************************
Function :BMP180WriteByte
Input :the?data?which?is?ready?to?write?to?BMP180
Output :N/A
Return :N/A
Description :N/A
Note :N/A
************************************************

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----

?????文件??????10432??2019-03-24?10:32??sensor?bmp1800+串口接收溫度氣壓\bmp180.c

?????文件???????1994??2019-03-24?10:35??sensor?bmp1800+串口接收溫度氣壓\bmp180.h

?????文件??????19609??2019-03-24?15:51??sensor?bmp1800+串口接收溫度氣壓\bmp180.LST

?????文件??????23089??2019-03-24?15:51??sensor?bmp1800+串口接收溫度氣壓\bmp180.OBJ

?????文件??????????0??2019-03-24?15:47??sensor?bmp1800+串口接收溫度氣壓\bmp1800.build_log.htm

?????文件????????365??2019-03-24?15:51??sensor?bmp1800+串口接收溫度氣壓\bmp1800.plg

?????文件??????72364??2019-03-24?15:50??sensor?bmp1800+串口接收溫度氣壓\bmp1800.uvgui.SASUNG

?????文件??????56764??2019-03-24?15:52??sensor?bmp1800+串口接收溫度氣壓\bmp1800.uvopt

?????文件??????13725??2019-03-24?15:52??sensor?bmp1800+串口接收溫度氣壓\bmp1800.uvproj

?????文件???????6674??2019-03-24?15:50??sensor?bmp1800+串口接收溫度氣壓\bmp1800_uvopt.bak

?????文件??????14335??2019-03-24?15:50??sensor?bmp1800+串口接收溫度氣壓\bmp1800_uvproj.bak

?????文件????????289??2019-03-24?10:33??sensor?bmp1800+串口接收溫度氣壓\common.h

?????文件???????3627??2016-03-10?13:48??sensor?bmp1800+串口接收溫度氣壓\lcd.c

?????文件????????963??2016-03-10?13:48??sensor?bmp1800+串口接收溫度氣壓\lcd.h

?????文件???????7181??2019-03-24?15:51??sensor?bmp1800+串口接收溫度氣壓\lcd.LST

?????文件???????4061??2019-03-24?15:51??sensor?bmp1800+串口接收溫度氣壓\lcd.OBJ

?????文件???????4659??2019-03-24?10:47??sensor?bmp1800+串口接收溫度氣壓\main.c

?????文件???????9247??2019-03-24?15:51??sensor?bmp1800+串口接收溫度氣壓\main.LST

?????文件???????6376??2009-05-07?14:37??sensor?bmp1800+串口接收溫度氣壓\STARTUP.A51

?????文件??????14048??2019-03-24?15:51??sensor?bmp1800+串口接收溫度氣壓\STARTUP.LST

?????文件????????749??2019-03-24?15:51??sensor?bmp1800+串口接收溫度氣壓\STARTUP.OBJ

?????目錄??????????0??2019-03-27?19:51??sensor?bmp1800+串口接收溫度氣壓

-----------?---------??----------?-----??----

???????????????270551????????????????????22


評(píng)論

共有 條評(píng)論

相關(guān)資源