Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - c1.h
Search - c1.h - List
DL : 0
这个文件是西门子16位单片机从c166上的一些应用程序的源代码,都是用标准c语言写的-Siemens 16 microcontroller from c166 on the application's source code, are standard written language c
Date : 2025-12-19 Size : 239kb User : cguo

DL : 0
LCD1602相关资料 //M16_8MHZ_20090304 /************************宏定义******************************/ #ifndef __LCD1602_H #define __LCD1602_H #include <iom16v.h> #include <macros.h> #define uint unsigned int #define uchar unsigned char #define LCD1602_EN_PORT PORTA #define LCD1602_RW_PORT PORTA #define LCD1602_RS_PORT PORTA #define LCD1602_DATA_PORT PORTA #define LCD1602_EN (1 << PA0) #define LCD1602_RW (1 << PA1) #define LCD1602_RS (1 << PA2) #define LCD1602_DATA 0xf0 //DATA必须为连续的端口高四位 #define LCD1602_EN_DDR DDRA #define LCD1602_RW_DDR DDRA #define LCD1602_RS_DDR DDRA #define LCD1602_DATA_DDR a DDRA #define LCD1602_DATA_PIN PINA // uchar c1[8] = {0x08,0x0f,0x12,0x0f,0x0a,0x1f,0x02,0x02}, //年 // c2[8] = {0x0f,0x09,0x0f,0x09,0x0f,0x09,0x0b,0x11}, //月 // c3[8] = {0x0f,0x09,0x09,0x09,0x0f,0x09,0x09,0x0f} //日 -LCD1602 relevant information// M16_8MHZ_20090304 /************************ macro definition****************************** /# ifndef __ LCD1602_H# define __ LCD1602_H# include <iom16v.h># Include <macros.h># Define uint unsigned int# define uchar unsigned char# define LCD1602_EN_PORT PORTA# define LCD1602_RW_PORT PORTA# define LCD1602_RS_PORT PORTA# define LCD1602_DATA_PORT PORTA# define LCD1602_EN (1 < < PA0)# define LCD1602_RW (1 < < PA1)# define LCD1602_RS (1 < < PA2)# define LCD1602_DATA 0xf0// DATA must be contiguous ports high four# define LCD1602_EN_DDR DDRA# define LCD1602_RW_DDR DDRA# define LCD1602_RS_DDR DDRA# define LCD1602_DATA_DDR a DDRA# define LCD1602_DATA_PIN PINA// uchar c1 [8] = {0x08, 0x0f, 0x12, 0x0f, 0x0a, 0x1f, 0x02, 0x02},// ​ ​ Year// c2 [8] = {0x0f, 0x09, 0x0f, 0x09, 0x0f, 0x09, 0x0b, 0x11},// ​ ​ month// c3 [ 8] = {0x0f, 0x09, 0x09, 0x09, 0x0f, 0x09, 0x09, 0x0f} // Day
Date : 2025-12-19 Size : 356kb User : feiniao200201
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.