登录
首页 » Others » ds18b20温度显示在LCD屏上

ds18b20温度显示在LCD屏上

于 2020-12-10 发布
0 210
下载积分: 1 下载次数: 1

代码说明:

在STM32F107VCT6开发板上进行开发,使用keil5软件HAL库编写程序,读取DS18B20温度传感器的温度并显示到LCD屏上。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 数据库课设-图书馆管理系统成品-代码+任务书+详细设计文档(pb+sql)
    成品代码运行文件+任务书+上交报告上交报告包括:1 绪 论 11.1 项目简介 11.2 设计目的 11.3 设计内容 11.4 应用范围 12 需求分析 22.1 数据需求 22.2 事务需求 22.3 详细功能分析 22.4 数据字典 22.5 开发运行环境 22.6 安全保障 23 概念设计 33.1 实体及联系抽象 33.2 E-R图 33.3 关系模式 34 逻辑设计 44.1 各表功能 44.2 各表结构 44.3 表关系图 45 物理设计 45.1 物理存储 45.2 完整性约束 45.3 视图设计 55.4 触发器设计 56
    2020-06-24下载
    积分:1
  • 聊天软件需求分析 适合毕业设计
    聊天软件需求分析聊天软件需求分析聊天软件需求分析聊天软件需求分析聊天软件需求分析
    2020-12-08下载
    积分:1
  • simulink的ofdm通信系统仿真模型
    matlab基于simulink的ofdm通信系统仿真模型,用于搭建ofdm通信系统仿真
    2020-12-10下载
    积分:1
  • 数据结构-何钦铭、陈越 课件资源
    数据结构-何钦铭、陈越 课件资源,浙江大学mook对=对应的ppt资源
    2020-11-02下载
    积分:1
  • matlab制作的自动控制原理的GUI界面
    GUI的自动控制原理显示界面,可直接输入相关参数,K,T等等,直接显示各个响应的图像,同时包含伯德图,零极点图,可以用来学习
    2020-12-03下载
    积分:1
  • C#写的读取USB HID设备的测试软件
    是用C#写的读取USB HID设备的测试软件,输入VID、PIV,查找HID设备是否存在,如果存在,则读取指定的HID设备发来的数据。软件已测试,可以直接使用。(不可读取键盘、鼠标),只能读取自定义HID设备,同时可以自定义读取数据时的超时时间
    2020-12-06下载
    积分:1
  • ISAR转台成像matlab
    该程序仿真了包含有4个散射点的转台目标成像,采用解线频调的方法
    2021-05-06下载
    积分:1
  • 去趋势互相关(DCCA)
    用matlab实现去趋势互相关分析的DCCA算法,将两组数据分析其协方差,最后得到DCCA指数,并进行T检验-DCCA
    2020-11-29下载
    积分:1
  • UDS诊断序,整车网络测试应用序(PCAN-UDS API – User Manual.pdf)
    UDS_PCAN_APIA应用程序,整车网络诊断应用程序,超值!(PEAK CAN UDS Application Programming InterfaceUser Manual.pdf)PCAN-UDS APi- User ManualContents1 PCAN-UDS API Documentation2 Introduction2.1 Understanding PCAN-UDS2.2 Using PCAN-UDS2.3 Features7888992.4 System Requi rements2.5 Scope of supply3 DLL API Reference3.1 Namespaces103.1.1 Peak Can uds3.2 Units3.21 PuDs Unit3.3 Classes3.3.1 UDSApi3.3.2 TUDSApi3. 4 structures1022334553.4.1 TPUDSMsg3.4.2 TPUDSSessionInfo3.43 TPUDSNetAddrinfo3.5 Types213.5.1 TPUDSCANHand]e223.5.2 TPUDSstatus233.5.3 TPUDSBaudrate253.5.4 TPUDSHWType283.5.5 TPUDSResult303.5.6 TPUDSParameter313.5.7 TPUDSService393.5.8 TPUDSAddress423.5.9 TPUDSCanId443.5.10 TPUDSProtoco l463.5.11 TPUDSAddressingType483.5.12 TPUDSMessageType493.5.13 TPUDSSVCParamDSC503.5.14 TPUDSSVCParamER513.5.15 TPUDSSVCParamcc533.5.16 TPUDSSVCParamTP543.5.17 TPUDSSVCParamcdTCS543.5.18 TPUDSSvCParamROE553.5.19 TPUDSSvCParamROERe commendedserviceID573.5.20 TPUDSSVCParamLC583.5.21 TPUDSSvcParamLCBaudrateidentifier593.5.22 TPUDSSVCParamDI603.5.23 TPUDSSVCParamRDBPI643.5.24 TPUDSSVCParamDDDI653,525 TPUDSSyCParamRDTCI66PCAN-UDS APi- User Manual3.5.26 TPUDSSVCParamRDTCI DTCSVM6935.27 TPUDSSYCParamIOCBI703.5.28 TPUDSSvCParamRC3.5.29 TPUDSSVCParaMRC RID723.6 Methods733.6.1 Initialize753.6.2 Initialize(TpudsCanhandle, tpudsbaudrate)3.6.3 Initialize(TPUdsCANhandle, TPUdSBaudrate, TPudSHWType, UInt32,UInt16)83.6.4 Uninitialize813.6.5 Setvalue843.6.6 Setvalue (TPUdsCanhandle, tpudsparameter, UInt32, uint32)843.6Setvalue (TPUdSCaNHandle, TPUDSParameter, stringBufferUint32)873.6.8 Setvalue (TPUDSANHandle, TPUDSParameter, Byte[], Uint32)883.6.9 Setvalue(Tpudscanhand le, tpudsparameter, IntPtr, UInt32)3.6.10 Getvalue933.6.11 Getvalue (TPUDSCANHandle, TPUDSParameter, StringBufferUint32)933.6. 12 Getvalue (TPUDSCANHandle, tpudsparameter, uint32, Uint32)963.6.13 Getvalue (TPUDsCaNHandle, TPUDSParameter, Byte l], UInt32)993.6. 14 Getvalue (TPUdSCAnhandle, tpudSParameter, Intptr, UInt32)1013.6.15 Getstatus1043.6.16Read1073.6.17 Write3.6.18 Reset1143.6.19 WaitForsing lemessage1163. 6.20 WaitFormultiplemessage1203.6.21 Waitforseryice1263.6.22 WaitForservicefunctional1303.6.23 ProcessResponse1333.6. 24 SvCDiagnosticsessioncontro l1383.6.25 SVCECUReset1413.6.26 SvcSecuri tyAccess1453.6.27 SvCCommunicationControl1483.6.28 SvcTesterpresent1523.6.29 SvcsecuredDataTransmission1553.6.30 SvcControlDTCSetting1583.6.31 SvcResponseonEvent1623.6.32 SVCLinkcontrol1663.6.33 SVCReaddatabyidentifier1703.6. 34 SvcReadMemory ByAddress1733.6.35 SvcReadscal ingdatabyidentifier1773.6. 36 SvcReadDataByperiodicIdentifier1803.6.37 SvcDynamicallydefinedataIdentifierDBID1843.6.38 SvcDynamicall ydefineDataIdentifierDBMA1883.6. 39 SvcDynamical lyDefineDataIdentifierCDDDI1933.6.40 SvcWri teDataByidentifier1973.6. 41 Svcwri teMemory byaddress2003.6.42 SvcClearDi agnosticInformation2053. 6. 43 SVCReadDTCInformation2083.6.44 SvCReadDTCInformationRDTCSSBDTC2113. 6. 45 SvCReaddTCInformationRDTCSSBRN215PCAN-UDS APi- User Manual3. 6.46 SVcReadDTCInformationReportExtended2183.6. 47 SvcReadDTCInformationReportseverity2213,648 SvcReaddTCInformationrsIodtc2253. 6.49 SvCReadDTCInformationNoParam2283.6.50 SvcInputout put contro byidentifier2323. 6.51 SyCRoutineControl2363.6.52 SvCReques tOwn load2393.6.53 SvcRequestUp load2433. 6.54 SVCTransferData2483.6.55 SvCRequestTransferExit2513.7 Functions2563.7.1 UDS Initialize2583.7.2 UDs Uninitialize2593.7.3 UDs Setvalue2603.7.4 UDs Getvalue2613.7.5 UDS Getstatus2623.7.6 UDS Read2643.7.7 UDs Write2653.7.8 UDs Reset2663.7.9 UDS_WaitForsinglemessage2673.7.10 UDS_waitForMultipleMessage2693.7.11 UDs Wai ce2723.7.12 UDS WaitForserviceFunctional2733.7.13 UDS_ Processresponse2753.7.14 UDS_SvcDiagnosticSessionControl2773.7.15 UDS SVCECUReset2783.7.16 DS_SVCSecuri tyAccess2803.7.17 UDS SVCCommunicationcontrol2813.7.18 UDs SvCTesterpresent2833719 UDS SvCSecuredDatatransmission2843.7.20 UDS_SvCControlDTCSetting2863.7.21 UDS_SVCResponseonEvent2873,7.22 UDs SVCLinkcontrol2893.7.23 UDS_SvcReaddatabyidentifier2913.7.24 UDS_SvcReadMemory byAddress2923.7.25 uDs_ SvcReadscalingdatabyidentifier2943.7.26 UDS_SvCReadDataBy Periodi iDentifier2953.7. 27 UDS_SVcDynamical l yDefineDataIdentifierDBID2973.7.28 UDS_SvcDynami call ydefinedataIdentifierDBMa2993.7.29 UDS_SvcDynami cal l yDefineDataIdentifierCDDDI3013. 7.30 UDS_SvcWriteDataByIdentifier3023,7.31 UDs SvcWri teMemorybyaddress3033.7. UDS_SvcClearDiagnosticInformation3053.7.33 UDS SVCReadDTCInformation3073.7. UDs SyCReadDTCInformationRdtCSSBDTC3093.7.35 uDs SvCReadDTCInformationRdtcssbrn3103.7.36 UDS_ SvCReadDTCInformationReportExtended3113.7.37 UDS_SvcReadDTCInformationReportseverity3133.7.38 UDS SVCReadDTCInformationRSIODTC3153,739 UDS SVCReadDTCInformationNoParam3163. 7.40 UDS_SvcInputoutput contro l byIdentifier3,7. 41 UDs SyCRoutinecontrol319PCAN-UDS APi- User Manual3.7.42 UDS_SvcRequestDown load3213.7.43 UDS_ SVCRequestupload32337.44 UDS SyCTransferData3253.7.45 UDS_SVCRequestTransferExit3263.8 Definitions3293.8.1 PCAN-UDS Handle Definitions3293.8.2 Parameter value defintions3313.8.3 TPUDSMsg Member value Definitions3323.8.4 PCAN-UDs Service parameter Definitions3334 Additional Information3354.1 PCAn Fundamentals33542 PCAN-Basic3364.3 UDS and ISO-TP Network Addressing Information3384.3.1 ISO-TP network addressing format3384.4 USing Events3405 License Information3426PCAN-UDS APi- User Manual1 PCAn-UDS APi DocumentationWelcome to the documentation of PCan-UD APl, a PEAK CAN API that implements ISo 15765-3, UDS in CANan international standard that allows a diagnostic tester(client) to control diagnostic functions in an on-vehicleElectronic Control Unit(ECU or serveIn the following chapters you will find all the information needed to take advantage of this aPlIntroduction on page 8DLL API Reference on page 10Additional Information on page 335PCAN-UDS APi- User Manual2 IntroductionPCAN-UDS is a simple programming interface intended to support windows automotive applications that usePEAK-Hardware to communicate with Electronic Control Units(ECU) connected to the bus systems of a car, formaintenance purpose2.1 Understanding PCAN-UDSUDS stands for Unified Diagnostic Services and is a communication protocol of the automotive industry. thisprotocol is described in the norm iSo 14229-1The UDS protocol is the result of 3 other standardized diagnostic communication protocolsIS0 14230-3, as known as Keyword 2000 Protocol(KWP2000L IS0 15765-3, as known as diagnostic on CANISo 15765-2, as known as ISo-TPThe idea of this protocol is to contact all electronic data units installed andCAN OBDninterconnected in a car, in order to provide maintenance, as checking for errors,actualizing of firmware, etcUDS is a Client/Server oriented protocol. In a UDS session(diagnostic session ),aprogram application on a computer constitutes the client(within UDS, it is calledPCAN-UDSTester), the server is the ecu being tested and the diagnostic requests from client toserver are called services. The client always starts with a request and this ends with apositive or negative response from the server(ECuSince the transport protocol of UDS is done using ISo-TP, an international standardPCAN ISOTPfor sending data packets over a CAN Bus, the maximum data length that can betransmitted in a single data-block is 4095 bytes.PCAN-UDS API is an implementation of the Uds on CAN standard the physicalcommunication is carried out by PCAN-Hardware (PCAN-USB, PCAN-PCI etc )throughPCAN-Basithe pCAN-ISo-TP and PCAN-Basic API (free CAN APls from PEAK-System). Because ofthis it is necessary to have also the pCAN-1S0-tP and PCAN-Basic APls(PCAN-ISO-TP. dll and PCAN Basic. dll) present on the working computer where UdS is intended tobe used. PCAN-UDS, PCAN-ISO-TP and PCan-Basic apis are free and available for allFigure 1: Relationship of thepeople that acquire a pCAn-hardware2.2 Using PCAN-UDSSince PCAN-UDS API is built on top of the PCAN-1So-TP API and PCAN-Basic APls, it shares similar functions. Itoffers the possibility to use several PCAn-UDS (PUds) channels within the same application in an easy way. Thecommunication process is divided in 3 phases: initialization interaction and finalization of a puds-channelInitialization In order to do UDS on CAN communication using a channel, it is necessary to initialize it first. Thisis done by making a call to the function UDS_ Initialize (class- method: InitializePCAN-UDS APi- User ManualInteraction: After a successful initialization a channel is ready to communicate with the connected can bus.Further configuration is not needed the 24 functions starting with UDS Svc(class-methods: starting with Svccan be used to transmit UdS requests and the utility functions starting with Uds WaitFor(class- methodsstarting with WaitFor) are used to retrieve the results of a previous request. the Uds read and UDS Write(class-methods: Read and Write are lower level functions to read and write UDs messages from scratch. Ifdesired, extra configuration can be made to improve a communication session, like service request timeouts orISo-TP parametersFinalization: When the communication is finished, the function UDS_ Uninitialize(class-method: Uninitializeshould be called in order to release the puds-channel and the resources allocated for it. In this way thechannel is marked as free"and can be used from other applications23 FeaturesI mplementation of the UDS protocol(iSo 14229-1)for the communication with control unitsWindows DLLs for the development of 32-bit and 64-bit applicationsPhysical communication via Can using a Can interface of the pcan seriesUses the pcan-Basic programming interface to access the can hardware in the computerUses the pCAn-ISo-TP programming interface(iso 15765-2)for the transfer of data packages up to 4095bytes via the can bus2.4 System Requi rementsL- Windows 10, 8.1, 7(32/64-bitAt least 512 Mb ram and 1 GHz CPUPC CAN interface from peak-SystemPCAN-Basic APlL PCAN-SO-TP API2.5 Scope of supplyInterface DLL, examples, and header files for all common programming languagesDocumentation in pdf formatDocumentation in HTML Help formatPCAN-UDS APi- User Manual3 DLL API ReferenceThis section contains information about the data types (classes, structures, types, defines enumerations)andAPI functions which are contained in the pcan-uds api3.1 NamespacesPEAK offers the implementation of some specific programming interfaces as namespaces for the. NEtFramework programming environment. The following namespaces are available:NamespacesNameDescription}PeakContains all namespaces that are part of the managed programming environment fromPEAK-SystemPeak CanContains types and classes for using the PCan aPi from PEAK-SystemPeak Can. LightContains types and classes for using the PCAn-Light API from PEAK-SystemPeak Can basicContains types and classes for using the pcan-Basic APl from PEAK-SystemPeak Can CcpContains types and classes for using the CCP API implementation from PEAK-SystemPeak Can XcpContains types and classes for using the XcP aPi implementation from PEAK-SystemPeak Can. Iso TpContains types and classes for using the pCAN-IS0-TP aPl implementation from PEAKSystelPeak Can, UdsContains types and classes for using the PCan-UDS API implementation from PEAK-SystemPeakCan.Obdll Contains types and classes for using the PCAN-OBDIll API implementation from PEAKSystemt}Peak. LinContains types and classes used to handle with lin devices from PEAK-Systemt}Peak. RP1210AContains types and classes used to handle with can devices from PEak-System through theTMC Recommended Practices 1210, version A, as known as RP1210(A3.1.1 Peak Can UdsThe peak Can. Uds namespace contains types and classes to use the pcan-UdS aPi within the. NET Frameworkprogramming environment and handle pcan devices from peak-SystemRemarks: Under the delphi environment, these elements are enclosed in the puds-Unit. the functionality of allelements included here is just the same. the difference between this namespace and the delphi unit consists inthe fact that delphi accesses the Windows api directly it is not managed code)AliasesAliasDescriptionTPUDSCANHandle Represents a pCAn-UDS channel handleClassesClassDescription像曰UDSApiDefines a class which represents the PCAN-UDS API10
    2020-06-27下载
    积分:1
  • 机载下视圆周SAR三维BP成像
    机载下视圆周SAR三维BP成像,对学习CSAR成像算法的同学很有帮助庞守宝,等:机载下视圆周SAR三维BP成像匚发射信号]一世P点救射回波信号时间匹配滤波补偿相位因子DBP成像相十叠加0)0图5同一高度x平面内4点的能量图成像显示图3算法的成像流程图103仿真结果60仿真的场景是在三维平面上立方体的8个顶点,场景的原始三维仿真图如图4所示。仿真中的主要的303035系统参数如表1所示。表1仿真所用的主要系统参数10载波波长0.008m带宽750 MHz脉冲重复频率飞行高度0203040506070801000m/n角速度0.4rads载机飞行半径100m阵元数目阵元间距0.008m图6同一高度x平面内4点的等高线dB图10108口424044维/363436-10-6y/m原始场景图7BP成像之后的初始结果图图4原始场景图系统仿真的结果如图5~图8所示。图5为同高度4点的能量图,从图5中可以看出,有目标的区域能量积聚非常明显,没有目标的区域能量很小,几乎可以忽略,这正是BP算法相干累积的优点。图65为同一高度4点的等高线图,从图中可以得知,点目rim标存在处的能量较为集中,有目标的区域相对没有目y/m场景恢复标的区域的dB差较大,能量差异通过右边的色彩进度条来表示。图7为截取某一门限后BP成像的结果图8场景恢复之后的成像图图,根据图中8点位置可知,BP累积之后的初始成像4结束语相对于原始场景只是出现了坐标的平移,8个点的相对位置是正确的。图8为BP成像结果转换到原坐标分析了飞机圆周飞行时对地面场景目标的三维成系之后的成像结果。比较图4和图8,可以得知,圆像结构和成像机理,机载下视三维圆周SAR区别于周SAR三维BP成像的结果和原始场景吻合,即圆周普通的直线飞行的三维SAR在于回波信号距离压缩SAR可以精确的还原目标场景的三维信息。之后出现沿航向和切航向的耦合项,使得经典的RD16庞守宝,等:机载下视圆周SAR三维BP成像电炮是算法、CS算法和距离徙动算法等受限,BP算法通过(8):1252-1265二维搜索,避免了单独处理每一维的过程,之后通过[5] Wang Y P, Tan WX, Hong W,etal. Focusing Bistatic像素单元离散化、补偿每一距离门相位因子、相干累Circular SAR Data Using Polar Format Algorithm [C]. Syn-积等步骤构建场景目标函数,完成成像处理。三维场thetic Aperture Radar, APSAR2009, 2 Asian -PacificConferences on digital Objects Identifier, 2009: 989景仿真结果表明,圆周SAR能够精确的还原场景目992.标的三维信息。此结构在地质斯探和自然灾害救援等[6]Du Lei, Wang Yanping, Honf Wen, et al. Analytic Mod-有现实意义。eling and Three Dimensional Imaging of Downward- Loo-参考文献king Sar Using Bistatic Uniform Linear Array Antenna[C]. Ist Asian and Pacific Conference on Synthetic aper-[1] Hong W, Wang Y P, Tan WX, et al. Tomographic SARture Radar Proceedings, 2007: 49-53and Circular SAR Experiments in Anechoic Chamber [c]. [7] Jens Klare, Matthias Wei, Olaf Peters, et al. ARTINOGermany: EUSAR, 2008A New High Resolution 3D Imaging Radarsystem on an Au-[2] Cantalloube H, Colin E. Airbome SAR Imaging Along a Cirtonomous Airborne Platform [C]. Greeces: IGARSScular Trajectory [c]. Germany EUSAR, 2006: 16-182006:3842-3845[3] Riot H. Cantalloube, Circular SAR Imagery for Urban Re- [8] Wei M, Ender J, Peters 0, et al. An Air-bone Radarmote Sensing [c]. Germany: EUSAR, 2008: 2-5for Three Dimensional Imaging and Observation - Technical[4] Soumekh M. Reconnaissance with Slant Circular SAR ImaRealisation and Status of ARTINO [C]. Germany: EU-ging [J]. IEEE Trans. On Imaging Proccessing,1996,5SAR, Dresden,2006:5315-5318“→·“M“+“““M(上接第11页)[5]施韶华,李孝辉,刘阳.基于直接数字频率合成的高精参考文献度频率源设计[J].电子测量与仪器学报,2008(90):[1]周殿清.基础物理实验[M].北京:科学出版社,200385-389[2]杨刚,周群.电子系统设计与实践[M].北京:电子工[6]王军证,王建斌,陈仁伟.基于DDS的超声导波信号业出版社,2004源的设计[J.电子测量技术,2010,33(2):19-2.[3]刘海成.AVR单片机原理及测控工程应用[M].北京:[7]吴加政,苏新彦.基于DDs的信号模拟器设计J.国北京航空航天大学出版社,2008外电子测量技术,2009,28(10):67-70[4]柴媛媛,唐慧强,辛红伟.基于ARM和DS技术的信[8] ST Microelectronics Corporation,smFI03 XX Datasheet[EB/号源设计[J].通信技术,2009,42(10):54-56OL].(209-12-14)[2010-03-10]ww.st.com+一中““-(上接第13页)器的输出波形。图4所示为示波器测量仿真输出波形。真分析,在编辑电路、调整元件参数时十分方便,它可以进行各种电子电路的设计与仿真,并且仿真精度高。给电路设计测试带来方便,使电子线路的设计、性能参数的仿真等繁琐的任务变得轻而易举。参考文献[1]郑步生. Muhisim2001电路设计及仿真入门与应用[M]北京:电子工业出版社,2002.[2]张新喜. Multisim10电路仿真及应用[M].北京:机械图4示波器测量仿真输出波形工业出版社,20102结束语[3]美国国家仪器有限公司. NI Multisim1l简化教学和设计中的电路仿真[Z/OL].(2010-02-01)[2010-05-在时序逻辑电路设计中应用 Multisim软件进行仿11http://www.ipcm.com.cn机载下视圆周SAR三维B成像旧WANFANG DATA文献链接作者:庞守宝,张晓玲,吴堃, Pang Shoubao, Zhang Xiaoling, Wu Kun作者单位:电子科技大学,电子工程学院,四川,成都,610054刊名:电子科技英文刊名:ELECTRONIC SCIENCE AND TECHNOLOGY年,卷(期):2010,23(12)参考文献(8条)Wei M; Ender J; Peters 0 An Air-borne Radar for Three Dimensional Imaging and Observation-TechnicalRealisation and status of artin 20062. Jens Klare; Matthias Wei: Olaf Peters ARTINO: A New High Resolution 3D Imaging Radarsystem on anAutonomous airborne plat form 20063. Du Lei; Wang Yanping; Honf Wen Analytic Modeling and Three-Dimensional Imaging of Downward-LookingSAR USing Bistatic Uniform Linear Array Antennas 20074. Wang y P; Tan W X; Hong W Focusing Bistatic Circular SAR Data Using Polar Format Algorithm 2009oumekh M Reconnaissance with Slant Circular SAR Imaging 1996(08)6. Oriot H Cantalloube Circular SAR Imagery for Urban Remote Sensing 20087. Cantalloube H; Colin E Airborne Sar Imaging Along a Circular Trajectory 20068. Hong W; Wang y P; Tan W X Tomographic Sar and Circular Sar Experiments in Anechoic Chamber 2008本文链接http://d.g.wanfangdata.comcn/periodiCaldzkj201012005.aspx
    2020-12-04下载
    积分:1
  • 696518资源总数
  • 106148会员总数
  • 10今日下载