1 / 42

Basic Input / Output Device

Basic Input / Output Device. Display Output Devices. LED (Light Emitting Diode) Circuit. LED On When Y is High / Low. 7-Segment LED. http://www.art-sci.udel.edu/ghw/phys245/05S/classpages/logic-7seg.html. 7-Segment, 14-Segment, 16-Segment and Matrix Display. Multiple Digit 7-Segment LED.

Download Presentation

Basic Input / Output Device

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Basic Input / Output Device Display Output Devices NTU DSD (Digital System Design) 2007

  2. LED (Light Emitting Diode) Circuit Jackie Kan - 2007 (jackiekan@LinTon.1D24H.com/jackiekan@csie.ntu.edu.tw) http://linton.1d24h.com/~jackiekan/

  3. LED On When Y is High / Low Jackie Kan - 2007 (jackiekan@LinTon.1D24H.com/jackiekan@csie.ntu.edu.tw) http://linton.1d24h.com/~jackiekan/

  4. 7-Segment LED http://www.art-sci.udel.edu/ghw/phys245/05S/classpages/logic-7seg.html Jackie Kan - 2007 (jackiekan@LinTon.1D24H.com/jackiekan@csie.ntu.edu.tw) http://linton.1d24h.com/~jackiekan/

  5. 7-Segment, 14-Segment, 16-Segment and Matrix Display Jackie Kan - 2007 (jackiekan@LinTon.1D24H.com/jackiekan@csie.ntu.edu.tw) http://linton.1d24h.com/~jackiekan/

  6. Multiple Digit 7-Segment LED Jackie Kan - 2007 (jackiekan@LinTon.1D24H.com/jackiekan@csie.ntu.edu.tw) http://linton.1d24h.com/~jackiekan/

  7. Multiple Digit 7-Segment LED Displaying 1 2 3 4 1 2 3 4 Jackie Kan - 2007 (jackiekan@LinTon.1D24H.com/jackiekan@csie.ntu.edu.tw) http://linton.1d24h.com/~jackiekan/

  8. LED Matrix Control Jackie Kan - 2007 (jackiekan@LinTon.1D24H.com/jackiekan@csie.ntu.edu.tw) http://linton.1d24h.com/~jackiekan/

  9. Answer of Quiz 1 Please use 4x8 LED matrix display the pattern, please complete the table as follows: (Use 1 as High, 0 as Low) A0 t0 t1 t2 t3 A1 A0 0 1 0 0 0 A1 0 0 1 0 0 A2 0 0 0 1 0 A3 0 0 0 0 1 A2 D0 0 1 0 0 0 D1 0 0 1 0 0 D2 0 1 A3 0 1 0 D3 0 0 1 0 1 D4 0 0 0 1 0 D5 0 0 0 0 1 D6 0 1 1 1 1 D7 0 0 1 0 0 D0 D1 D2 D3 D4 D5 D6 D7 2014/11/13 Jackie Kan - 2007 (jackiekan@LinTon.1D24H.com/jackiekan@csie.ntu.edu.tw) http://linton.1d24h.com/~jackiekan/ 9

  10. LCD and Advanced Display NTU DSD (Digital System Design) 2007

  11. E-Ink (電子墨水) • 其電子紙技術內所使用的微膠囊包含兩種黑白兩種顏料(稱為電子墨水E-Ink),並且內部所承載的為透明的流體,其中微膠囊的上面為透明玻璃,下方為電極,當電極改變時,顏料便會根據電極的正負而向上與向下移動,繼而造成黑與白的顯色。同時選用黑白塗料的好處是會增加其解析度,例如同一個膠囊可以同時受到正與負的電極驅動,也就是說,一個膠囊可以顯示出兩種顏色。由於E-Ink電子紙的基本模組非常簡單,因此該公司強調相關技術可以應用到不同表面材質的載體,包括塑膠、玻璃甚至是織布上 Jackie Kan - 2007 (jackiekan@LinTon.1D24H.com/jackiekan@csie.ntu.edu.tw) http://linton.1d24h.com/~jackiekan/

  12. VFD - Vacuum Fluorescent Display • 真空螢光顯示器是從真空管發展而來的顯示元件,雖然它的基本構造與真空管非常類似,然而發光原理卻與陰極射線管類似 • 利用鎢絲在真空中加熱放出電子撞擊低壓螢光粉而發光 Jackie Kan - 2007 (jackiekan@LinTon.1D24H.com/jackiekan@csie.ntu.edu.tw) http://linton.1d24h.com/~jackiekan/

  13. VFD Tube Driver Circuit Jackie Kan - 2007 (jackiekan@LinTon.1D24H.com/jackiekan@csie.ntu.edu.tw) http://linton.1d24h.com/~jackiekan/

  14. Sample VFD Control Board Jackie Kan - 2007 (jackiekan@LinTon.1D24H.com/jackiekan@csie.ntu.edu.tw) http://linton.1d24h.com/~jackiekan/

  15. Color-Element (色元素) Configurations for LCD Jackie Kan - 2007 (jackiekan@LinTon.1D24H.com/jackiekan@csie.ntu.edu.tw) http://linton.1d24h.com/~jackiekan/

  16. LCD Structure http://www.radiant.com.tw/product_03.htm Jackie Kan - 2007 (jackiekan@LinTon.1D24H.com/jackiekan@csie.ntu.edu.tw) http://linton.1d24h.com/~jackiekan/

  17. LCD Structure http://www.radiant.com.tw/product_03.htm Jackie Kan - 2007 (jackiekan@LinTon.1D24H.com/jackiekan@csie.ntu.edu.tw) http://linton.1d24h.com/~jackiekan/

  18. LCD Structure http://www.radiant.com.tw/product_03.htm Jackie Kan - 2007 (jackiekan@LinTon.1D24H.com/jackiekan@csie.ntu.edu.tw) http://linton.1d24h.com/~jackiekan/

  19. Color-Element (色元素) in Polymer OLED (聚合物有機LED) Jackie Kan - 2007 (jackiekan@LinTon.1D24H.com/jackiekan@csie.ntu.edu.tw) http://linton.1d24h.com/~jackiekan/

  20. LCD Light Source Jackie Kan - 2007 (jackiekan@LinTon.1D24H.com/jackiekan@csie.ntu.edu.tw) http://linton.1d24h.com/~jackiekan/

  21. The LCD Module NTU DSD (Digital System Design) 2007

  22. Character LCD Module Interface Jackie Kan - 2007 (jackiekan@LinTon.1D24H.com/jackiekan@csie.ntu.edu.tw) http://linton.1d24h.com/~jackiekan/

  23. Character LCD Commands Jackie Kan - 2007 (jackiekan@LinTon.1D24H.com/jackiekan@csie.ntu.edu.tw) http://linton.1d24h.com/~jackiekan/

  24. LCD Write Timing Diagram Jackie Kan - 2007 (jackiekan@LinTon.1D24H.com/jackiekan@csie.ntu.edu.tw) http://linton.1d24h.com/~jackiekan/

  25. LCD Read Timing Diagram Jackie Kan - 2007 (jackiekan@LinTon.1D24H.com/jackiekan@csie.ntu.edu.tw) http://linton.1d24h.com/~jackiekan/

  26. LCD Related Commands • Set On/Off • D – Display (顯示) • C – Cursor (游標) • B – Blink of Cursor Position (閃爍) EN D1 D0 D7 D6 D3 D2 RS R/W D5 D4 C B 0 0 1 D 0 0 0 0 0->1->0 Jackie Kan - 2007 (jackiekan@LinTon.1D24H.com/jackiekan@csie.ntu.edu.tw) http://linton.1d24h.com/~jackiekan/

  27. LCD Related Commands • Set On/Off • D – Display (顯示) • C – Cursor (游標) • B – Blink of Cursor Position (閃爍) EN D1 D0 D7 D6 D3 D2 RS R/W D5 D4 0 0 0 0 1 1 0 0 0 0 0->1->0 Jackie Kan - 2007 (jackiekan@LinTon.1D24H.com/jackiekan@csie.ntu.edu.tw) http://linton.1d24h.com/~jackiekan/

  28. LCD Related Commands • Set On/Off • D – Display (顯示) • C – Cursor (游標) • B – Blink of Cursor Position (閃爍) EN D1 D0 D7 D6 D3 D2 RS R/W D5 D4 0 0 0 0 1 1 0 0 0 0 0->1->0 Jackie Kan - 2007 (jackiekan@LinTon.1D24H.com/jackiekan@csie.ntu.edu.tw) http://linton.1d24h.com/~jackiekan/

  29. LCD Related Commands • Write Data to RAM • 0100 0001 = 0x41 • ASCII (0x41) = “A” D1 D0 D7 D6 D3 D2 RS R/W D5 D4 EN 0 1 0 1 0 0 1 0 0 0 0->1->0 Jackie Kan - 2007 (jackiekan@LinTon.1D24H.com/jackiekan@csie.ntu.edu.tw) http://linton.1d24h.com/~jackiekan/

  30. LCD Character Font Jackie Kan - 2007 (jackiekan@LinTon.1D24H.com/jackiekan@csie.ntu.edu.tw) http://linton.1d24h.com/~jackiekan/

  31. ASC II Font const BYTE ASCII_8x8PAT[128][8]={ {0x06,0x09,0x06,0x38,0x44,0x44,0x38,0x00},/* 00 */ {0x06,0x09,0x06,0x00,0x08,0x7C,0x00,0x00},/* 01 */ {0x06,0x09,0x06,0xC8,0xA4,0xA4,0x98,0x00},/* 02 */ {0x06,0x09,0x06,0x48,0x84,0x94,0x68,0x00},/* 03 */ {0x06,0x09,0x06,0x60,0x58,0xfc,0x40,0x00},/* 04 */ {0x06,0x09,0x06,0x9c,0x94,0x94,0x64,0x00},/* 05 */ {0x06,0x09,0x06,0x78,0x94,0x94,0x60,0x00},/* 06 */ {0x06,0x09,0x06,0x04,0xe4,0x14,0x0c,0x00},/* 07 */ {0x06,0x09,0x06,0x68,0x94,0x94,0x68,0x00},/* 08 */ {0x06,0x09,0x06,0x18,0xa4,0xa4,0x78,0x00},/* 09 */ {0x06,0x09,0x06,0xC0,0x30,0x2C,0x30,0xC0},/* 0A */ {0x06,0x09,0x06,0xFC,0x94,0x94,0x68,0x00},/* 0B */ {0x06,0x09,0x06,0x78,0x84,0x84,0x48,0x00},/* 0C */ {0x06,0x09,0x06,0xFC,0x84,0x84,0x78,0x00},/* 0D */ {0x06,0x09,0x06,0xfc,0x94,0x94,0x84,0x00},/* 0E */ {0x06,0x09,0x06,0xfc,0x14,0x14,0x04,0x00},/* 0F */ {0x00,0xFE,0xFE,0x7C,0x38,0x10,0x00,0x00},/* 10 */ {0x00,0x10,0x38,0x7C,0xFE,0xFE,0x00,0x00},/* 11 */ {0x00,0x02,0x0f,0xC8,0xA4,0xA4,0x98,0x00},/* 12 */ {0x00,0x02,0x0f,0x48,0x84,0x94,0x68,0x00},/* 13 */ msb lsb 0x00 = 0000 0000 0xFE = 1111 1110 0xFE = 1111 1110 0x7C = 0111 1100 0x38 = 0011 1000 0x10 = 0001 0000 0x00 = 0000 0000 0x00 = 0000 0000 lsb msb Jackie Kan - 2007 (jackiekan@LinTon.1D24H.com/jackiekan@csie.ntu.edu.tw) http://linton.1d24h.com/~jackiekan/

  32. Graphic LCD Control Circuit Jackie Kan - 2007 (jackiekan@LinTon.1D24H.com/jackiekan@csie.ntu.edu.tw) http://linton.1d24h.com/~jackiekan/

  33. Memory Map in Graphic LCD Jackie Kan - 2007 (jackiekan@LinTon.1D24H.com/jackiekan@csie.ntu.edu.tw) http://linton.1d24h.com/~jackiekan/

  34. Graphic LCD Commands Jackie Kan - 2007 (jackiekan@LinTon.1D24H.com/jackiekan@csie.ntu.edu.tw) http://linton.1d24h.com/~jackiekan/

  35. LCD Related Commands • Initially Display Off (EN 0->1->0) EN D1 D0 CSA CSB D7 D6 D3 D2 RS R/W D5 D4 0 0 1 1 0 0 0 0 0->1->0 0 0 0 0 Jackie Kan - 2007 (jackiekan@LinTon.1D24H.com/jackiekan@csie.ntu.edu.tw) http://linton.1d24h.com/~jackiekan/

  36. LCD Related Commands • Turn LCD On (EN 0->1->0) EN D1 D0 CSA CSB D7 D6 D3 D2 RS R/W D5 D4 1 1 0 1 0 0 1 1 0->1->0 0 0 1 1 Jackie Kan - 2007 (jackiekan@LinTon.1D24H.com/jackiekan@csie.ntu.edu.tw) http://linton.1d24h.com/~jackiekan/

  37. LCD Related Commands • Write 0x7E (EN 0->1->0) EN D1 D0 CSA CSB D7 D6 D3 D2 RS R/W D5 D4 1 0 0 1 0 1 1 1 0->1->0 1 0 1 1 Jackie Kan - 2007 (jackiekan@LinTon.1D24H.com/jackiekan@csie.ntu.edu.tw) http://linton.1d24h.com/~jackiekan/

  38. LCD Related Commands • Write 0x11 (EN 0->1->0) EN D1 D0 CSA CSB D7 D6 D3 D2 RS R/W D5 D4 0 1 0 1 0 0 0 0 0->1->0 1 0 0 1 Jackie Kan - 2007 (jackiekan@LinTon.1D24H.com/jackiekan@csie.ntu.edu.tw) http://linton.1d24h.com/~jackiekan/

  39. Memory Configuration Summary in Graphic LCD Jackie Kan - 2007 (jackiekan@LinTon.1D24H.com/jackiekan@csie.ntu.edu.tw) http://linton.1d24h.com/~jackiekan/

  40. LCD Related Commands • Enable both controller (EN 0->1->0) EN D1 D0 CSA CSB D7 D6 D3 D2 RS R/W D5 D4 1 1 0 0 0 0 1 1 0 0 1 1 0->1->0 Jackie Kan - 2007 (jackiekan@LinTon.1D24H.com/jackiekan@csie.ntu.edu.tw) http://linton.1d24h.com/~jackiekan/

  41. LCD Related Commands • Write 0xAA to LCD (EN 0->1->0) EN D1 D0 CSA CSB D7 D6 D3 D2 RS R/W D5 D4 0->1->0 1 0 0 0 1 0 1 0 1 0 1 0 Jackie Kan - 2007 (jackiekan@LinTon.1D24H.com/jackiekan@csie.ntu.edu.tw) http://linton.1d24h.com/~jackiekan/

  42. LCD Related Commands • Write 0x55 to LCD (EN 0->1->0) EN D1 D0 CSA CSB D7 D6 D3 D2 RS R/W D5 D4 0->1->0 0 1 0 0 0 1 0 1 1 0 0 1 Jackie Kan - 2007 (jackiekan@LinTon.1D24H.com/jackiekan@csie.ntu.edu.tw) http://linton.1d24h.com/~jackiekan/

More Related