ATMEL MCU用于MP3播放系统的控制源代码程序
源代码在线查看: lcd_drv.h
/*H**************************************************************************
* NAME: lcd_drv.h
*----------------------------------------------------------------------------
* Copyright (c) 2004 Toplow.
*----------------------------------------------------------------------------
* RELEASE: snd1c-refd-nf-4_0_3
* REVISION: 1.0
*----------------------------------------------------------------------------
* PURPOSE:
* This file contains the LCD definition
*****************************************************************************/
#ifndef _LCD_DRV_H_
#define _LCD_DRV_H_
/*_____ I N C L U D E S ____________________________________________________*/
/*_____ M A C R O S ________________________________________________________*/
/*_____ D E F I N I T I O N ________________________________________________*/
/*_____ D E C L A R A T I O N ______________________________________________*/
#define LCDPORT P4
sbit LCDRS = P1^7;
sbit LCDRW = P1^6;
sbit LCDEN = P1^4;
#define putchar(a) LCDRS = 1; LCDRW = 0; LCDEN = 1; LCDPORT = a; LCDEN = 0; LCDPORT = 0xff
#define putcomm(a) LCDRS = 0; LCDRW = 0; LCDEN = 1; LCDPORT = a; LCDEN = 0; LCDPORT = 0xff
/*uchar code EMPT[] = " ";
uchar code DISABLE[] = "无效";
uchar code STOP[] = "停止";
uchar code PLAY[] = "播放";
uchar code PAUSE[] = "暂停";
uchar code RECORD[] = "录音";
uchar code ERROR[] = "错误";
uchar code SONG[] = "歌曲";
uchar code VOICE[] = "声音";
uchar code MASS[] = "存储";
uchar code TOOL[] = "工具";
uchar code VOL[] = "VOL ";
uchar code BASS[] = "BAS ";
uchar code MEDIUM[] = "MED ";
uchar code TREBLE[] = "TRE ";
uchar code FATAL_SCREEN[] = "致命错误 ";
uchar code SBC_INIT[] = "sbcinitok ";
uchar code TEST[] = "播放器测试程序 ";
uchar code FIG[]="0123456789ABCDEF:";
*/
void ReadBusy(void);
void lcd_ini(void);
void printch(uchar pos, uchar *ptr);
void lcdcls (uchar pos);
void print_file_name();
void print_sound_level();
//void print_sound();
void disp_clock_reset();
void disp_clock_start();
void print_state_play();
void disp_clock_stop();
void print_state_pause();
void disp_name_stop();
void disp_end_of_play();
void print_state_error();
void print_repeat(bit);
void print_mode_mass();
#endif /* _LCD_DRV_H_ */