欢迎来到天天文库
浏览记录
ID:36230850
大小:21.60 KB
页数:20页
时间:2019-05-07
《单片机c语言编程模版( microcontroller c language programming template)》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、51单片机c语言编程模版(51microcontrollerClanguageprogrammingtemplate)51microcontrollerClanguageprogrammingtemplate(1)Thispartishidden.You'veansweredit.ThefollowingisthehiddencontentSCMClanguageprogrammingtemplate(basictemplate)[programdescriptionatthebeginningoftheprogram]/*********************************
2、************************************************************/Programname:Author:Writingtime:month,month,dayHardwaresupport:Interfacespecification:/*********************************************************************************************/Explain:/***********************************************
3、**********************************************/[headerfiledefinedbymicrocontrollerSFR]#include//universal89C51headerfile#include//universal89C52headerfile#include//STC11FxxorSTC11LxxSeriesMCUheaderfile#include//STC12Cx052orSTC12Cx052ADSeriesMCUheaderf
4、ile#include//STC12C5A60S2SeriesMCUheaderfile[morelibraryfunctionheaddefinitions]#include//settheinsertionpoint#include//character#include//definitionoferrorcode#include//floatingpointprocessing#include//fileinput/output#include5、ip.h>//parametricinput/output#include/datastreaminput/output#include//definitionofvariousdatatypesthemostconstantvalue#include//definelocalizationfunction#include//definitionofmathematicalfunctions#include//definetheinputandoutputfunction#include6、tdlib.h>//definitionofmiscellaneousfunctionandmemoryallocationfunction#include//stringprocessing#include//input/outputbasedonarray#include//definitionofafunctionoftime#include//widecharacterprocessingandinput/output#include//widecharacterclassifica7、tion#include//51basicoperations(including_nop_nullfunction)[definitionsofcommonstatements]SFR[]=customname[SFRaddress];//accordingtothedefinitionintheSFRbytememoryname.Example:SFRP1=0x90;Sbit=[name][customsy
5、ip.h>//parametricinput/output#include/datastreaminput/output#include//definitionofvariousdatatypesthemostconstantvalue#include//definelocalizationfunction#include//definitionofmathematicalfunctions#include//definetheinputandoutputfunction#include6、tdlib.h>//definitionofmiscellaneousfunctionandmemoryallocationfunction#include//stringprocessing#include//input/outputbasedonarray#include//definitionofafunctionoftime#include//widecharacterprocessingandinput/output#include//widecharacterclassifica7、tion#include//51basicoperations(including_nop_nullfunction)[definitionsofcommonstatements]SFR[]=customname[SFRaddress];//accordingtothedefinitionintheSFRbytememoryname.Example:SFRP1=0x90;Sbit=[name][customsy
6、tdlib.h>//definitionofmiscellaneousfunctionandmemoryallocationfunction#include//stringprocessing#include//input/outputbasedonarray#include//definitionofafunctionoftime#include//widecharacterprocessingandinput/output#include//widecharacterclassifica
7、tion#include//51basicoperations(including_nop_nullfunction)[definitionsofcommonstatements]SFR[]=customname[SFRaddress];//accordingtothedefinitionintheSFRbytememoryname.Example:SFRP1=0x90;Sbit=[name][customsy
此文档下载收益归作者所有