📄 lcd.inc
字号:
;;*****************************************************************************
;;*****************************************************************************
;; FILENAME: LCD.inc
;; Version: 1.4, Updated on 2006/06/09 at 09:53:12
;; Generated by PSoC Designer ver 4.4 b1884 : 14 Jan, 2007
;;
;; 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
;------------------------------------------------------
LCD_Port: equ PRT2DR
LCD_PortMode0: equ PRT2DM0
LCD_PortMode1: equ PRT2DM1
LCD_BARGRAPH_ENABLE: equ 1
;-----------------------------------------------
; Constants for LCD
;-----------------------------------------------
; LCD commands
LCD_DISP_ON: equ 0Ch
LCD_DISP_OFF: equ 08h
LCD_CURSOR_ON: equ 0Eh
LCD_CURSOR_OFF: equ 0Ch
LCD_CURSOR_BLINK: equ 0Fh
LCD_CURSOR_WINK: equ 0Dh
LCD_CURSOR_SH_LEFT: equ 10h
LCD_CURSOR_SH_RIGHT: equ 14h
LCD_CURSOR_HOME: equ 02h
LCD_CURSOR_LEFT: equ 04h
LCD_CURSOR_RIGHT: equ 06h
LCD_DISP_CLEAR_HOME: equ 01h
LCD_SOLID_BG: equ 00h
LCD_LINE_BG: equ 01h
LCD_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.inc
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -