The following picture shows the assembled GLCD kit. The default microcontroller that comes with the development board is PIC16F886. The IDC cables connect the 8-bit data port of the GLCD to PORTC, and the GLCD control signals to PORTB. Table 1 shows the details of the mapped pins.A SMT potentiometer is provided on the backside of the GLCD adapter to adjust the contrast of the display. The GLCD adapter has got an on-board transistor switch for turning the GLCD back-light on and off. The IDC cable connect the switch to the RB3 pin, which must be set to 1 to turn the back-light on.I quickly tested the board with a “Hello World” program, which was written and compiled with mikroC Pro for PIC. I used the built-in GLCD library routines for the test program. An important thing to note here is that the mikroElektronika’s built-in GLCD library works with any KS0108 based 128×64 pixel GLCD that has active low CS1 and CS2 signals. However, the GLCD modulethat comes with the kit has CS1 and CS2 pins as active high signals. A simple solution to incorporate this difference in the mikroC code is to swap the CS1 and CS2 pins in the program, like this.

sbit GLCD_CS1 at RB5_bit;   // CS1 pin is actually connected to RB4
sbit GLCD_CS2 at RB4_bit;   // and CS2 to RB5

Download the source and HEX codes for the test program

Download the source and HEX codes for the DHT11 sensor

 

Related posts:

  1. Playstation Dual Force 2 controller connector pinout Dual force 2 Controller Pin Pin Name Description 1 DATA...
  2. Wireless 8×8 RGB LED Matrix On the PC is running the processing application, obtained...
  3. Graphical LCD Oscilloscope Using PIC Using the PIC18F2550 GLCD Text Test as a basis for...
  4. Simple Light Switch circuit This circuit build using Op Amp 741, Though designs vary...
  5. Water Level Indicator Use Alarm This circuit not only indicates the amount of water present...