1 / 12

Chapter 5 GLCD

Chapter 5 GLCD. Eng. Hazem W. Marar. GLCDs. This Graphical LCD can support different language characters and even graphical capabilities. Low resolution images along with simple motion can be created using this GLCD. GLCD Pinout. Other Functions.

sunila
Download Presentation

Chapter 5 GLCD

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. Chapter 5GLCD Eng. Hazem W. Marar

  2. GLCDs This Graphical LCD can support different language characters and even graphical capabilities. Low resolution images along with simple motion can be created using this GLCD

  3. GLCD Pinout

  4. Other Functions • There are also vertical and horizontal line functions, dot functions, and some text and image functions.

  5. Code char GLCD_DataPort at PORTD; sbit GLCD_CS1 at RB0_bit; sbit GLCD_CS2 at RB1_bit; sbit GLCD_RS at RB2_bit; sbit GLCD_RW at RB3_bit; sbit GLCD_EN at RB4_bit; sbit GLCD_RST at RB5_bit; sbit GLCD_CS1_Direction at TRISB0_bit; sbit GLCD_CS2_Direction at TRISB1_bit; sbitGLCD_RS_Direction at TRISB2_bit; sbitGLCD_RW_Direction at TRISB3_bit; sbitGLCD_EN_Direction at TRISB4_bit; sbitGLCD_RST_Direction at TRISB5_bit; void main() { ANSEL = 0; // Configure AN pins as digital ANSELH = 0; C1ON_bit = 0; // Disable comparators C2ON_bit = 0; Glcd_Init(); // Initialize GLCD Glcd_Fill(0x00); // Clear GLCD }

  6. Images • Drawing images is simple once you convert your image into bits. Mikroelectronica offers “GLCD Bitmap Editor” that does this. • To use this tool you need to have a monochrome bitmap image. Photoshop or GIMP can be useful !

  7. Hardware Connection

  8. Lab exercise Chapter 5

More Related