文档详情

基于STC12C系列单片机的DS18B20编程_李建兰.pdf

发布:2017-06-08约1.15万字共4页下载文档
文本预览下载声明
2009 1 28 1 STC12C DS18B20 * 1,2 1 1 1 1 ( 1. 昆明理工大学信息工程与自动化学院 昆明 650051; 2. 云南机电职业技术学院 昆明 650203) : / STC12C 5 1 , Keil Atmel ; , ST C12C DS18B20 ST C12C2052 DS18B20 , : STC12C ; DS18B20; ; : TP274 : A Programs for DS18B20 based on STC12C single2chip computer 1,2 1 1 1 1 Li ianlan Shao ianlong Zhang Zhihong Lv Yingying Luo ingwen ( 1. F aculty of Information Engineer ing and Automation, Kunming University of Science and T echnology, Kunming 650051; 2. Yunnan Vocat ional college of Mechanical and Electrical T echnology, Kunming 650203) Abstract: The new generation high2performance one2clock period per machine cycle architecture ST C12C series Single2 chip computers can run several times fast er t han tradit ional 8051 family. So t he programs for original 51 single2chip com2 put er can not be used in STC12C series direct ly. The performance analyzer in Keil software is used to calculate the execu2 tion time of Atmel single2chip computer s. By manual computing the execution t ime of programs for both Atmel and STC12C series, programs are modified t o meet the t ime sequence needs of digital temperature sensor DS18B20. The test shows t hat t he single2chip comput er STC12C2052 can read the t emperat ure values of DS18B20. The met hod plays a sig2 nificant role for the use of a programmable device which has the t ime sequence requirement s. eywords: STC12
显示全部
相似文档