ky_backlight51.msa

来自「矩力MP4 GPIO及线控键盘应用源代码」· MSA 代码 · 共 51 行

MSA
51
字号
/*****************************************************************
 ** key board interrupt                                         **
 **     write by jfwoo & Gongee                                 **
 **     2002-6-12                                               **
 ** (c) Copyright Actions Co,Ld.                                **
 **                                                             **
 ** revision history    1.0 2002-6-12                           **
 ** revision history    2.0 2002-7-15                           **
 ** revision history    3.0 2002-8-12                           **
 *****************************************************************/

        #include "KY_Hard.h"


        module  DriverKeyboard

        public  sKY_OpenBacklight
        public  sKY_CloseBacklight 
        
        rseg    BAC_IE
//------------------------------------------------------
sKY_OpenBacklight:                       //打开背光           
/*        //判断电压IO口<=5时不开背光
        in    a,(0x50)
        bit    6,a
        jr    nz,sKY_OpenBacklight_Start   //USB供电时,直接开背光 Merge by ccm 040623
        in    a,(0d0h)
        and    0x0f
        cp    6
        jr    c,sKY_OpenBacklight_Ret
sKY_OpenBacklight_Start:
        in      a,(0f4h)
        or      04h                     //EL LAMP 点亮
        out     (0f4h),a
sKY_OpenBacklight_Ret:       
*/        ld        a,1       
        ret

sKY_CloseBacklight:       
/*        in      a,(0f4h)   //EL LAMP 熄灭
        and     0fbh
        out     (0f4h),a
*/        ld        a,1
        ret
/*
********************************************************************************
*  the end of module
********************************************************************************
*/
        end

⌨️ 快捷键说明

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