Download presentation

Presentation is loading. Please wait.

Published byTia Stanard Modified over 2 years ago

1
The Practice of Micro-processor Yonam Institute of Digital Technology 05. Key Matrix Control

2
2 Key Matrix We have variant way to insert key information in digital circuit. For the way, we usually use Key Matrix. Because it is a way which can get many key information by using small number of ports. 4X4 Key Matrix uses 4 for out port uses 4 for in port Overview of Key Matrix

3
Key Data Input / Output Overview of Key Matrix 3

4
Test-Board contains 4x4 Key Matrix Key Matrix in Test Board 4 PortSpecify PC.0~3 insert signal to choice a line of Key Matrix (Output) PC.4~7 receive choose key value of Key Matrix (Input)

5
Circuit Diagram for Key Matrix Control e (1110) d (1101) b (1011) 7 (0111)

6
Arrangement of Key Matrix Components Key Matrix Data Bus Jumper 6 PC.0 ● PC.1 ● PC.2 ● PC.3 ● PC.4 ● PC.5 ● PC.6 ● PC.7 ● ● C.0 ● C.1 ● C.2 ● C.3 ● L.0 ● L.1 ● L.2 ● L.3 8583 PC PORT Key Matrix Part

7
7 Wiring Diagram AVR8535 MCU Module Multi Digital Breadboard PA.0 ● PA.1 ● PA.2 ● PA.3 ● PA.4 ● PA.5 ● PA.6 ● PA.7 ● ● Q.0 ● Q.1 ● Q.2 ● Q.3 ● A ● B ● C ● D ● E ● F ● G ● P PB.0 ● PB.1 ● PB.2 ● PB.3 ● PB.4 ● PB.5 ● PB.6 ● PB.7 ● 8583 PA PORT 8583 PB PORT 7-Segment Part 7-Segment Part PC.0 ● PC.1 ● PC.2 ● PC.3 ● PC.4 ● PC.5 ● PC.6 ● PC.7 ● ● C.0 ● C.1 ● C.2 ● C.3 ● L.0 ● L.1 ● L.2 ● L.3 8583 PC PORT Key Matrix Part

8
Practice of Key Matrix Control key Matrix 에서 ‘4’ 에 해당하는 Key 가 눌려지면 7-Segment 로 ‘4’ 를 출력 ( 단, ‘4’ 가 아닌 다른 key 가 눌려지면 FND 는 변동사항 없음 ) 8 CDEF 89AB 4567 0123 CDEF 89AB 4567 0123

9
key Matrix 에서 ‘1’ 에 해당하는 Key 가 눌려지면 7-Segment 로 ‘1’ 을 출력 ( 단, ‘1’ 이 아닌 다른 key 가 눌려지면 FND 는 변동사항 없음 ) 9 CDEF 89AB 4567 0123 CDEF 89AB 4567 0123

10
10 Key Matrix 의 Key 값을 읽어서 7-Segment 로 출력 CDEF 89AB 4567 0123 CDEF 89AB 4567 0123 CDEF 89AB 4567 0123 CDEF 89AB 4567 0123 …

11
Advanced Practice Key Matrix 를 사용하여 Password 를 입력하는 전자 자물쇠 구현 Password 저장 mode ( 초기값 “0000” 이다 ) Password 입력 mode 11 (MSB)(LSB) (MSB)(LSB) CDEF 89AB 4567 0123 CDEF 89AB 4567 0123

12
Password 입력이 맞으면 Password 입력이 틀리면 반복 ▲ 7-Segment Part ▲ Digital I/O Part

Similar presentations

© 2017 SlidePlayer.com Inc.

All rights reserved.

Ads by Google