代码搜索结果
找到约 2,241 项符合
Keypad 的代码
nvram.c
#include
#include "TW803Reg.h"
#include "system.h"
#include "NVRam.h"
#include "TwoWire.h"
#include "KeyPad.h"
#include "T803_Util.h"
#define __GLOBAL_H__
#include "Global.h"
#inc
main.c
#include
#include
#include "TypeDef.h"
#include "lcd.h"
#include "keypad.h"
#define xtal 18
#define bLED_BL1 PORTG_Bit4
#define bLED_BL2 PORTG_Bit3
key.c
/********************************************
/* 键盘扫描函数
/* PROTC口用于扫描键盘
/* 函数返回键值,无按键时返回0x7F
/* 在其他文件中调用函数时应做以下说明
/* extern unsigned char scan_key(void);
/* extern unsigned char keypad(void);
stc2.asm
PUBLIC TIME0_INITIALIZE
PUBLIC TIME0_ISR
PUBLIC DISPLAY
PUBLIC DELAY
PUBLIC KEYPAD_SCAN
PUBLIC GOTKEY
PUBLIC START
PUBLIC STOP
PUBLIC SEND
PUBLIC READ
PUBLIC D5U
PUBLIC D1S
PUBLIC RDRD24C
desktop.upg
Generic Desktop
NORMAL
00 Undefined
01 Pointer
02 Mouse
03 Reserved
04 Joystick
05 Game Pad
06 Keyboard
07 Keypad
08-2F Reserved
30 X
31 Y
32 Z
33 Rx
34 Ry
35 Rz
36 Slider
37 Dial
3
io.doc
T h e I O k e y p a d / L C D I n t e r f a c e
(0) OVERVIEW
I often use a keypad/LCD unit with my 8051 stand-alone board to provide
an I/O interface. This unit is configured i
main.c
#include
// sfr IEN1 = 0xE8;
// sbit EKBI = IEN1^1;
void keypad_init(void)
{
// P0.5 must be pulled high
KBPATN = 0x20;
// Port 0 must match KBPATN to generate interrupt
lcd_key.plg
Build target 'Target 1'
compiling SCH51.C...
compiling LCD_A.C...
compiling DELAY_T0.C...
compiling MAIN.C...
compiling KEYPAD.C...
compiling LCD_KEY.C...
compiling 2_05_11G.C...
linking...
creating h
key_232.plg
Build target 'Target 1'
compiling MAIN.C...
compiling KEYPAD.C...
compiling KEYP_232.C...
compiling SCH51.C...
compiling 2_01_10I.C...
compiling PC_O.c...
compiling PC_O_in.c...
linking...
creating he
pid.uv2
### uVision2 Project, (C) Keil Software
### Do not modify !
Target (Target 1), 0x0000 // Tools: 'MCS-51'
Group (Source Group 1)
File 1,2, 0x0
File 1,1,