- 1、本文档共5页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
基于STC12C系列单片机的DS18820编程
2009皇P1月
I 第己吕卷第l期I——I·——_I啊嘲黻㈣;赫j,啪理论与方法
基于STCl2C系列单片机的DSl8820编程*
李建兰1’2 邵建龙1 张志宏1 吕英英1 罗景文1
(1.昆明理工大学信息工程与自动化学院 昆明 650051;2.云南机电职业技术学院昆明 650203)
摘要:针对新一代高性能单时钟/机器周期的S1℃12C系列单片机由于执行速度远高于传统的51单片机而不能直接使用
原有单片机程序的问题,采用Keil软件的性能分析器来计算Atmel单片机的执行时间;通过手工计算修改程序段的执行时
DSl8820的温度转换值,此方法对于具有时序要求的可编程器件的使用具有一定的参考价值。
关键词:STCl2C单片机;DSl81320;时序;编程
中图分类号:TP274文献标识码:A
forDSl8820basedonSTCl2C
Programs single-chipcomputer
Li 12 Shao Lv Luo
Jianlan ZhangZhihon91Yingyin91Jingwenl
Jianlon91
ofInformation and ofScienceand
Automation。Kunming 650051;
(1.Faculty Engineering University Technology,Kunming
2.YunnanVocationalofMechanicalandElectficfl 650203)
college Technology,Kunming
Abstract:Thenew one-eloek machinearchitectureSTCl2Cseries
generationhigh-performanceperiodper cycle Single-
canrunseveraltimesfasterthantraditional8051 the for 51 oom-
chipcomputers family.Soprogramsoriginalsingle-chip
cannotbeusedinSTCl2C inKeilsoftwareiSUSedtOcalculatetheexecu—
sedes
puter direetly.Theperformanceanalyzer
tiontimeofAtmel manual theexecutiontimeof forbothAtmeland
computers.By programs
single-chip computing
汛12C aremodifiedtOmeetthetime needsof sensorDSl8820.Thetest
series.programs sequence digitaltemperature
showsthatthe STCl2C2052canreadthe valuesofDSl8820.Themethoda
single-chipcomputer temperature playssig—
nificantroleforth
文档评论(0)