GPIO Expander Keypad and LCD Demo Board User’s Guide
FIGURE 2-4:
KEYPAD SCAN
Scan_Buttons
One nibble is set to input and
the other nibble is output (to
read the columns) (already
configured before entering
function).
Read INTCAP
Read INTCAP and place in a
variable.
To read the rows.
Swap inputs and
outputs
Merge with variable
containing INTCAP value.
The result can be looked up
in a table (switch statement)
to determine which key was
pressed.
Read GPIO
Determine key
press from lookup
table
Set I/O back to
default so it is
correct the next
time the function is
called
END
DS51636A-page 12
? 2006 Microchip Technology Inc.
相关PDF资料
GSAP 15-R FUSE 15A 250VAC AXIAL SLOW
GSB3211311WEU USB 3.0 DIP B RECP THRU HOLE
GSB343K33HR USB 3.0 MICRO B RECP SMT
GT-BG230L ARRESTOR 230VDC HD GASTUBE GLASS
GT-BG350L ARRESTOR 350VDC HD GASTUBE GLASS
GT-BG470L ARRESTOR 470VDC HD GASTUBE GLASS
GT-BG600L ARRESTOR 600VDC HD GASTUBE GLASS
GT-BG800L ARRESTOR 800VDC HD GASTUBE GLASS
相关代理商/技术参数
GPIOPI-01RBOW-200 制造商: 功能描述:200MM RASPBERRY PI GPIO CABLE26 PIN FEMALE HEADER 制造商:Cyntech 功能描述:200MM RASPBERRY PI GPIO CABLE26 PIN FEMALE HEADER
GPIQ 功能描述:通用继电器 1FormC SPDT 120 VAC RoHS:否 制造商:Omron Electronics 触点形式:1 Form A (SPST-NO) 触点电流额定值:150 A 线圈电压:24 VDC 线圈电阻:144 Ohms 线圈电流:167 mA 切换电压:400 V 安装风格:Chassis 触点材料:
GPIR 功能描述:通用继电器 RLY120VAC TRANS.SUPP RoHS:否 制造商:Omron Electronics 触点形式:1 Form A (SPST-NO) 触点电流额定值:150 A 线圈电压:24 VDC 线圈电阻:144 Ohms 线圈电流:167 mA 切换电压:400 V 安装风格:Chassis 触点材料:
GPJ10A 制造商:PANJIT 制造商全称:Pan Jit International Inc. 功能描述:IN-LINE GLASS PASSIVATED SINGLE-PHASE BRIDGE RECTIFIER
GPJ10B 制造商:PANJIT 制造商全称:Pan Jit International Inc. 功能描述:IN-LINE GLASS PASSIVATED SINGLE-PHASE BRIDGE RECTIFIER
GPJ10D 制造商:PANJIT 制造商全称:Pan Jit International Inc. 功能描述:IN-LINE GLASS PASSIVATED SINGLE-PHASE BRIDGE RECTIFIER
GPJ10G 制造商:PANJIT 制造商全称:Pan Jit International Inc. 功能描述:IN-LINE GLASS PASSIVATED SINGLE-PHASE BRIDGE RECTIFIER
GPJ10J 制造商:PANJIT 制造商全称:Pan Jit International Inc. 功能描述:IN-LINE GLASS PASSIVATED SINGLE-PHASE BRIDGE RECTIFIER