可预置的8位计数器程序的主要部分分析 #include <AT89X51.H> //器件配置文件 #define uchar unsigned char //变量类型的宏定义 #define uint unsigned int uchar code SEG7[10]={0x03,0x9f,0x25,0x0d,0x99, //0~9的数码管段码 0x49,0x41,0x1f,0x01,0x09} uchar data cnt[8] //在data区定义8位长度的数组,用来存放计数值 uchar data pre_cnt[8] //在data区定义8位长度的数组,用来存放预置值 sbit drv=P3^4 //定义输出驱动端 bit set_flag //定义工作标志 bit out_flag //定义输出标志 bit keydown_flag //键按下标志
标签: unsigned include define uchar
上传时间: 2015-04-29
上传用户:changeboy
//液晶显示初始化ini_OCMJ(void)和驱动程序sub_lcd(uchar in)。 //占用I/O口为 #define LCD_OUT P4 //sbit LCD_BUSY=P3^6 //sbit LCD_REQ=P3^7
标签: ini_OCMJ LCD_BUSY LCD_OUT sub_lcd
上传时间: 2015-06-10
上传用户:集美慧
此软件包包含了模拟I2C C51程序软件包和ZLG7290的C51程序然后包。 软件包的接口界面: (1) bit ISendByte(uchar sla,uchar c) (无子地址)写单字节数据 (现行地址写) (2) bit IRcvByte(uchar sla,uchar *c) (无子地址)读单字节数据 (现行地址读) (3) bit ISendStr(uchar sla,uchar suba,uchar *s,uchar no)(有子地址)读N字节数据 (4) bit IRcvStr(uchar sla,uchar suba,uchar *s,uchar no) (有子地址)写N字节数据 (5) bit ISendStr(uchar sla,uchar *s,uchar no) (无子地址)写多字节数据 (6) bit IRcvStr(uchar sla,uchar *s,uchar no) (无子地址)读单字节数据 (7) unsigned char ZLG7290_SendData(unsigned char SubAdd,unsigned char Data) (8) void ZLG7290_SendBuf(unsigned char * disp_buf,unsigned char num) (9) unsigned char ZLG7290_SendCmd(unsigned char Data1,unsigned char Data2) (10)unsigned char ZLG7290_GetKey()
上传时间: 2013-12-05
上传用户:hongmo
S6B0724液晶显示驱动程序 void LCD_BUSY(void) void write_LCD_data(uchar lcd_data) void write_LCD_command(uchar command) void clear_lcd(void) void LCDClearLine(uchar line) void prints(uchar line,uchar * temp) void printf(ulong int x) void change_code(uint * x) void Sendlcd(uchar x,uchar y,uchar dat) void Sendhz(uchar x,uchar y,uchar dat) void display_HZ(void) void display_date(void) void LCD_initial(void) void prints_id(uchar line,uint id) //void print_lcd(uchar *sss)
标签: void write_LCD_command write_LCD_data LCD_BUSY
上传时间: 2016-03-17
上传用户:独孤求源
MMC驱动 void mmc_send_cmd (uchar,ulong,uchar) void mmc_send_scmd (uchar,uchar) void mmc_init(void) extern ulong mmc_read_response (void) extern ulong reponse extern uchar SD_BUS_SELECT extern bit mmc_check_response (void)
标签: uchar void mmc_send_scmd mmc_send_cmd
上传时间: 2016-03-17
上传用户:皇族传媒
时钟模块DS1307驱动I2C uchar Read_DS1307(uchar addr) void Write_DS1307_Byte(uchar byte) void Write_DS1307(uchar addr,uchar dat) void rtc_get(void) void rtc_set(void)
上传时间: 2016-03-17
上传用户:zm7516678
LC72130+1823程序 void out(uchar dat) ulong in_data(void) void out_data(uchar dat1,uchar dat2,uchar dat3,uchar dat4) void display_tunner(unsigned long dat) void tunner_init(void) void display_mute(uchar dat) void RADI0_DIsplay_VOLUME(uchar volume) void RADI0_DIsplay(unsigned long dat) void auto_search(void)
上传时间: 2016-03-17
上传用户:181992417
PT2313驱动 void send_audio_switch(uchar audio) void send_volume(uchar byte) void send_attenuators(uchar LF,uchar RF,uchar LR,uchar RR) void send_base(uchar byte) void send_treble(uchar byte) void pt2313_init(void)
标签: void uchar send_audio_switch send_attenuators
上传时间: 2016-03-17
上传用户:牧羊人8920
#include <reg52.h> #include <stdio.h> #include <string.h> #define uchar unsigned char #define uint unsigned int #define isp_iap_byte_read 0x1 #define isp_iap_byte_program 0x2 #define isp_iap_sector_erase 0x3 #define wait_time 0x1
上传时间: 2016-05-18
上传用户:agent
//通过18B20检测的数字温度可在电脑上显示当前温度值 #include <reg52.h> #define uchar unsigned char #define uint unsigned int sbit DS=P2^2 //define interface uint temp // variable of temperature uchar flag1 // sign of the result positive or negative sbit dula=P2^6 sbit wela=P2^7
标签: define unsigned include 18B20
上传时间: 2014-01-19
上传用户:Andy123456