Showing posts with label mode. Show all posts
Showing posts with label mode. Show all posts

Sunday, November 9, 2014

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 wasn’t being used, but this could be forgotten during some experiments. When the R/Wline of the display is permanently tied to GND (data only goes from the microcontroller to the display) then the remaining lines can safely be connected to the supply (+ve or GND). In this application however, the R/Wline was also controlled by the microcontroller. When the display is initialised correctly then nothing much should go wrong. The data sheet for the HD44780 is not very clear as to what happens with the low nibble during initialisation.

Circuit diagram :

LCD Module in 4-bit Mode Circuit Diagram

After the power-on reset the display will always be in 8-bit mode. A simple experiment (see the accompanying circuit) reveals that it is safer to use pull-down resistors to GND for the four low data lines. The data lines of the display are configured as outputs in this circuit (R/Wis high) and the ‘enable’ is toggled (which can still happen, even though it is not the intention to communicate with the display). Note that in practice the RS line will also be driven by an I/O pin, and in our circuit the R/W line as well. All data lines become high and it’s not certain if (and if so, for how long) the display can survive with four shorted data lines. The moral of the story is: in 4-bit mode you should always tie D0-D3 via resistors to ground or positive.
Read More..

Thursday, September 4, 2014

Simple 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 schema 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 wasn’t being used, but this could be forgotten during some experiments. When the R/Wline of the display is permanently tied to GND (data only goes from the microcontroller to the display) then the remaining lines can safely be connected to the supply (+ve or GND). In this application however, the R/Wline was also controlled by the microcontroller. When the display is initialised correctly then nothing much should go wrong. The data sheet for the HD44780 is not very clear as to what happens with the low nibble during initialisation.


After the power-on reset the display will always be in 8-bit mode. A simple experiment (see the accompanying schema) reveals that it is safer to use pull-down resistors to GND for the four low data lines. The data lines of the display are configured as outputs in this schema (R/Wis high) and the ‘enable’ is toggled (which can still happen, even though it is not the intention to communicate with the display). Note that in practice the RS line will also be driven by an I/O pin, and in our schema the R/W line as well. All data lines become high and it’s not certain if (and if so, for how long) the display can survive with four shorted data lines. The moral of the story is: in 4-bit mode you should always tie D0-D3 via resistors to ground or positive.



Author: L. Lemmens
Copyright: Elektor Electronics

Read More..

Saturday, August 30, 2014

Simple Switch Mode Voltage Regulator Wiring diagram Schematic

This is a Simple Switch-Mode Voltage Regulator Circuit Diagram. This Simple Switch-Mode Voltage Regulator Circuit Diagram power supplies offer the benefit of a much greater efficiency than obtainable with a traditional power supply. The Simple Switch-Mode Voltage Regulator Circuit Diagram presented here has an efficiency of around 85%. An input voltage of 12 to 16 Vdc is converted into a direct voltage of exactly 5 V. 

 Simple Switch-Mode Voltage Regulator Circuit Diagram

Simple



The use of a MAX638CPA enables the design and construction of the regulator to be kept fairly simple: only nine additional components are needed to complete the schema. Resistors RI and R2 are used to indicate when the battery voltage becomes low: as soon as the voltage on pin 3 becomes lower than 1.3 V, D1 lights. With values as shown for the potential divider, this corresponds to the supply voltage getting lower than about 6.5 V. 

The output of the IC is shunted by a simple LC filter formed by LI, C3 and D2. The oscillator on board the IC generates a clock frequency of around 65 kHz and drives the output transistor via two NOR gates. The built-in error detector, the `battery low` indicator or the voltage comparator can block the clock frequency, which causes the transistor to switch off. The IC compares the output voltage of 5 V with a built-in reference (FET). Depending on the load, the FET will be switched on for longer or shorter periods. The maximum current through the FET is 375 mA, which corresponds with a maximum output current of 80 mA.
Read More..