Presentation is loading. Please wait.

Presentation is loading. Please wait.

The Practice of Micro-processor Yonam Institute of Digital Technology 04. FND (7-Segment) Control.

Similar presentations


Presentation on theme: "The Practice of Micro-processor Yonam Institute of Digital Technology 04. FND (7-Segment) Control."— Presentation transcript:

1 The Practice of Micro-processor Yonam Institute of Digital Technology 04. FND (7-Segment) Control

2 2  7-Segment  LED usually used to display represented information  LED can not easily display variant information  7-Segment device designed to solve the problem  Using in our life: Elevator’s floor indicator, Digital Clocks, Electric board, …  External Form & Structure Overview of 7-Segment a b c d g f e p

3  Anode Common 7-Segment  A device which organized 8 LED  each LED has VCC(Logic ‘H’) status for Off and GND(Logic ‘L’) status for On Overview of 7-Segment 3

4 Hexadecimal output in 7-Gegment(Anode) 4 DisplayHEXdot(p)gfedcba 00xc011000000 10xf911111001 20xa410100100 30xb010110000 40x9910011001 50x9210010010 60x8210000010 70xd811111000 80x8010000000 90x9810010000 a0x9910001000 b0x8310000011 c0xc611000110 d0xa110100001 e0x8610000110 f0x8e10001110.0x7f01111111

5  Test-Board contains four 7-Segments 7-Segments in Test Board 5 PortSpecify PA transmit data to 7-Segment using its data line which connected parallely (Output) PB.0~3 control 7-Segments through connected 2SA1015 Transistors

6  Arrangement of 7-Segment Components 7-Segment Display Data Bus, Chip Select Jumper Chip SelectQ3Q2Q1Q0 6

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

8 Practice of 7-Segment Control  4 개의 7-Segment 에 ‘1111’ 을 디스플레이하게 하라.  insert ‘0xf9’ into ‘PORTA’  permit ‘0’ or ‘1’ to ‘PORTB’  0 means that it select corresponding chip(FND)  ex) PORTB.0=0; or PORTB.0=1; b c 8

9  4 개의 7-Segment 에 ‘a~p’ 를 반복하여 순회하게 하라. … Orderpgfedcba 1(0xff)11111111 2(0xfe)11111110 3(0xfd)11111101 4(0xfb)11111011 5(0xf7)11110111 6(0xef)11101111 7(0xdf)11011111 8(0xbf)10111111 9(0x7f)01111111 9

10 10  4 개의 7-Segment 에 숫자 ‘0~9’ 를 오름차순으로 디스플레이 하라.  4 개의 7-Segment 에 숫자 ‘0~9’ 를 내림차순으로 디스플레이 하라. … …

11 Advanced Practice  7-Segment 에 ‘0000’ → ‘9999’ 업 카운터하며 디스플레이 하라.  7-Segment 에 ‘9999’ → ‘0000’ 다운 카운터하며 디스플레이 하라.  Digital Input 의 Switch 를 On 시킨 횟수를 카운터하여 7-Segment 에 디스플레이 하라.  다음과 같이 Digital Input 의 위치를 가정하여 Switch 의 동작을 7-Segment 에 반영하여 디스플레이 하라. 11 +-+-+-+-


Download ppt "The Practice of Micro-processor Yonam Institute of Digital Technology 04. FND (7-Segment) Control."

Similar presentations


Ads by Google