-
大小: 71KB文件類型: .rar金幣: 2下載: 1 次發布日期: 2021-01-06
- 語言: 其他
- 標簽: msp430f5529??
資源簡介
基于msp430f5529的超聲波測距,帶有lcd1602的xian'shi
代碼片段和文件信息
#include?
#define?CPU_F?((double)8000000)
#define?delay_us(x)?__delay_cycles((long)(CPU_F*(double)x/1000000.0))
#define?delay_ms(x)?__delay_cycles((long)(CPU_F*(double)x/1000.0))
#define?DataDir?????P3DIR
#define?DataPort????P3OUT
#define?Busy????????0x80
#define?CtrlDir?????P1DIR
#define?CLR_RS?P1OUT&=~BIT3;????//RS?=?P1.3
#define?SET_RS?P1OUT|=BIT3;
#define?CLR_RW?P1OUT&=~BIT4;????//RW?=?P1.4
#define?SET_RW?P1OUT|=BIT4;
#define?CLR_EN?P1OUT&=~BIT5;????//EN?=?P1.5
#define?SET_EN?P1OUT|=BIT5;
void?Read_Busy()???????????//忙檢測函數,判斷bit7是0,允許執行;1禁止
{
????unsigned?char?sta;??????//
????DataDir??=?0x00;
????CLR_RS;
????SET_RW;
????do
????{
????????SET_EN;
????????__no_operation();
????????sta?=?DataPort;
????????CLR_EN;????//使能,用完就拉低,釋放總線
????}while(sta?&?0x
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????612??2018-07-10?21:37??chaoshengbo\.ccsproject
?????文件??????28726??2018-07-10?21:37??chaoshengbo\.cproject
?????文件???????4939??2018-07-11?09:42??chaoshengbo\.launches\chaoshengbo.launch
?????文件????????841??2018-07-10?21:37??chaoshengbo\.project
?????文件?????????62??2018-07-10?21:37??chaoshengbo\.settings\org.eclipse.cdt.codan.core.prefs
?????文件????????123??2018-07-10?21:37??chaoshengbo\.settings\org.eclipse.cdt.debug.core.prefs
?????文件????????208??2018-07-10?22:55??chaoshengbo\.settings\org.eclipse.core.resources.prefs
?????文件???????2411??2018-07-11?21:54??chaoshengbo\Clcd.c
?????文件????????699??2018-07-11?20:23??chaoshengbo\Clcd.h
?????文件?????????72??2018-07-12?21:49??chaoshengbo\Debug\ccsObjs.opt
?????文件?????107506??2018-07-12?10:36??chaoshengbo\Debug\chaoshengbo.map
?????文件??????89360??2018-07-12?10:36??chaoshengbo\Debug\chaoshengbo.out
?????文件?????301752??2018-07-12?10:36??chaoshengbo\Debug\chaoshengbo_li
?????文件????????853??2018-07-11?21:54??chaoshengbo\Debug\Clcd.d
?????文件??????15724??2018-07-11?21:54??chaoshengbo\Debug\Clcd.obj
?????文件????????939??2018-07-11?12:42??chaoshengbo\Debug\csb.d
?????文件???????1509??2018-07-12?10:36??chaoshengbo\Debug\main.d
?????文件??????23024??2018-07-12?10:36??chaoshengbo\Debug\main.obj
?????文件???????4494??2018-07-12?21:49??chaoshengbo\Debug\makefile
?????文件????????260??2018-07-11?08:40??chaoshengbo\Debug\ob
?????文件???????2073??2018-07-12?21:49??chaoshengbo\Debug\sources.mk
?????文件???????1848??2018-07-12?21:49??chaoshengbo\Debug\subdir_rules.mk
?????文件????????604??2018-07-12?21:49??chaoshengbo\Debug\subdir_vars.mk
?????文件??????14573??2018-07-10?21:37??chaoshengbo\lnk_msp430f5529.cmd
?????文件???????4447??2018-07-12?10:36??chaoshengbo\main.c
?????文件????????822??2018-07-10?21:37??chaoshengbo\targetConfigs\MSP430F5529.ccxm
?????文件????????806??2018-07-10?21:37??chaoshengbo\targetConfigs\readme.txt
?????目錄??????????0??2018-07-11?09:42??chaoshengbo\.launches
?????目錄??????????0??2018-07-10?22:55??chaoshengbo\.settings
?????目錄??????????0??2018-07-12?10:36??chaoshengbo\Debug
............此處省略5個文件信息
- 上一篇:STM32驅動步進電機程序
- 下一篇:數據中心的架構與設計
評論
共有 條評論