1 / 18

Parallel Port LCD Interface with the HD44780 Controller

Parallel Port LCD Interface with the HD44780 Controller. Liquid Crystal Display. LCD 의 장점 소비 전력이 작다 . 용이하게 다양한 모양 ( 문자 , 그림 등 ) 을 만들 수 있다 . LCD 는 오직 AC 로 구동하여야 한다 . 이 회로 에서는 Control 신호가 High 일 때만 V LCD 가 인가 되어 Display 된다. Liquid Crystal Display. LCD 제어 신호 Timing 예.

lyre
Télécharger la présentation

Parallel Port LCD Interface with the HD44780 Controller

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. Parallel Port LCD Interface with the HD44780 Controller

  2. Liquid Crystal Display • LCD 의 장점 • 소비 전력이 작다. • 용이하게 다양한 모양(문자, 그림 등)을 만들 수 있다. • LCD 는 오직 AC로 구동하여야 한다. • 이 회로 에서는 Control 신호가 High일 때만 VLCD가 인가 되어 Display 된다.

  3. Liquid Crystal Display • LCD 제어 신호 Timing 예

  4. Scanned LCD Interface • LCD Artwork 예 • 특정 Segment의 Front-plane과 Back-plane 사이에 일정 전압 이상이 인가 된 경우 해당 Segment가 표시 된다.

  5. Scanned LCD Interface각 Segment는 Front-plane과 Back-plane의 조합에 의하여 On/Off 가 제어 된다.

  6. HD44780 LCD Controller • Features • 5 x 8 and 5 x 10 dot matrix possible • Low power operation support: 2.7 to 5.5V • Correspond to high speed MPU bus interface: 2 MHz (when VCC = 5V) • 4-bit or 8-bit MPU interface enabled • 80 x 8-bit display RAM (80 characters max.) • 9,920-bit character generator ROM for a total of 240 character fonts • 208 character fonts (5 ´ 8 dot) • 32 character fonts (5 ´ 10 dot) • 64 x 8-bit character generator RAM • Wide range of instruction functions: • Display clear, cursor home, display on/off, cursor on/off, display character blink, cursor shift,display shift

  7. HD44780 Block Diagram

  8. Function Description • Registers • Instruction register (IR) : Stores instruction codes • display clear, cursor shift, • Address information • Display data RAM (DDRAM) • Character generator RAM (CGRAM) • Data register (DR) : DDRAM 이나 CGRAM에 Read/Write 하는 Data을 임시로 저장 • Busy Flag (BF) • HD44780가 내부 동작 모드일 경우(Busy 상태)에는 다음 명령을 받을 수 없다. • Busy Flag는 DB7에 Output 된다. • Address Counter (AC) • DDRAM 이나 CGRAM의 Address를 저장

  9. Function Description • Registers Selection Instruction Data

  10. Display Data RAM (DDRAM) • Display data RAM(DDRAM)은 80 x8 bits(80자)를 저장 • DDRAM address (ADD) • 1-Line Display(N=0) • 1-Line Display 예 • Shift Left • Shift Right

  11. Display Data RAM (DDRAM) 10진수 • 2-line display (N = 1) 16진수 16진수 • 2-Line 8 Character Display • 2-Line 16 Character Display

  12. Instructions

  13. Instructions

  14. Parallel Port LCD Module Interface 예

  15. GND - +5V - PA1 - PA2 - PA3 - - - - - PA4 - PA5 - PA6 - PA7 - - - 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 - Vss - Vdd - V0 - RS - R/W - E - DB0 - DB1 - DB2 - DB3 - DB4 - DB5 - DB6 - DB7 - A - K LCD 모듈 4Bit Interface 예(Port A 사용) AVRPin NO. Symbol Function - GND - Power supply - Contrast adjustment - Register select signal - Read/Write selection - Enable signal - Backlight( +) - Backlight( - ) 10K GND Backlight 밝기 조절에 브릿지 다이오드를 사용 하고, 점퍼 SW로 밝기를 선택 하도록 하였다. Backlight 회로는 생략 할 수 있음. +5V

  16. Parallel Port LCD Interface with the HD44780 Controller • HD44780 Controller 의 Access Type과 Timing Diagram E RS R/W Data

  17. Parallel Port LCD Interface 프로그램 예 • Cho_LCD_1602_4bit_soft 프로그램 참고

  18. Parallel Port LCD Interface with the HD44780 Controller Internal definitions and Port // PA1 PA2 PA3 PA4-PA7 // RS R/W E DB0-DB3 DB4-DB7 // // Register Selection // Read/Write // Enable // NoConnection // Data Bus #define LCD_INST_W 0x00 #define LCD_INST_R 0x04 #define LCD_DATA_W 0x02 #define LCD_DATA_R 0x06 #define LCD_COLTROL_E 0x08

More Related