《avr单片机c语言库》

《avr单片机c语言库》

ID:15846666

大小:219.94 KB

页数:33页

时间:2018-08-06

《avr单片机c语言库》_第1页
《avr单片机c语言库》_第2页
《avr单片机c语言库》_第3页
《avr单片机c语言库》_第4页
《avr单片机c语言库》_第5页
资源描述:

《《avr单片机c语言库》》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库

1、CodeVisionAVRC库函数介绍-刘汧CodeVisionAVRCLibraryFunctionsReferenceCodeVisionAVRC库函数介绍译自CodeVisionAVRCCompilerHelp目录:1.CharacterTypeFunctions-字符类型函数2.StandardCInput/OutputFunctions-标准输入输出函数3.StandardLibraryFunctions-标准库和内存分配函数4.MathematicalFunctions-数学函数5.StringFunctions-字符串函数6.BCDConversio

2、nFunctions-BCD转换函数7.MemoryAccessFunctions-存储器访问函数8.DelayFunctions-延时函数9.LCDFunctions-LCD函数10.LCDFunctionsfordisplayswith4x40characters-4×40字符型LCD函数11.LCDFunctionsfordisplaysconnectedin8bitmemorymappedmode-以8位外部存储器模式接口的LCD显示函数12.I2CBusFunctions-I2C总线函数13.NationalSemiconductorLM75Temper

3、atureSensorFunctions-LM75温度传感器函数14.DallasSemiconductorDS1621Thermometer/ThermostatFunctions-DS1621温度计函数15.PhilipsPCF8563RealTimeClockFunctions-PCF8563实时时钟函数16.PhilipsPCF8583RealTimeClockFunctions-PCF8583实时时钟函数17.DallasSemiconductorDS1302RealTimeClockFunctions-DS1302实时时钟函数18.DallasSemi

4、conductorDS1307RealTimeClockFunctions-DS1307实时时钟函数19.1WireProtocolFunctions-单线通讯协议函数20.DallasSemiconductorDS1820/DS1822TemperatureSensorsFunctions-DS1820/1822温度传感器函数21.SPIFunctions-SPI函数22.PowerManagementFunctions-电源管理函数23.GrayCodeConversionFunctions-格雷码转换函数1CodeVisionAVRC库函数介绍-刘汧前言:如

5、果你要使用库函数,就必须用#include包含相应的头文件。例子:/*使用库函数前要先包含头文件*/#include//有abs函数#include//有putsf函数voidmain(void){inta,b;a=-99;/*使用库函数*/b=abs(a);putsf("Helloworld");}1.CharacterTypeFunctions-字符类型函数这些函数的原型放在“..INC”目录的“ctype.h”头文件中。使用这些之前必须用“#include”包含头文件。unsignedcharisalnum(charc)-

6、如果c是数字或字母返回1。unsignedcharisalpha(charc)-如果c是字母返回1。unsignedcharisascii(charc)-如果c是ASCII码(0…127)返回1。unsignedchariscntrl(charc)-如果c是控制字符(0..31或127)返回1。unsignedcharisdigit(charc)-如果c是数字返回1。unsignedcharislower(charc)-如果c是小写字母返回1。unsignedcharisprint(charc)-如果c是一个可打印字符(32…127)返回1。unsignedcha

7、rispunct(charc)-如果c是一个除空格、数字或字母的可打印字符返回1。unsignedcharisspace(charc)-如果c是空格返回1。unsignedcharisupper(charc)-如果c是大写字母返回1。unsignedcharisxdigit(charc)-如果c是16进制数字返回1。chartoascii(charc)-返回c对应的ASCII。unsignedchartoint(charc)-把c当做16进制字符并返回对应的10进制数(0…15)。chartolower(charc)-如果c是大写字母返回对应的小写字母。chart

8、ouppe

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。