武汉理工大学基于STM32的温度测量系统信息工程学院学位论文原创性声明文是本人在导师的指导下独立进行研究所取得的研究成撰写的成果作品。本人完全意识到本声明的法律后果由本人承担。年月日学位论文版权使用授权书同意学校保留并向有查阅和借阅。本人授以采用影印、缩印或扫描等复制手段保存和汇编本学位论文。本学位论文属于1年解密后适用本授权书2、不保密囗。年月日年月日目录摘要..............................................................................................................................................IAbstract..........................................................................................................................................II1绪论.............................................................................................................................................12系统分析.....................................................................................................................................32.1STM32芯片......................................................................................................................32.2DS18B20...........................................................................................................................52.3TFTLCD............................................................................................................................62.4ATK-HC05蓝牙串口.......................................................................................................73硬件设计.....................................................................................................................................83.1MCU..................................................................................................................................83.2JTAG设计........................................................................................................................93.3TFTLCD电路设计...........................................................................................................94软件设计...................................................................................................................................104.1系统初始化....................................................................................................................104.1.1时钟的初始化.....................................................................................................104.1.2I/O初始化............................................................................................................114.1.3串口初始化.........................................................................................................134.1.4DMA初始化........................................................................................................154.1.5中断初始化.........................................................................................................174.2模块功能设计................................................................................................................184.2.1DS18B20温度模块.............................................................................................184.2.2TFTLCD模块设计..............................................................................................214.2.3ATK-HC05蓝牙模块..........................................................................................245结果与总结...............................................................................................................................26参考文献.......................................................................................................................................30致谢...............................................................................................................................................31I摘要温度是日常生活和农业生产中的一个重要参数技术的温度测量就显得很有意义了。STM32DS18B20传输使用ATK-HC05蓝牙模块。STM32的内核基于cortex-m3130nm专用低泄漏电流耗、低成本的优势正符合本次设计的要求。温度芯片DS18B20I/O口就能将环STM32DS18B20TFTLCDIIAbstractTemperatureisanimportantparameterinthedailylifeandagriculturalproduction,thetraditionalthermometerhasslowresponseandreadinginconvenientshortcomings,themeasurementaccuracyisnothigh,inaddition,usuallyrequiringlabortoobservethetemperature,morecumbersome,andthusthetemperatureoftheuseofelectronictechnologyitmakessensetomeasureit.Withthedevelopmentofelectronictechnology,theemergenceofvariouschip-basedtemperaturemeasurementsystem.ThispaperpresentsanSTM32-basedtemperaturemeasurementandwirelesstransmissionsystems,thetemperatureacquisitionusingdigitaltemperaturesensorDS18B20,wirelesstransmissionusingATK-HC05Bluetoothmodule.TheSTM32kernelisbasedoncortex-m3,thekernelhasaunique130nmSTMicroelectronicsspeciallowleakagecurrentmanufacturingprocessesandenergyoptimizedarchitecture,industry-leadingenergy-savingperformance,itshigh-performance,low-power,low-costadvantageiscomplywiththerequirementsofthisdesign.DS18B20temperaturechipsinglebusprotocol,onlyoneI/Oportwillbeabletoambienttemperatureintodigitalsignals,withminiaturization,lowpowerconsumption,highperformance,anti-interferenceability,easywithmicroprocessorsandotheradvantages.WirelesstransmissionusingBluetoothtechnology,lowcost,morecompatibledevices,youcanreducetheamountoftraditionalengineeringprojects,andcansavealotbyacable,linemaintenance,testingonsome