📄 lcd_3200.h
字号:
/* `=========================================================================`
***************************************
**** * * ****
Title: LCD_3200
File name: LCD_3200.H
Project name: LCD_3200
*** ****
****************** * ******************
**** ****
Author: Petr PFEIFER
MPG Prague, Czech Republic
**** * * ****
***************************************
$Version: 1.006 Build: 2004-03-22,15:42:46
Description:
============
Header of LCD3200.h
Background LCD copy feature
Version >= 1.05 reentrant functions added.
Notes:
======
-none
..........................
. .
. ****************** .
. **PPPPPPPPPPPPPPPP .
. *PPPP*******PP**** .
. **PPP********PP*** .
. ***PPP******PP**** .
. *****PPP****PP**** .
. *****PPP****PP**** .
. PPPPPPPP****PP**** (R) .
. .
..........................
=-=-=-=-=-=
=-=-=-=-=-=-=-=-=-=-=-=-=
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Copyright 2004 ST Microelectronics
This code/file is provided as is and has no warranty,
implied or otherwise. You are free to use/modify any of the provided
code at your own risk in your applications with the expressed limitation
of liability (see below) so long as your product using the code
contains at least one uPSD products (device).
LIMITATION OF LIABILITY:
========================
NEITHER STMicroelectronics NOR ITS VENDORS OR AGENTS
SHALL BE LIABLE FOR ANY LOSS OF PROFITS, LOSS OF USE, LOSS OF DATA,
INTERRUPTION OF BUSINESS, NOR FOR INDIRECT, SPECIAL, INCIDENTAL OR
CONSEQUENTIAL DAMAGES OF ANY KIND WHETHER UNDER THIS AGREEMENT OR
OTHERWISE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
=-=-=-=-=-=-=-=-=-=-=-=-=
=-=-=-=-=-=
For current information on uPSD products,
please consult our pages on the World Wide Web:
www.st.com/psm
- - - - - - - - - - - -
STMicroelectronics GROUP OF COMPANIES
Australia - Brazil - China - Czech Republic - Finland - France - Germany
Hong Kong - India - Italy - Japan - Malaysia - Malta - Morocco - Singapore
Spain - Sweden - Switzerland - United Kingdom - U.S.A.
http://www.st.com
`========================================================================` */
#include "upsd_hardware.h" // extended registers in uPSD
#ifndef _LCD_H_
#define _LCD_H_
#define LCD_BCBuffer YES // Uncomment it to enable LCB buffer usage
#define LCD_ColNum 16 // Display - Number of columns
#define LCD_RowNum 2 // Display - Number of rows
#ifdef LCD_BCBuffer
#define LCD_ColNumBuf 18 // Display - Number of columns in buffer (+13/10)
#define LCD_BUFFER_SIZE LCD_ColNumBuf*LCD_RowNum
// The buffer size is LCD_RowNum*LCD_ColNumBuf.
// LCD_ColNum determines number of display(able) characters,
// LCD_ColNumBuf line size in buffer.
// LCD_ColNumBuf-LCD_ColNum characters canm be used for user-characters
// at the end of line ...
#endif
typedef xdata struct LCD_display_st
{
uchar LCD_CMD_WR; // LCD_BASE+0x00
uchar LCD_CMD_RD; // +0x01
uchar LCD_RAM_WR; // +0x02
uchar LCD_RAM_RD; // +0x03
}
DISPLAY;
// Read Only from Command register
#define BF_BIT 0x80 // Busy flag
// Write Only to Command register
#define DD_ADDR 0x80 // set DDRAM address
#define CG_ADDR 0x40 // set CGRAM address
// Prototypes
void initLCD(void); // initialize LCD module per specs
void printfLCD(uchar *chr_ptr, ...);
void LCD_delay_ms(int cnt);
#endif
/* *************************************************************************
*** ***
** *** End of File *** **
*** ***
************************************************************************* */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -