Description: 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
To Search:
File list (Check if you may need any files):
【OK】LCD1602\1602.h
.............\1602LCD的基本参数及引脚功能.doc
.............\1602字码表.gif
.............\M16_1602BLCD.c
.............\M16_1602BLCD接线图.pdf
.............\字符型液晶使用手册.doc
.............\注意.txt
【OK】LCD1602