大家可以帮我看一下我写的单片机超声波测量距离的程序正确吗?很容易看的#include sbit Trig = P1^0; //触发脚sbit Echo = P3^3; //接受脚unsigned int times;float v; //距离bit flag; //中断进入标志/*---------------
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/17 12:36:43
xV_oG*'\w'lTڴUJU۱O2`"$
5cڱPc0?O
݅lTmt;;;;UTđCUR"kjvY2~bFzVuc,v\-4PA-.C=?Vp;>ynlNF0phHi϶ituM%D7^8坜D<7/z&f|y!A!̸DކP^
C;<?O§[iTO >\P> lTtM%up\_xzSjwA=ǀb;>힣R+UzDg&-D:8he8<~A b8^o0^/bvp^D/ylבE8ob!aeEf>vXjNVRH[LW5.lL@\?P;n~l3ޜm.f,a:>hQǴg3,͋Sޚc[h5DGB7Q)t?oOA?E5WZ5u!ӿUg_NXk6C,~+n܆:QPٔx;$w:NYMT2Ҩ!9DO*Sz7r:m\&r˪q9s=TӥֹQ;NrbcJi$+r}B?Fa!dfdFju,&\=b>%h
ǠDE3UTV.>Zfu,RIca9\c?xQSKCZ,ЭLiW1X
gÊ;9$FՐ].6NG">;3筯ܻŘ`!++zssyɝN2_]A$h\mj侑/Vbz#@)HJ}Ԉ)xڴs#Fht
*փcH uMޜ7?(?gM5YNv7C5~$ ]{}ve%}oӦdoB7l\g!?R1-\D{#! ?&nԷj%S(eg7|w̢ZSҎӑ8
܁zA!W+1(1A#=S6xk'H ֔nb38雃