⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lcd_1.inc

📁 电容感应程序
💻 INC
字号:
;;*****************************************************************************
;;*****************************************************************************
;;  FILENAME:   LCD_1.inc
;;  Version: 1.4, Updated on 2006/09/13 at 15:22:59
;;  Generated by PSoC Designer ver 4.3  b1884 : 23 June, 2006
;;
;;  DESCRIPTION:  Assembler declarations for the LCD user module interface
;;                for the M8C based PSoC family of devices.
;;-----------------------------------------------------------------------------
;;  Copyright (c) Cypress MicroSystems 2000-2006. All Rights Reserved.
;;*****************************************************************************
;;*****************************************************************************


; LCD connections to PSoC port
;
; PX.0 ==> LCD D4
; PX.1 ==> LCD D5
; PX.2 ==> LCD D6
; PX.3 ==> LCD D7
; PX.4 ==> LCD E
; PX.5 ==> LCD RS
; PX.6 ==> LCD R/W


include "m8c.inc"

;------------------------------------------------------
;  Register Address Constants for  LCD_1
;------------------------------------------------------

LCD_1_Port:                            equ   PRT2DR
LCD_1_PortMode0:                       equ   PRT2DM0
LCD_1_PortMode1:                       equ   PRT2DM1

LCD_1_BARGRAPH_ENABLE:                 equ   1


;-----------------------------------------------
;  Constants for LCD_1
;-----------------------------------------------
; LCD commands

LCD_1_DISP_ON:                    equ   0Ch
LCD_1_DISP_OFF:                   equ   08h
LCD_1_CURSOR_ON:                  equ   0Eh
LCD_1_CURSOR_OFF:                 equ   0Ch
LCD_1_CURSOR_BLINK:               equ   0Fh
LCD_1_CURSOR_WINK:                equ   0Dh
LCD_1_CURSOR_SH_LEFT:             equ   10h
LCD_1_CURSOR_SH_RIGHT:            equ   14h
LCD_1_CURSOR_HOME:                equ   02h
LCD_1_CURSOR_LEFT:                equ   04h
LCD_1_CURSOR_RIGHT:               equ   06h
LCD_1_DISP_CLEAR_HOME:            equ   01h

LCD_1_SOLID_BG:                   equ   00h
LCD_1_LINE_BG:                    equ   01h

LCD_1_PORT_MASK:                  equ   7Fh

ICE_PORT_SYNC:     equ   0   ; This flag must be set to one to work around
                             ; the async read issue with the ICE with the 
                             ; 25/26xxx family of devices.  It will help
                             ; to eliminate "Invalid memory reference" errors.
                             ; It is not required when running without the ICE
							 ; or when using any other family besides the 
							 ; 25/26xxx family. If not using the ICE, this flag 
							 ; may be set to 0.

; end of file LCD_1.inc

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -