Basic Input Output Device Display Output Devices 20211029

Basic Input / Output Device Display Output Devices 2021/10/29 Jackie Kan - 2007 (jackiekan@Lin. Ton. 1 D 24 H. com/jackiekan@csie. ntu. edu. tw) NTU DSDhttp: //linton. 1 d 24 h. com/~jackiekan/ (Digital System Design) 2007 1

LED (Light Emitting Diode) Circuit 2021/10/29 Jackie Kan - 2007 (jackiekan@Lin. Ton. 1 D 24 H. com/jackiekan@csie. ntu. edu. tw) http: //linton. 1 d 24 h. com/~jackiekan/ 2

LED On When Y is High / Low 2021/10/29 Jackie Kan - 2007 (jackiekan@Lin. Ton. 1 D 24 H. com/jackiekan@csie. ntu. edu. tw) http: //linton. 1 d 24 h. com/~jackiekan/ 3

7 -Segment LED http: //www. art-sci. udel. edu/ghw/phys 245/05 S/classpages/logic-7 seg. html 2021/10/29 Jackie Kan - 2007 (jackiekan@Lin. Ton. 1 D 24 H. com/jackiekan@csie. ntu. edu. tw) http: //linton. 1 d 24 h. com/~jackiekan/ 4

7 -Segment, 14 -Segment, 16 -Segment and Matrix Display 2021/10/29 Jackie Kan - 2007 (jackiekan@Lin. Ton. 1 D 24 H. com/jackiekan@csie. ntu. edu. tw) http: //linton. 1 d 24 h. com/~jackiekan/ 5

Multiple Digit 7 -Segment LED 2021/10/29 Jackie Kan - 2007 (jackiekan@Lin. Ton. 1 D 24 H. com/jackiekan@csie. ntu. edu. tw) http: //linton. 1 d 24 h. com/~jackiekan/ 6

Multiple Digit 7 -Segment LED Displaying 1 2021/10/29 2 3 4 1 2 Jackie Kan - 2007 (jackiekan@Lin. Ton. 1 D 24 H. com/jackiekan@csie. ntu. edu. tw) http: //linton. 1 d 24 h. com/~jackiekan/ 3 4 7

LED Matrix Control 2021/10/29 Jackie Kan - 2007 (jackiekan@Lin. Ton. 1 D 24 H. com/jackiekan@csie. ntu. edu. tw) http: //linton. 1 d 24 h. com/~jackiekan/ 8

Answer of Quiz 1 Please use 4 x 8 LED matrix display the pattern, please complete the table as follows: (Use 1 as High, 0 as Low) A 0 A 1 A 2 A 3 D 0 D 1 D 2 D 3 D 4 D 5 D 6 D 7 0 0 0 t 0 1 0 0 0 1 0 t 1 0 0 0 1 1 t 2 0 0 1 0 1 0 t 3 0 0 0 1 0 1 1 0 A 1 A 2 A 3 D 0 D 1 D 2 D 3 D 4 D 5 D 6 D 7 2021/10/29 Jackie Kan - 2007 (jackiekan@Lin. Ton. 1 D 24 H. com/jackiekan@csie. ntu. edu. tw) http: //linton. 1 d 24 h. com/~jackiekan/ 9

LCD and Advanced Display 2021/10/29 Jackie Kan - 2007 (jackiekan@Lin. Ton. 1 D 24 H. com/jackiekan@csie. ntu. edu. tw) NTU DSDhttp: //linton. 1 d 24 h. com/~jackiekan/ (Digital System Design) 2007 10



VFD Tube Driver Circuit 2021/10/29 Jackie Kan - 2007 (jackiekan@Lin. Ton. 1 D 24 H. com/jackiekan@csie. ntu. edu. tw) http: //linton. 1 d 24 h. com/~jackiekan/ 13

Sample VFD Control Board 2021/10/29 Jackie Kan - 2007 (jackiekan@Lin. Ton. 1 D 24 H. com/jackiekan@csie. ntu. edu. tw) http: //linton. 1 d 24 h. com/~jackiekan/ 14

Color-Element (色元素) Configurations for LCD 2021/10/29 Jackie Kan - 2007 (jackiekan@Lin. Ton. 1 D 24 H. com/jackiekan@csie. ntu. edu. tw) http: //linton. 1 d 24 h. com/~jackiekan/ 15

LCD Structure http: //www. radiant. com. tw/product_03. htm 2021/10/29 Jackie Kan - 2007 (jackiekan@Lin. Ton. 1 D 24 H. com/jackiekan@csie. ntu. edu. tw) http: //linton. 1 d 24 h. com/~jackiekan/ 16

LCD Structure http: //www. radiant. com. tw/product_03. htm 2021/10/29 Jackie Kan - 2007 (jackiekan@Lin. Ton. 1 D 24 H. com/jackiekan@csie. ntu. edu. tw) http: //linton. 1 d 24 h. com/~jackiekan/ 17

LCD Structure http: //www. radiant. com. tw/product_03. htm 2021/10/29 Jackie Kan - 2007 (jackiekan@Lin. Ton. 1 D 24 H. com/jackiekan@csie. ntu. edu. tw) http: //linton. 1 d 24 h. com/~jackiekan/ 18

Color-Element (色元素) in Polymer OLED (聚合物有機LED) 2021/10/29 Jackie Kan - 2007 (jackiekan@Lin. Ton. 1 D 24 H. com/jackiekan@csie. ntu. edu. tw) http: //linton. 1 d 24 h. com/~jackiekan/ 19

LCD Light Source 2021/10/29 Jackie Kan - 2007 (jackiekan@Lin. Ton. 1 D 24 H. com/jackiekan@csie. ntu. edu. tw) http: //linton. 1 d 24 h. com/~jackiekan/ 20

The LCD Module 2021/10/29 Jackie Kan - 2007 (jackiekan@Lin. Ton. 1 D 24 H. com/jackiekan@csie. ntu. edu. tw) NTU DSDhttp: //linton. 1 d 24 h. com/~jackiekan/ (Digital System Design) 2007 21

Character LCD Module Interface 2021/10/29 Jackie Kan - 2007 (jackiekan@Lin. Ton. 1 D 24 H. com/jackiekan@csie. ntu. edu. tw) http: //linton. 1 d 24 h. com/~jackiekan/ 22

Character LCD Commands 2021/10/29 Jackie Kan - 2007 (jackiekan@Lin. Ton. 1 D 24 H. com/jackiekan@csie. ntu. edu. tw) http: //linton. 1 d 24 h. com/~jackiekan/ 23

LCD Write Timing Diagram 2021/10/29 Jackie Kan - 2007 (jackiekan@Lin. Ton. 1 D 24 H. com/jackiekan@csie. ntu. edu. tw) http: //linton. 1 d 24 h. com/~jackiekan/ 24

LCD Read Timing Diagram 2021/10/29 Jackie Kan - 2007 (jackiekan@Lin. Ton. 1 D 24 H. com/jackiekan@csie. ntu. edu. tw) http: //linton. 1 d 24 h. com/~jackiekan/ 25

LCD Related Commands n Set On/Off p D – Display (顯示) p C – Cursor (游標) p B – Blink of Cursor Position (閃爍) 2021/10/29 EN RS R/W D 7 D 6 D 5 D 4 D 3 D 2 D 1 D 0 0 ->1 ->0 0 0 0 1 D C B Jackie Kan - 2007 (jackiekan@Lin. Ton. 1 D 24 H. com/jackiekan@csie. ntu. edu. tw) http: //linton. 1 d 24 h. com/~jackiekan/ 26

LCD Related Commands n Set On/Off p D – Display (顯示) p C – Cursor (游標) p B – Blink of Cursor Position (閃爍) 2021/10/29 EN RS R/W D 7 D 6 D 5 D 4 D 3 D 2 D 1 D 0 0 ->1 ->0 0 0 0 1 1 0 0 Jackie Kan - 2007 (jackiekan@Lin. Ton. 1 D 24 H. com/jackiekan@csie. ntu. edu. tw) http: //linton. 1 d 24 h. com/~jackiekan/ 27

LCD Related Commands n Set On/Off p D – Display (顯示) p C – Cursor (游標) p B – Blink of Cursor Position (閃爍) 2021/10/29 EN RS R/W D 7 D 6 D 5 D 4 D 3 D 2 D 1 D 0 0 ->1 ->0 0 0 0 1 1 0 0 Jackie Kan - 2007 (jackiekan@Lin. Ton. 1 D 24 H. com/jackiekan@csie. ntu. edu. tw) http: //linton. 1 d 24 h. com/~jackiekan/ 28

LCD Related Commands n Write Data to RAM p 0100 0001 = 0 x 41 p ASCII (0 x 41) = “A” 2021/10/29 EN RS R/W D 7 D 6 D 5 D 4 D 3 D 2 D 1 D 0 0 ->1 ->0 1 0 0 0 1 Jackie Kan - 2007 (jackiekan@Lin. Ton. 1 D 24 H. com/jackiekan@csie. ntu. edu. tw) http: //linton. 1 d 24 h. com/~jackiekan/ 29

LCD Character Font 2021/10/29 Jackie Kan - 2007 (jackiekan@Lin. Ton. 1 D 24 H. com/jackiekan@csie. ntu. edu. tw) http: //linton. 1 d 24 h. com/~jackiekan/ 30
![ASC II Font const BYTE ASCII_8 x 8 PAT[128][8]={ {0 x 06, 0 x ASC II Font const BYTE ASCII_8 x 8 PAT[128][8]={ {0 x 06, 0 x](http://slidetodoc.com/presentation_image_h2/f64f8a9b10ade2aaccfd0f143777b26e/image-31.jpg)
ASC II Font const BYTE ASCII_8 x 8 PAT[128][8]={ {0 x 06, 0 x 09, 0 x 06, 0 x 38, 0 x 44, 0 x 38, 0 x 00}, /* {0 x 06, 0 x 09, 0 x 06, 0 x 00, 0 x 08, 0 x 7 C, 0 x 00}, /* {0 x 06, 0 x 09, 0 x 06, 0 x. C 8, 0 x. A 4, 0 x 98, 0 x 00}, /* {0 x 06, 0 x 09, 0 x 06, 0 x 48, 0 x 84, 0 x 94, 0 x 68, 0 x 00}, /* {0 x 06, 0 x 09, 0 x 06, 0 x 60, 0 x 58, 0 xfc, 0 x 40, 0 x 00}, /* {0 x 06, 0 x 09, 0 x 06, 0 x 9 c, 0 x 94, 0 x 64, 0 x 00}, /* {0 x 06, 0 x 09, 0 x 06, 0 x 78, 0 x 94, 0 x 60, 0 x 00}, /* {0 x 06, 0 x 09, 0 x 06, 0 x 04, 0 xe 4, 0 x 14, 0 x 0 c, 0 x 00}, /* {0 x 06, 0 x 09, 0 x 06, 0 x 68, 0 x 94, 0 x 68, 0 x 00}, /* {0 x 06, 0 x 09, 0 x 06, 0 x 18, 0 xa 4, 0 x 78, 0 x 00}, /* {0 x 06, 0 x 09, 0 x 06, 0 x. C 0, 0 x 30, 0 x 2 C, 0 x 30, 0 x. C 0}, /* {0 x 06, 0 x 09, 0 x 06, 0 x. FC, 0 x 94, 0 x 68, 0 x 00}, /* {0 x 06, 0 x 09, 0 x 06, 0 x 78, 0 x 84, 0 x 48, 0 x 00}, /* {0 x 06, 0 x 09, 0 x 06, 0 x. FC, 0 x 84, 0 x 78, 0 x 00}, /* {0 x 06, 0 x 09, 0 x 06, 0 xfc, 0 x 94, 0 x 84, 0 x 00}, /* {0 x 06, 0 x 09, 0 x 06, 0 xfc, 0 x 14, 0 x 04, 0 x 00}, /* {0 x 00, 0 x. FE, 0 x 7 C, 0 x 38, 0 x 10, 0 x 00}, /* {0 x 00, 0 x 10, 0 x 38, 0 x 7 C, 0 x. FE, 0 x 00}, /* {0 x 00, 0 x 02, 0 x 0 f, 0 x. C 8, 0 x. A 4, 0 x 98, 0 x 00}, /* {0 x 00, 0 x 02, 0 x 0 f, 0 x 48, 0 x 84, 0 x 94, 0 x 68, 0 x 00}, /* 00 01 02 03 04 05 06 07 08 09 0 A 0 B 0 C 0 D 0 E 0 F 10 11 12 13 */ */ */ */ */ msb lsb 0 x 00 = 0000 0 x. FE = 1111 1110 0 x 7 C = 0111 1100 0 x 38 = 0011 1000 0 x 10 = 0001 0000 0 x 00 = 0000 lsb msb 2021/10/29 Jackie Kan - 2007 (jackiekan@Lin. Ton. 1 D 24 H. com/jackiekan@csie. ntu. edu. tw) http: //linton. 1 d 24 h. com/~jackiekan/ 31

Graphic LCD Control Circuit 2021/10/29 Jackie Kan - 2007 (jackiekan@Lin. Ton. 1 D 24 H. com/jackiekan@csie. ntu. edu. tw) http: //linton. 1 d 24 h. com/~jackiekan/ 32

Memory Map in Graphic LCD 2021/10/29 Jackie Kan - 2007 (jackiekan@Lin. Ton. 1 D 24 H. com/jackiekan@csie. ntu. edu. tw) http: //linton. 1 d 24 h. com/~jackiekan/ 33

Graphic LCD Commands 2021/10/29 Jackie Kan - 2007 (jackiekan@Lin. Ton. 1 D 24 H. com/jackiekan@csie. ntu. edu. tw) http: //linton. 1 d 24 h. com/~jackiekan/ 34

LCD Related Commands n Initially Display Off (EN 0 ->1 ->0) EN 0 ->1 ->0 2021/10/29 CSA CSB RS 1 1 0 R/W D 7 D 6 D 5 D 4 D 3 D 2 D 1 D 0 0 0 0 0 Jackie Kan - 2007 (jackiekan@Lin. Ton. 1 D 24 H. com/jackiekan@csie. ntu. edu. tw) http: //linton. 1 d 24 h. com/~jackiekan/ 35

LCD Related Commands n Turn LCD On (EN 0 ->1 ->0) EN 0 ->1 ->0 2021/10/29 CSA CSB RS 0 1 0 R/W D 7 D 6 D 5 D 4 D 3 D 2 D 1 D 0 0 1 1 1 Jackie Kan - 2007 (jackiekan@Lin. Ton. 1 D 24 H. com/jackiekan@csie. ntu. edu. tw) http: //linton. 1 d 24 h. com/~jackiekan/ 36

LCD Related Commands n Write 0 x 7 E (EN 0 ->1 ->0) EN 0 ->1 ->0 2021/10/29 CSA CSB RS 0 1 1 R/W D 7 D 6 D 5 D 4 D 3 D 2 D 1 D 0 0 0 1 1 1 0 Jackie Kan - 2007 (jackiekan@Lin. Ton. 1 D 24 H. com/jackiekan@csie. ntu. edu. tw) http: //linton. 1 d 24 h. com/~jackiekan/ 37

LCD Related Commands n Write 0 x 11 (EN 0 ->1 ->0) EN 0 ->1 ->0 2021/10/29 CSA CSB RS 0 1 1 R/W D 7 D 6 D 5 D 4 D 3 D 2 D 1 D 0 0 0 1 Jackie Kan - 2007 (jackiekan@Lin. Ton. 1 D 24 H. com/jackiekan@csie. ntu. edu. tw) http: //linton. 1 d 24 h. com/~jackiekan/ 38

Memory Configuration Summary in Graphic LCD 2021/10/29 Jackie Kan - 2007 (jackiekan@Lin. Ton. 1 D 24 H. com/jackiekan@csie. ntu. edu. tw) http: //linton. 1 d 24 h. com/~jackiekan/ 39

LCD Related Commands n Enable both controller (EN 0 ->1 ->0) EN 0 ->1 ->0 2021/10/29 CSA CSB RS 0 0 0 R/W D 7 D 6 D 5 D 4 D 3 D 2 D 1 D 0 0 1 1 1 Jackie Kan - 2007 (jackiekan@Lin. Ton. 1 D 24 H. com/jackiekan@csie. ntu. edu. tw) http: //linton. 1 d 24 h. com/~jackiekan/ 40

LCD Related Commands n Write 0 x. AA to LCD (EN 0 ->1 ->0) EN 0 ->1 ->0 2021/10/29 CSA CSB RS 0 0 1 R/W D 7 D 6 D 5 D 4 D 3 D 2 D 1 D 0 0 1 0 1 0 Jackie Kan - 2007 (jackiekan@Lin. Ton. 1 D 24 H. com/jackiekan@csie. ntu. edu. tw) http: //linton. 1 d 24 h. com/~jackiekan/ 41

LCD Related Commands n Write 0 x 55 to LCD (EN 0 ->1 ->0) EN 0 ->1 ->0 2021/10/29 CSA CSB RS 0 0 1 R/W D 7 D 6 D 5 D 4 D 3 D 2 D 1 D 0 0 0 1 0 1 Jackie Kan - 2007 (jackiekan@Lin. Ton. 1 D 24 H. com/jackiekan@csie. ntu. edu. tw) http: //linton. 1 d 24 h. com/~jackiekan/ 42
- Slides: 42