Skip to main content

Posts

Showing posts with the label LCD

PIC16F887 877 programming in C Tutorial 5 LCD Interfacing

LCD Interfacing: In this tutorial i will show you how to interface 16x2 LCD with micro-controller. 16x2 means there are two rows and each row contain maximum 16 characters.  For more detail refer to the LCD datasheet, which you are using. Basic Connection: Applies 5v to pin 2 and gnd to pins 1 & 5. Use variable resistor at pin 3 to set contrast. Pins 7 to 14 are the data pins,, used to send/rec data. Pin 6 is of enable; every time when you write to lcd you should have to give high to low, to this pin. pin 4 is register select pin use to give commands like clear, home etc.   In this tutorial i will interface lcd in 4-bit instead of 8-bit, so we only required four data pins. Code: Lets write a code that will display the motor status and its direction; it will be fun!!!! Requirements: Design a motor controller circuit using l298 and display its status on lcd. LCD is connected to portb and motor controller circuit is at portd. Required two switches to change motor direction; i...

LCD Module in 4 bit Mode

In many projects use is made of alphanumeric LCDs that are driven internally by Hitachi’s industry-standard HD44780 controller. These displays can be driven either in 4-bit or 8-bit mode. In the first case only the high nibble (D4 to D7) of the display’s data bus is used. The four unused connections still deserve some closer attention. The data lines can be used as either inputs or outputs for the display. It is well known that an unloaded output is fine, but that a floating high-impedance input can cause problems. So what should you do with the four unused data lines when the display is used in 4-bit mode? This question arose when a circuit was submitted to us where D0-D3 where tied directly to GND (the same applies if it was to +5 V) to stop the problem of floating inputs. The LCD module was driven directly by a microcontroller, which was on a development board for testing various programs and I/O functions. There was a switch present for turning off the enable of the display when it wa...

Philips 26MD251D – LCD TV – Power Supply Schematic

Used ICs: L6562D – TEA1507 (SMPS Control) SMPS circuit diagram and PWB Click on the pictures to Magnify