程皖个人51单片机常用库(www.chengone.cn)一、GPIO(输入输出)cinclude"reg52.h"此文件中定义了单片机的一些特殊功能寄存器defineucharunsignedchardefineuintunsignedinttypedefunsignedintu16;对数据类型进行声明定义typedefunsignedcharu8;voiddelayms(uintc)误差0us{uchara,b;for(;c0;c){for(b199;b0;b){for(a1;a0;a);}}}voidmain(){while(1){}}二、外部中断(按键各类模块)(1)使能外部中断cEA1;全局中断开EX01;外部中...