Professional Documents
Culture Documents
Rourkela
PROJECT REPORT
ON
Bachelor of Engineering
In
Submitted by:
Certificate
Certified that the project work entitled Monitor and Control of Greenhouse
Environment is a bonafide work carried out by:
Project Guide:
Project Incharge:
Name:
Name:
Name:
Date:
Date:
Date:
Internal examiner:
examiner: Name:
External
Name:
ACKNOWLEDGEMENT
The completion of any project brings with it a sense of satisfaction, but it is never
complete without thanking those people who made it possible and whose constant support
has crowned our efforts with success.
One cannot even imagine the power of the force that guides us all and neither can we
succeed without acknowledging it. Our deepest gratitude to Almighty God for holding our
hands and guiding us throughout our lives.
I would also like to express our gratitude to Prof. Subhendu Behera Head of the
Department, Applied Electronics and Instrumentation DRIEMS, Cuttack for encouraging
and inspiring us to carry out the project in the department lab.
I would also like to thank our guide, Er. J. N Mishra Dept. of A p p l i e d Electronics
and Communication for his expert guidance, encouragement and valuable suggestions at
every step.
We also would like to thank all the staff members of AE&I dept. for providing us with
the required facilities and support towards the completion of the project.
We are extremely happy to acknowledge and express our sincere gratitude to our
parents for their constant support and encouragement and last but not the least, friends and
well wishers for their help and cooperation and solutions to problems during the course of
the project.
Also our friends at 8051projects.net who provided solutions at times when we were
against the wall in need of help.
iii
SYNOPSIS
Appropriate environmental conditions are necessary for optimum plant growth, improved
crop yields, and efficient use of water and other resources. Automating the data acquisition
process of the soil conditions and various climatic parameters that govern plant growth allows
information to be collected at high frequency with less labor requirements. The existing systems
employ PC or SMS-based systems for keeping the user continuously informed of the conditions
inside the greenhouse; but are unaffordable, bulky, difficult to maintain and less accepted by the
technologically unskilled workers.
The objective of this project is to design a simple, easy to install, microcontroller-based
circuit to monitor and record the values of temperature, humidity, soil moisture and sunlight of
the natural environment that are continuously modified and controlled in order optimize them to
achieve maximum plant growth and yield. The controller used is a low power, cost efficient chip
manufactured by ATMEL having 8K bytes of on-chip flash memory. It communicates with the
various sensor modules in real-time in order to control the light, aeration and drainage process
efficiently inside a greenhouse by actuating a cooler, fogger, dripper and lights respectively
according to the necessary condition of the crops. An integrated Liquid crystal display (LCD) is
also used for real time display of data acquired from the various sensors and the status of the
various devices. Also, the use of easily available components reduces the manufacturing and
maintenance costs. The design is quite flexible as the software can be changed any time. It can
thus be tailor-made to the specific requirements of the user.
This makes the proposed system to be an economical, portable and a low maintenance
solution for greenhouse applications, especially in rural areas and for small scale agriculturists.
DEPARTMENT OF AE & I
iv
2009-2010
CONTENTS
NAME OF THE CHAPTER
1.
PAGE NO.
INTRODUCTION
1.1 CURRENT SCENARIO..2
1.1.1 MANUAL SETUP..2
1.1.2 PARTIALLY AUTOMATED SETUP...2
1.1.3 FULLY AUTOMATED SETUP....3
1.2 PROBLEM DEFINITION...3
1.3 PROPOSED MODEL FOR AUTOMATION OF GREENHOUSE...4
2.
SYSTEM MODEL
2.2 BASIC MODEL OF THE SYSTEM......6
2.3 PARTS OF THE SYSTEM.7
2.4 STEPS FOLLOWED IN DESIGNING THE SYSTEM.8
3.
BASIC THEORY
3.1 LIFE PROCESSES INSIDE A GREENHOUSE
3.1.1 PHOTOSYNTHETIC PROCESS.12
3.1.2 TRANSPIRATION...13
4.
HARDWARE DESCRIPTION
4.1 TRANSDUCERS
4.1.1 SOIL MOISTURE SENSOR...16
DEPARTMENT OF AE & I
2009-2010
4.1.1.1 FEATURES
16
17
18
19
20
21
22
4.2.1
DESCRIPTION---------------------------------------------------------------4.2.2
FEATURES------------------------------------------------------------------------4.2.3 CONVERSION METHOD
USED------------------------------------------4.2.4 PIN DIAGRAM OF ADC
0809---------------------------------------------4.2.5 SELECTING AN ANALOG
CHANNEL----------------------------------------4.3 CLOCK CIRCUITRY FOR THE ADC
24
4.3.1 FUNCTIONAL
23
24
25
26
27
29
4.4 MICROCONTROLLER
4.4.1 CRITERIA FOR CHOOSING A
MICROCONTROLLER-------------------------4.4.2
DESCRIPTION----------------------------------------------------------------4.4.2
FEATURES---------------------------------------------------------------------4.4.4 PIN CONFIGURATION---------------------------------------------------
31
34
4.4.6 PIN
DESCRIPTION--------------------------------------------------------4.4.6.1 POWER-ON RESET
CIRCUIT----------------------------------4.4.6.2 OSCILLATOR CLOCK
CIRCUIT---------------------------------4.4.7 SPECIAL FUNCTION
REGISTERS------------------------------------4.4.8 MEMORY
ORGANIZATION---------------------------------------------4.4.9 WATCHDOG TIMER------------------------------------------------------
35
31
32
33
36
37
38
39
40
vi
DEPARTMENT OF AE & I
2009-2010
DEPARTMENT OF AE & I
vii
2009-2010
7. FLOWCHART
7.1 FLOWCHART REPRESENTING THE WORKING OF THE SYSTEM...68
7.2 FLOWCHART FOR LCD INITIALIZATION.........69
7.3 FLOWCHART FOR ADC INITIALIZATION.71
8. RESULT ANALYSIS
9.1 ADVANTAGES..80
9.2 DISADVANTAGES80
10. FUTURE SCOPE .82
11. CONCLUSION.84
I.
REFERENCES.85
II.
ANNEXURE-I.. 87
III.
ANNEXURE-II 91
IV.
ANNEXURE-III...95
V.
ANNEXURE-IV...97
VI.
ANNEXURE-V...115
DEPARTMENT OF AE & I
viii
2009-2010
LIST OF FIGURES
I.
II.
III.
IV.
V.
VI.
VII.
VIII.
IX.
X.
XI.
XII.
XIII.
XIV.
XV.
XVI.
XVII.
XVIII.
XIX.
XX.
XXI.
XXII.
DEPARTMENT OF AE & I
ix
2009-2010
XXIII.
XXIV.
XXV.
XXVI.
XXVII.
XXVIII.
XXIX.
XXX.
XXXI.
XXXII.
XXXIII.
XXXIV.
XXXV.
XXXVI.
XXXVII.
XXXVIII.
XXXIX.
Figure 6.4 Save All and Build All Target Files buttons..61
XL.
XLI.
XLII.
XLIII.
DEPARTMENT OF AE & I
2009-2010
LIST OF TABLES
I.
II.
III.
IV.
V.
VI.
VII.
VIII.
DEPARTMENT OF AE & I
xi
2009-2010
CHAPTER 1
INTRODUCTION
Department of AE & I
Page 1
2009-2010
INTRODUCTION
We live in a world where everything can be controlled and operated automatically,
but there are still a few important sectors in our country where automation has not been
adopted or not been put to a full-fledged use, perhaps because of several reasons one such
reason is cost. One such field is that of agriculture. Agriculture has been one of the primary
occupations of man since early civilizations and even today manual interventions in farming
are inevitable. Greenhouses form an important part of the agriculture and horticulture sectors
in our country as they can be used to grow plants under controlled climatic conditions for
optimum produce. Automating a greenhouse envisages monitoring and controlling of the
climatic parameters which directly or indirectly govern the plant growth and hence their
produce. Automation is process control of industrial machinery and processes, thereby
replacing human operators.
Department of AE & I
Page 2
2009-2010
Department of AE & I
Page 3
2009-2010
Department of AE & I
Page 4
2009-2010
CHAPTER 2
SYSTEM MODEL
Department of AE & I
Page 5
2009-2010
Department of AE & I
Page 6
2009-2010
Microcontroller (AT89S52)
Actuators Relays
Devices controlled
Water Pump (simulated as a bulb)
Sprayer (simulated as a bulb)
Cooler (simulated as a fan)
Artificial Lights (simulated as 2 bulbs)
Buzzer
Page 7
2009-2010
condition at that instant of time. In case such a situation arises, it activates the actuators to
perform a controlled operation.
ACTUATORS:
An array of actuators can be used in the system such as relays, contactors, and change
over switches etc. They are used to turn on AC devices such as motors, coolers, pumps,
fogging machines, sprayers. For the purpose of demonstration relays have been used to drive
AC bulbs to simulate actuators and AC devices. A complete working system can be realized
by simply replacing these simulation devices by the actual devices.
DISPLAY UNIT:
A Liquid crystal display is used to indicate the present status of parameters and the
respective AC devises (simulated using bulbs). The information is displayed in two modes
which can be selected using a push button switch which toggles between the modes. Any
display can be interfaced to the system with respective changes in driver circuitry and code.
It is very important to correctly identify the parameters that are going to be measured
by the controllers data acquisition interface, and how they are to be measured. The
set of variables typically used in greenhouse control is shown below:
Sl. No.
Variable to be monitored
Its Importance
Temperature
Humidity
Soil moisture
Solar Radiation
Page 8
2009-2010
An electronic sensor for measuring a variable must readily available, accurate, reliable
and low in cost. If a sensor is not available, the variable cannot be incorporated into the
control system, even if it is very important. Many times variables that cannot be directly or
continuously measured can be controlled in a limited way by the system. For example,
fertility levels in nutrient solutions for greenhouse production are difficult to measure
continuously.
Step# 2: Investigate the control strategies.
More complex control strategies are those based not only on the current values of the
controlled variables, but also on the previous history of the system, including the rates
at which the system variables are changing.
It is very important that control system functions are specified before deciding what
software and hardware system to purchase. The model chosen must have the ability
to:
1. Expand the number of measured variables (input subsystem) and controlled
devices (output subsystem) so that growth and changing needs of the
production operation can be satisfied in the future.
2. Provide a flexible and easy to use interface.
3. It must ensure high precision measurement and must have the ability resist
noise.
Department of AE & I
Page 9
2009-2010
Hardware must always follow the selection of software, with the hardware required
being supported by the software selected. In addition to functional capabilities, the selection
of the control hardware should include factors such as reliability, support, previous
experiences with the equipment (successes and failures), and cost.
Department of AE & I
Page 10
2009-2010
CHAPTER 3
BASIC THEORY
Department of AE & I
Page 11
2009-2010
BASIC THEORY
Page 12
2009-2010
(3.1)
3.1.2 TRANSPIRATION
Transpiration is the evaporation of water from the aerial parts of plants, especially
leaves but also stems, flowers and roots Transpiration also cools plants and enables mass
flow of mineral nutrients and water from roots to shoots. Mass flow is caused by the decrease
in hydrostatic (water) pressure in the upper parts of the plants due to the diffusion of water
out of stomata into the atmosphere. Water is absorbed at the roots by osmosis, and any
dissolved mineral nutrients travel with it through the xylem.
Department of AE & I
Page 13
2009-2010
The rate of transpiration is directly related to the degree of stomatal opening, and to
the evaporative demand of the atmosphere surrounding the leaf. The amount of water lost by
a plant depends on its size, along with the surrounding light intensity, temperature, humidity,
and wind speed (all of which influence evaporative demand). Soil water supply and soil
temperature can influence stomatal opening, and thus the transpiration rate.
Page 14
2009-2010
CHAPTER 4
HARDWARE DESCRIPTION
Department of AE & I
Page 15
2009-2010
HARDWARE DESCRIPTION
4.1 TRANSDUCERS:
A transducer is a device which measures a physical quantity and converts it into a
signal which can be read by an observer or by an instrument. Monitoring and controlling of a
greenhouse environment involves sensing the changes occurring inside it which can
influence the rate of growth in plants. The parameters which are of importance are the
temperature inside the greenhouse which affect the photosynthetic and transpiration
processes are humidity, moisture content in the soil, the illumination etc. Since all these
parameters are interlinked, a closed loop (feedback) control system is employed in
monitoring it. The sensors used in this system are:
1. Soil Moisture Sensor(Transistor amplifier)
2. Light Sensor ( LDR (Light Dependent Resistor) )
3. Humidity Sensor (HIH4000)
4. Temperature Sensor (LM35)
Department of AE & I
Page 16
2009-2010
SENSOR LEADS
VCC
100
2N222N
ADC IN 5
10 k
Department of AE & I
Page 17
2009-2010
The Light Dependent Resistor (LDR) is made using the semiconductor Cadmium
Sulphide (CdS).
The light falling on the brown zigzag lines on the sensor causes the resistance of
thedevice to fall. This is known as a negative co-efficient. There are some LDRs that
work in the opposite way i.e. their resistance increases with light (called positive coefficient).
he resistance of the LDR decreases as the intensity of the light falling on it increases.
Incident photons drive electrons from the valence band into the conduction band.
conduction band
Cadmium
Cadmium
Sulphide
Sulphide
track
Band gap
valence band
Fig. 4.2.1 Structure of a Light Dependent Resistor, showing Cadmium Sulphide track
and an atom to illustrate electrons in the valence and conduction bands
Department of AE & I
Page 18
2009-2010
An LDR and a normal resistor are wired in series across a voltage, as shown in the
circuit below. Depending on which is tied to the 5V and which to 0V, the voltage at
the point between them, call it the sensor node, will either rise or fall with increasing
light. If the LDR is the component tied directly to the 5V, the sensor node will
increase in voltage with increasing light
The LDR's resistance can reach 10 k ohms in dark conditions and about 100 ohms in
full brightness.
The circuit used for sensing light in our system uses a 10 k fixed resistor which is
tied to +5V. Hence the voltage value in this case decreases with increase in light
intensity.
VCC
10K
ADC_IN4
LDR
GND
The sensor node voltage is compared with the threshold voltages for different levels
of light intensity corresponding to the four conditions- Optimum, dim, dark and night.
The relationship between the resistance RL and light intensity Lux for a
typical LDR is:
RL = 500 / Lux k
Department of AE & I
Page 19
(4.1)
2009-2010
With the LDR connected to 5V through a 10K resistor, the output voltage of the LDR
is :
Vo = 5*RL / (RL+10)
(4.2)
In order to increase the sensitivity of the sensor we must reduce the value of the fixed
resistor in series with the sensor. This may be done by putting other resistors in
parallel with it.
4.1.3 HUMIDITY SENSOR
The humidity sensor HIH4000, manufactured by Honeywell is used for sensing the
humidity. It delivers instrumentation quality RH (Relative Humidity) sensing performance in
a low cost, solder able SIP (Single In-line Package). Relative humidity is a measure, in
percentage, of the vapour in the air compared to the total amount of vapour that could be held
in the air at a given temperature.
High accuracy
Department of AE & I
Page 20
2009-2010
Chemically resistant
The RH sensor is a laser trimmed, thermoset polymer capacitive sensing element with
on-chip integrated signal conditioning. The sensing element's multilayer construction
provides excellent resistance to most application hazards such as wetting, dust, dirt,
oils and common environmental chemicals.
VCC
12.5 k
Vin
HIH4000 GND
Vout
3
To ADC IN6
The sensor develops a linear voltage vs. RH output that is ratiometric to the supply
voltage. That is, when the supply voltage varies, the sensor output voltage follows in
the same proportion. It can operate over a 4-5.8 supply voltage range. At 5V supply
voltage, and room temperature, the output voltage ranges from 0.8 to 3.9V as the
humidity varies from 0% to 100% (noncondensing).
With a typical current draw of only 200 A, the HIH-4000 Series is ideally suited for
low drain, battery operated systems.
The change in the RH of the surroundings causes an equivalent change in the voltage
output. The output is an analog voltage proportional to the supply voltage.
Department of AE & I
Page 21
2009-2010
Consequently, converting it to relative humidity (RH) requires that both the supply
and sensor output voltages be taken into account according to the formula:
RH = ((Vout / Vsupply) 0.16) /0.0062, typical at 25C
.(4.3)
This voltage is converted to the digital form by the ADC and then sent as input to the
microcontroller which reads the data.
proportional to the temperature (in C). The temperature can be measured more accurately
with it than using a thermistor. The sensor circuitry is sealed and not subject to oxidation, etc.
Department of AE & I
Page 22
2009-2010
The output of LM35 is amplified using a LM324 single power supply (+5V) op-amp.
(4.4)
Department of AE & I
Page 23
2009-2010
Analog world
(temperature,
pressure, etc.)
Transducer
Signal
Conditioning
Analog to
Digital Converter
Microcontroller
Page 24
2009-2010
Department of AE & I
Page 25
2009-2010
Page 26
2009-2010
We use A, B, C addresses to select IN0-IN7 and activate Address latch enable (ALE)
to latch in the address. SC is for Start Conversion. EOC is for End of Conversion and OE is
for Output Enable. The output pins D0-D7 provides the digital output from the chip. Vref (-)
and Vref (+) are the reference voltages.
4.2.5 SELECTING AN ANALOG CHANNEL
How to select the channel using three address pins A, B, C is shown in Table below:
Select Analog Channel
IN0
IN1
IN2
IN3
IN4
IN5
IN6
IN7
Department of AE & I
Page 27
2009-2010
the microcontroller and the control signals ADD_A, ADD_B, ADD_C, ALE, START, OE,
EOC are given to Port 1 as shown in the figure below.
+5V
11
26
17
IN0
27
VCC
D0
IN1
D1
IN2
D2
IN3
D3
28
1
2
TEMPERATURE SENSOR
IN4
D4
IN5
D5
IN6
HUMIDITY SENSOR
ADC0809
IN7
12
+5v
D7
Vref+
ADD_A
Vref-
ADD_B
CLOCK
ADD_C
21
25
PIN 3.4 OF MC
PIN 3.5 OF MC
23
OE
VCC
PIN 3.1 OF MC
START
EOC
22
7
PIN 3.3 OF MC
PIN 1.7 OF MC
24
10
PIN 3.0 OF MC
PIN 1.6 OF MC
D6
16
PIN 1.5 OF MC
20
5
LIGHT SENSOR
PIN 1.3 OF MC
PIN 1.4 OF MC
18
19
PIN 1.1 OF MC
15 PIN 1.2 OF MC
8
3
MOISTURE SENSOR
PIN 1.0 OF MC
14
GND
PIN 3.7 OF MC
ALE
13
Fig. 4.12 ADC 0809 pin details as used for this application
At a certain point of time, even though there is no conversion in progress the
ADC0809 is still internally cycling through 8 clock periods. A start pulse can occur any time
during this cycle but the conversion will not actually begin until the converter internally
cycles to the beginning of the next 8 clock period sequence. As long as the start pin is held
high no conversion begins, but when the start pin is taken low the conversion will start within
Department of AE & I
Page 28
2009-2010
8 clock periods. The EOC output is triggered on the rising edge of the start pulse. It, too, is
controlled by the 8 clock period cycle, so it will go low within 8 clock periods of the rising
edge of the start pulse. One can see that it is entirely possible for EOC to go low before the
conversion starts internally, but this is not important, since the positive transition of EOC,
which occurs at the end of a conversion, is what the control logic is looking for. Once EOC
does go high this signals the interface logic that the data resulting from the conversion is
ready to be read. The output enable (OE) is then raised high.
Page 29
2009-2010
sufficiently to trigger a change. This dual threshold action is called hysteresis, and implies
that the Schmitt trigger has some memory.
Fig. 4.15 The effect of using a Schmitt trigger (B) instead of a comparator (A)
Department of AE & I
Page 30
2009-2010
4.4.2 DESCRIPTION:
The 8051 family of microcontrollers is based on an architecture which is highly
optimized for embedded control systems. It is used in a wide variety of applications from
Department of AE & I
Page 31
2009-2010
military equipment to automobiles to the keyboard. Second only to the Motorola 68HC11 in
eight bit processors sales, the 8051 family of microcontrollers is available in a wide array of
variations from manufacturers such as Intel, Philips, and Siemens. These manufacturers have
added numerous features and peripherals to the 8051 such as I2C interfaces, analog to digital
converters, watchdog timers, and pulse width modulated outputs. Variations of the 8051 with
clock speeds up to 40MHz and voltage requirements down to 1.5 volts are available. This
wide range of parts based on one core makes the 8051 family an excellent choice as the base
architecture for a company's entire line of products since it can perform many functions and
developers will only have to learn this one platform.
The AT89S52 is a low-power, high-performance CMOS 8-bit microcontroller with
8K bytes of in-system programmable Flash memory. The device is manufactured using
Atmels high-density nonvolatile memory technology and is compatible with the industrystandard 80C51 instruction set and pinout. The on-chip Flash allows the program memory to
be reprogrammed in-system or by a conventional nonvolatile memory programmer. By
combining a versatile 8-bit CPU with in-system programmable Flash on a monolithic chip,
the Atmel AT89S52 is a powerful microcontroller which provides a highly-flexible and costeffective solution to many embedded control applications. In addition, the AT89S52 is
designed with static logic for operation down to zero frequency and supports two software
selectable power saving modes. The Idle Mode stops the CPU while allowing the RAM,
timer/counters, serial port, and interrupt system to continue functioning. The Power-down
mode saves the RAM con-tents but freezes the oscillator, disabling all other chip functions
until the next interrupt or hardware reset.
4.4.3 FEATURES:
The basic architecture of AT89C51 consists of the following features:
Department of AE & I
Page 32
2009-2010
Watchdog Timer
Department of AE & I
Page 33
2009-2010
Department of AE & I
Page 34
2009-2010
GND: Ground.
Port 0: Port 0 is an 8-bit open drain bidirectional I/O port. As an output port, each pin
can sink eight TTL inputs. When 1s are written to port 0 pins, the pins can be used as
high-impedance inputs. Port 0 can also be configured to be the multiplexed low-order
address/data bus during accesses to external program and data memory. In this mode,
P0 has internal pull-ups.
Port 1: Port 1 is an 8-bit bidirectional I/O port with internal pull-ups. The Port 1
output buffers can sink/source four TTL inputs. When 1s are written to Port 1 pins,
they are pulled high by the internal pull-ups and can be used as inputs. As inputs, Port
1 pins that are externally being pulled low will source current (IIL) because of the
internal pull-ups. In addition, P1.0 and P1.1 can be configured to be the timer/counter
2 external count input (P1.0/T2) and the timer/counter 2 trigger input (P1.1/T2EX),
respectively, as shown in the following table.
Port 2: Port 2 is an 8-bit bidirectional I/O port with internal pull-ups. The Port 2
output buffers can sink/source four TTL inputs. When 1s are written to Port 2 pins,
they are pulled high by the internal pull-ups and can be used as inputs. As inputs, Port
2 pins that are externally being pulled low will source current (IIL) because of the
internal pull-ups. Port 2 emits the high-order address byte during fetches from
external program memory and during accesses to external data memory that use 16bit addresses (MOVX @ DPTR). In this application, Port 2 uses strong internal pullups when emitting 1s. During accesses to external data memory that uses 8-bit
addresses (MOVX @ RI), Port 2 emits the contents of the P2 Special Function
register.
Port 3: Port 3 is an 8-bit bidirectional I/O port with internal pull-ups. The Port 3
output buffers can sink/source four TTL inputs. When 1s are written to Port 3 pins,
they are pulled high by the internal pull-ups and can be used as inputs. As inputs, Port
3 pins that are externally being pulled low will source current (IIL) because of the
pull-ups. Port 3 receives some control signals for Flash programming an verification.
Department of AE & I
Page 35
2009-2010
Port 3 also serves the functions of various special features of the AT89S52, as shown in
the following table.
Alternate functions of Port 3:
Page 36
2009-2010
In order for the RESET input to be effective, it must have a minimum duration of two
machine cycles.
ALE/PROG: Address Latch Enable (ALE) is an output pulse for latching the
low byte of the address during accesses to external memory. This pin is also the
program pulse input (PROG) during Flash programming. In normal operation,
ALE is emitted at a constant rate of 1/6 the oscillator frequency and may be used
for external timing or clocking purposes. Note, however, that one ALE pulse is
skipped during each access to external data memory. If desired, ALE operation
can be disabled by setting bit 0 of SFR location 8EH. With the bit set, ALE is
active only during a MOVX or MOVC instruction. Otherwise, the pin is weakly
pulled high. Setting the ALE-disable bit has no effect if the microcontroller is in
external execution mode.
PSEN: Program Store Enable (PSEN) is the read strobe to external program
memory. When the AT89S52 is executing code from external program memory,
PSEN is activated twice each machine cycle, except that two PSEN activations
are skipped during each access to external data memory.
EA: External Access Enable. EA must be strapped to GND in order to enable the
device to fetch code from external program memory locations starting at 0000H
up to FFFFH. Note, however, that if lock bit 1 is programmed, EA will be
internally latched on reset. EA should be strapped to VCC for internal program
executions. This pin also receives the 12-volt programming enable voltage (VPP)
during Flash programming.
XTAL1: Input to the inverting oscillator amplifier and input to the internal clock
operating circuit.
Department of AE & I
Page 37
2009-2010
C2
XTAL2
30pF
C1
XTAL1
30pF
GN D
The internal counters must divide the basic clock rate to yield standard
communication bit per second (baud) rates.
Department of AE & I
Page 38
2009-2010
Stack Pointer (SP) register is eight bits wide. It is incremented before data is
stored during PUSH and CALL executions. While the stack may reside anywhere
in on-chip RAM, the Stack Pointer is initialized to 07H after a reset. This causes
the stack to begin at location 08H.
DPTR or data pointer is a special 16-bit register that is accessible as two 8- bit
registers: DPL and DPH, which are used to used to furnish memory addresses for
internal and external code access and external data access.
Control Registers: Special Function Registers IP, IE, TMOD, TCON, SCON, and
PCON contain
bits for
Department of AE & I
Page 39
2009-2010
1. Register Banks 0-3: locations 00H through 1FH (32 bytes). The device after reset
defaults to register bank 0. To use the other register banks, the user must select them
in software. Each register bank contains eight 1-byte registers R0-R7. Reset initializes
the stack point to location 07H, and is incremented once to start from 08H, which is
the first register of the second register bank.
2. Bit Addressable Area: 16 bytes have been assigned for this segment 20H-2FH.
Each one of the 128 bits of this segment can be directly addressed (0-7FH). Each of
the 16 bytes in this segment can also be addressed as a byte.
3. Scratch Pad Area: 30H-7FH are available to the user as data RAM. However, if
the data pointer has been initialized to this area, enough bytes should be left aside to
prevent SP data destruction.
Page 40
2009-2010
Reset (WDTRST) SFR. The WDT is defaulted to disable from exiting reset. To enable the
WDT, a user must write 01EH and 0E1H in sequence to the WDTRST register (SFR location
0A6H). When the WDT is enabled, it will increment every machine cycle while the oscillator
is running. The WDT timeout period is dependent on the external clock frequency. There is
no way to disable the WDT except through reset (either hardware reset or WDT overflow
reset). When WDT over-flows, it will drive an output RESET HIGH pulse at the RST pin.
4.4.10 TIMERS AND COUNTERS
Many microcontroller applications require the counting of external events such as the
frequency of a pulse train, or the generation of precise internal time delays between computer
actions. Both of these tasks can be accomplished using software techniques, but software
loops for counting or timing keep the processor occupied so that, other perhaps more
important, functions are not done. Hence the better option is to use interrupts & the two 16bit count- up timers. The microcontroller can programmed for either of the following:
1. Count internal - acting as timer
2. Count external - acting as counter
All counter action is controlled by the TMOD (Timer Mode) and the TCON
(Timer/Counter Control) registers. TCON Timer control SFR contains timer 1& 2 overflow
flags, external interrupt flags, timer control bits, falling edge/low level selector bit etc.
TMOD timer mode SFR comprises two four-bit registers (timer #1, timer #0) used to specify
the timer/counter mode and operation.
The timer may operate in any one of four modes that are determined by modes bits
M1 and M0 in the TMOD register:
TIMER MODE-0: Setting timer mode bits to 00b in the TMOD register results in using the
TH register as an 8-bit counter and TL as a 5-bit counter. Therefore mode0 is a 13-bit
counter.
TIMER MODE-1: Mode-1 is similar to mode-0 except TL is configured as a full 8-bit
counter when the mode bits are set to 01b in TMOD.
TIMER MODE-2: Setting the mode bits to 10b in TMOD configures the timer to use only
the TL counter as an 8-bit counter. TH is used to hold a value that is loaded into TL every
time TL overflows from FFh to 00h. The timer flag is also set when TL overflows.
Department of AE & I
Page 41
2009-2010
TIMER MODE-3: In mode-3, timer-1 simply hold its count, where as timer 0 registers TL0
and TH0 are used as two separate 8-bit counters. TL0 uses the Timer-0 control bits. TH0
counts machine cycles and takes over the use of TR1 and TF1 from Timer-1.
4.4.11 INTERRUPTS
A computer has only two ways to determine the conditions that exist in internal and
external circuits. One method uses software instructions that jump to subroutines on the
states of flags and port pins. The second method responds to hardware signals, called
interrupts that force the program to call a subroutine.
The AT89S52 has a total of six interrupt vectors: two external interrupts (INT0 and
INT1), three timer interrupts (Timers 0, 1, and 2), and the serial port interrupt. Each of these
interrupt sources can be individually enabled or disabled by setting or clearing a bit in
Special Function Register IE. IE also contains a global disable bit, EA, which disables all
interrupts at once.
Each interrupt forces the processor to jump at the interrupt location in the memory.
The interrupted program must resume operation at the instruction where the interrupt took
place. Program resumption is done by storing the interrupted PC address on to stack.
RETI instruction at the end of ISR will restore the PC address.
Port 2: Interfaced with the LCD Control lines and AC Interface control
Department of AE & I
Page 42
2009-2010
ADC_D0
P1.0
VCC
LED+
P0.0
ADC_D1
P1.1
ADC_D2
P1.2
ADC_D3
ADC_D4
ADC_D5
ADC_D6
ADC_D7
ADC_A
ADC_ALE
P0.2
P0.3
P0.4
P1.4
DB1
DB2
DB3
DB4
P1.5
P0.5
DB5
P1.6
P0.6
DB6
P1.7
P3.4
P3.5
P0.7
AT89S52
DB7
EA
ALE
P3.1
PSEN
ADC_EOC
ADC_OE
DB0
P1.3
ADC_B
ADC_START
P0.1
P2.7
P3.7
P2.6
ENABLE
P3.3
BUZZER
MODE SELECTION SWITCH
P2.5
P3.0
R/W (Read/Write)
RS (Register select)
P2.4
COOLER
P3.6
P3.2
30 pF
PUMP
P2.3
XTAL2
SPRAYER
P2.2
LIGHT 1
XTAL1
LIGHT 2
30 pF
10uF
RST
GND
RST
P2.1
GND
P2.0
8.2 k
Page 43
2009-2010
80
81
Second line
C0
C1
82
C2
83
84
C3
C4
85
C5
86
C6
through
8F
through CF
Department of AE & I
Page 44
2009-2010
When it is low, data is written to the LCD. When it is high, data is read from the
LCD.
3) Register select (RS)
With the help of this line, the LCD interprets the type of data on data lines. When it is
low, an instruction is being written to the LCD. When it is high, a character is being written
to the LCD.
4.5.1.1 Logic status on control lines:
RS - 0 Instruction
- 1 Character
Department of AE & I
Page 45
2009-2010
Department of AE & I
Page 46
2009-2010
It is connected to the control unit through the transistor that acts as an electronic
switch for it. When the switch forms a closed path to the buzzer, it sounds a warning in the
form of a continuous or intermittent buzzing or beeping sound.
The transistor acts as a normal controlled by the base connection. It switches ON
when a positive voltage from the control unit is applied to the base. If the positive voltage is
less than 0.6V, the transistor switches OFF. No current flows through the buzzer in this case
and it will not buzz. As can be seen in the buzzer circuitry given below, a protection resistor
of 10k ohm is used in order to protect the transistor from being damaged in case of excessive
current flow. In our system, the buzzer is designed to give a small beep whenever one of the
devices such as a cooler or a bulb turns on in order to alert the user.
4.7 RELAYS
A relay is an electrical switch that opens and closes under the control of another
electrical circuit. In the original form, the switch is operated by an electromagnet to open or
close one or many sets of contacts. It was invented by Joseph Henry in 1835. Because a relay
is able to control an output circuit of higher power than the input circuit, it can be considered
to be, in a broad sense, a form of an electrical amplifier.
Department of AE & I
Page 47
2009-2010
Department of AE & I
Page 48
2009-2010
SPST - Single Pole Single Throw: These have two terminals which can be connected
or disconnected. Including two for the coil, such a relay has four terminals in total. It
is ambiguous whether the pole is normally open or normally closed. The terminology
"SPNO" and "SPNC" is sometimes used to resolve the ambiguity.
SPDT - Single Pole Double Throw: A common terminal connects to either of two
others. Including two for the coil, such a relay has five terminals in total.
DPST - Double Pole Single Throw: These have two pairs of terminals. Equivalent to
two SPST switches or relays actuated by a single coil. Including two for the coil, such
a relay has six terminals in total. It is ambiguous whether the poles are normally open,
normally closed, or one of each.
DPDT - Double Pole Double Throw: These have two rows of change-over terminals.
Equivalent to two SPDT switches or relays actuated by a single coil. Such a relay has
eight terminals, including the coil.
QPDT - Quadruple Pole Double Throw: Often referred to as Quad Pole Double
Throw, or 4PDT. These have four rows of change-over terminals. Equivalent to four
SPDT switches or relays actuated by a single coil, or two DPDT relays. In total,
fourteen terminals including the coil.
The Relay interfacing circuitry used in the application is:
Department of AE & I
Page 49
2009-2010
1N4148
Department of AE & I
Page 50
2009-2010
Vin
7805
3
Vout
GND
2
1000uf
10uf
230V, 50Hz
1uf
Department of AE & I
Page 51
2009-2010
CHAPTER 5
SYSTEMS USED IN WORK MODE
Department of AE & I
Page 53
2009-2010
Page 54
2009-2010
dens, containers on decks and patios, row crops and kitchen gardens, orchards, and
vineyards.
5.2 ARTIFICIAL GROWING LIGHTS FOR CONTROLLING ILLUMINATION
Growing lights enable cultivators to extend daylight hours - useful for winter and
spring growing when levels of natural lights can be low, and one can therefore improve plant
growth. Three basic types of lamps used in greenhouse lighting are:
Fluorescent lamps - These have the advantage of higher light efficiency with low
heat. This type of lamp is the most widely used for supplemental light. It is available
in a variety of colors but cool-white lamps are the most common. High intensity
(1500 ma) fluorescent tubes that require higher wattage are also commonly used to
reach 2000 foot candles.
Incandescent lamps - These vary in size from 60 watts to 500 watts. The grower can
vary foot-candle levels by adjusting the spacing and mounting height above the
plants.
High-intensity discharge (HID) lamps - These have a long life (5000 hours or
more). With improvements made possible by the addition of sodium and metalhalides, the lamp has a high emission of light in the regions utilized by plants.
Very high: Over 5000 footcandles--nearly full sun except at midday, when full
summer sun in most latitudes may reach 10,000 fc.
High: 4000-5000 footcandles--bright light, just under 50% of the full midday sun.
Department of AE & I
Page 55
2009-2010
Vents are hinged or track connected panels in the roof or sides of greenhouses. They
open up the greenhouse to outside natural air. Hot air that builds up in the greenhouse
can escape, and fresh air can enter the house. The microcontroller can be used to
automate the opening and closing of these vents depending upon requirement.
But during hot summer days, venting alone will not get the job done.
Exhaust fans can move a large volume of the hot greenhouse air out and pull fresh
air in through the rear vent. They're powerful for a reason, as full sun on a hot
summer day can cause temperatures inside the greenhouse to superheat. An exhaust
fan must be able to pull this air out, or the temperatures will continue to rise.
Swamp coolers: come in different widths and lengths. They can be configured to the
appropriate size, as this varies depending on the length and width of the greenhouse,
location where you live, and type of plants you wish to grow.
Electric heaters: Overhead infrared heating equipment combined with soil cable heat
provides a localized plant environment, which allows plants to thrive even though the
surrounding air is at a lower than normal temperature. Electric resistance-type heaters
are used as space heaters or in a forced air system.
Department of AE & I
Page 56
2009-2010
Roof sprinklers add water vapour and cool the incoming air. On large ranges, it is
possible to decrease the temperature by 3 - 5 C and increase the humidity by 5-10%.
Pad and fan systems consist of porous wet pads at the inlet end of a fan ventilated
greenhouse. As the exhaust fans draw air through the wet pads, water evaporates, cooling
and humidifying the air. Temperatures tend to be coolest nearer the fans and hottest at the
exhaust when using these systems.
Mist and fog systems produce tiny water droplets that evaporate, thereby cooling and
humidifying the greenhouse air. A misting system can provide needed moisture
to maintain a healthy humidity level of 50 to 70%.
Department of AE & I
Page 57
2009-2010
CHAPTER 6
SOFTWARE
Department of AE & I
Page 58
2009-2010
A project manager.
A make facility.
Tool configuration.
Editor.
A powerful debugger.
6.1.2 STEPS FOLLOWED IN CREATING AN APPLICATION IN uVision3:
To create a new project in uVision3:
1. Select Project - New Project.
2. Select a directory and enter the name of the project file.
3. Select Project Select Device and select a device from Device Database.
4. Create source files to add to the project
5. Select Project - Targets, Groups, and Files. Add/Files, select Source Group1, and add
the source files to the project.
6. Select Project - Options and set the tool options. Note that when the target device is
selected from the Device Database all-special options are set automatically. Default
memory model settings are optimal for most applications.
7. Select Project - Rebuild all target files or Build target
To create a new project, simply start MicroVision and select Project=>New
Project from the pulldown menus. In the file dialog that appears, choose a name and base
Department of AE & I
Page 59
2009-2010
directory for the project. It is recommended that a new directory be created for each project,
as several files will be generated. Once the project has been named, the dialog shown in the
figure below will appear, prompting the user to select a target device. In this lab, the chip
being used is the AT89S52, which is listed under the heading Atmel.
Department of AE & I
Page 60
2009-2010
Next, a file must be added to the project that will contain the project code. To do this,
expand the Target 1 heading, rightclick on the Source Group 1 folder, and select Add
files Create a new blank file (the file name should end in .asm), select it, and click
Add. The new file should now appear in the Project Workspace pane under the Source
Group 1 folder. Double-click on the newly created file to open it in the editor. All code for
this lab will go in this file. To compile the program, first save all source files by clicking on
the Save All button, and then click on the Rebuild All Target Files to compile the
program as shown in the figure below. If any errors or warnings occur during compilation,
they will be displayed in the output window at the bottom of the screen. All errors and
warnings will reference the line and column number in which they occur along with a
description of the problem so that they can be easily located. Note that only errors indicate
that the compilation failed, warnings do not (though it is generally a good idea to look into
them anyway).
Fig. 6.4 Save All and Build All Target Files Buttons
Department of AE & I
Page 61
2009-2010
When the program has been successfully compiled, it can be simulated using the
integrated debugger in Keil MicroVision. To start the debugger, select Debug=>Start/Stop
Debug Session from the pulldown menus.
At the left side of the debugger window, a table is displayed containing several key
parameters about the simulated microcontroller, most notably the elapsed time (circled in the
figure below). Just above that, there are several buttons that control code execution. The
Run button will cause the program to run continuously until a breakpoint is reached,
whereas the Step Into button will execute the next line of code and then pause (the current
position in the program is indicated by a yellow arrow to the left of the code).
Department of AE & I
Page 62
2009-2010
Breakpoints can be set by doubleclicking on the grey bar on the left edge of the
window containing the program code. A breakpoint is indicated by a red box next to the line
of code.
Page 63
2009-2010
6.2 PROGRAMMER
The programmer used is a powerful programmer for the Atmel 89 series of
microcontrollers that includes 89C51/52/55, 89S51/52/55 and many more.
It is simple to use & low cost, yet powerful flash microcontroller programmer for the
Atmel 89 series. It will Program, Read and Verify Code Data, Write Lock Bits, Erase and
Blank Check. All fuse and lock bits are programmable. This programmer has intelligent
onboard firmware and connects to the serial port. It can be used with any type of computer
and requires no special hardware. All that is needed is a serial communication port which all
computers have.
All devices also have a number of lock bits to provide various levels of software and
programming protection. These lock bits are fully programmable using this programmer.
Lock bits are useful to protect the progam to be read back from microcontroller only
allowing erase to reprogram the microcontroller.
Major parts of this programmer are Serial Port, Power Supply and Firmware
microcontroller. Serial data is sent and received from 9 pin connector and converted to/from
Department of AE & I
Page 64
2009-2010
TTL logic/RS232 signal levels by MAX232 chip. A Male to Female serial port cable,
connects to the 9 pin connector of hardware and another side connects to back of computer.
All the programming intelligence is built into the programmer so you do not need
any special hardware to run it. Programmer comes with window based software for easy
programming of the devices.
Department of AE & I
Page 65
2009-2010
Department of AE & I
Page 66
2009-2010
CHAPTER 7
FLOWCHART
Department of AE & I
Page 67
2009-2010
START
IS MODE
BUTTON
PRESSED
YES
NO
A
Department of AE & I
Page 68
2009-2010
YES
NO
SENSOR
THRESHOLD
CROSSED?
TURN ON ACTUATOR
START
Department of AE & I
Page 69
2009-2010
Department of AE & I
Page 70
2009-2010
STOP
START
NO
Department of AE & I
IS
EOC =0?
Page 71
YES
2009-2010
STOP
Department of AE & I
Page 72
2009-2010
CHAPTER 8
RESULT ANALYSIS
Department of AE & I
Page 73
2009-2010
RESULT ANALYSIS
0
Soil Condition
Transducer
Optimum Range
Soil is dry
0V
Optimum level of
1.9- 3.5V
soil moisture
Slurry soil
Department of AE & I
>3.5V
Page 74
2009-2010
Illumination Status
Transducer Optimum
Range
OPTIMUM
0V-0.69V
ILLUMINATION
Department of AE & I
DIM LIGHT
0.7V-2.5V
DARK
2.5V- 3V
NIGHT
3V-3.47V
Page 75
2009-2010
(Ref. Eq.4.3)
Percentage RH
(RELATIVE HUMIDITY)
0%
0-0.8V
0% to 9.81%
0.8-1.1V
12.9% to 20.1%
1.2-1.45V
22.7% to 30.06%
1.5-1.725V
30.8% to 40.5%
1.75-2.05V
41.3%to50.3%
2.075-2.35V
51%to 60.02%
2.375-2.65
61.6%to70.5%
2.7-2.975V
71%to80.2%
3-3.275V
81.1%to 90%
3.3-3.6V
91%to 100%
3.6-3.9V
Department of AE & I
Page 76
2009-2010
(Ref. Eq.4.4)
Temperature range in
Temperature sensor
degree Celsius
output(Vout)
100 C
0.5V
150 to 200 C
0.75-1.0V
20 0to 250 C
1.0-1.25V
250 to 30 0C
1.25-1.5V
30 0to 35 0C
1.5-1.75V
350 to 400 C
1.75-2.0V
400 to 45 0C
2.0-2.25V
450 to 500 C
2.25-2.5V
500 to 55 0C
2.5-2.75V
550 to 600C
2.75-3.0V
600 to 650 C
3.0-3.25V
650 to 70 0C
3.25-3.5V
70 0to 750 C
3.5-3.75V
Department of AE & I
Page 77
2009-2010
Department of AE & I
75 0to 80 0C
3.75-4.0V
80 0to 850 C
4.0-4.25V
85 0to 900 C
4.25-4.5V
900 to 95 0C
4.5-4.75V
950 to 1000 C
4.75-5V
Page 78
2009-2010
CHAPTER 9
ADVANTAGES AND DISADVANTAGES
Department of AE & I
Page 79
2009-2010
9.2 DISADVANTAGES
1. Complete automation in terms of pest and insect detection and eradication cannot
be achieved.
2. No self-test system to detect malfunction of sensors.
3. Requires uninterrupted power supply.
4. Facility to remotely monitor the greenhouse is not possible.
Department of AE & I
Page 80
2009-2010
CHAPTER 10
FUTURE SCOPE
Department of AE & I
Page 81
2009-2010
Department of AE & I
Page 82
2009-2010
CHAPTER 11
CONCLUSION
Department of AE & I
Page 83
2009-2010
CONCLUSION
A step-by-step approach in designing the microcontroller based system for
measurement and control of the four essential parameters for plant growth, i.e. temperature,
humidity, soil moisture, and light intensity, has been followed. The results obtained from the
measurement have shown that the system performance is quite reliable and accurate.
The system has successfully overcome quite a few shortcomings of the existing
systems by reducing the power consumption, maintenance and complexity, at the same time
providing a flexible and precise form of maintaining the environment.
The continuously decreasing costs of hardware and software, the wider acceptance of
electronic systems in agriculture, and an emerging agricultural control system industry in
several areas of agricultural production, will result in reliable control systems that will
address several aspects of quality and quantity of production. Further improvements will be
made as less expensive and more reliable sensors are developed for use in agricultural
production.
Although the enhancements mentioned in the previous chapter may seem far in the
future, the required technology and components are available, many such systems have been
independently developed, or are at least tested at a prototype level. Also, integration of all
these technologies is not a daunting task and can be successfully carried out.
Department of AE & I
Page 84
2009-2010
REFERENCES
[1] Dr. R. Jayanthi, Prof. of Horticulture, UAS, GKVK, Bangalore.
IEEE Papers
[2] Stipanicev D., Marasovic J., Networked embedded greenhouse monitoring and control,
Proceedings of 2003 IEEE Conference on Control Applications, June 2003.
[3] Turnell, D.J. de Fatima, Q.V., Turnell, M., Deep, G.S., Freire, R.C.S., FarmWeb-an
integrated, modular farm automation system, Proceedings of IEEE International
Conference on Systems, Man, and Cybernetics, Vol. 2, Oct. 1998.
Books
[3] Rebecca Tyson Northen, Orchids As House Plants, Dover Publications, New York, 2
Edition, 1985.
nd
[4] Muhammad Ali Mazidi, Janice Gillispie Mazidi, Rolin D. Mc Kinlay , The 8051
nd
Microcontroller & Embedded Systems, Pearson Education Inc. 2 Edition, 2008.
[5] Myke Predko, Programming and Customising the 8051 Microcontroller, TMH, 1999.
[6] Kenneth J Ayala, The 8051 Microcontroller Architecture, Programming & Applications,
nd
Penram International, 2 Edition, 1996.
[7] Ramakant Gayakwad, Operational Amplifiers Linear Integrated Circuits, Prentice Hall of
rd
India, 3 Edition.
[8] National Semiconductors, CMOS Logic Databook
[9] SENSORS- The Journal of Applied Sensing Technology, Advanstar Communications Inc
Department of AE & I
Page 85
2009-2010
Web Resources
[10]
http://freewebs.com/maheshwankede
[11]
http://www.faludi.com
[12]
http://www.electro-tech-online.com
[12]
http://www.8052.com
[13]
http://www.8051projects.net/forum
[14]
http://www.roboticsindia.com
[15]
http://www.datasheetdirect.com
[16]
[17]
http://www.keil.com/appnotes
http://www.google.com
Department of AE & I
Page 86
2009-2010
ANNEXURE - I
Department of AE & I
Page 87
2009-2010
1. Final Prototype:
19
21
20
22
18
17
1
16
10
15
14
13
4
9
14
5
7
12
Department of AE & I
Page 88
2009-2010
Light Sensor
Humidity Sensor
Temperature Sensor
Department of AE & I
Page 89
2009-2010
Department of AE & I
Page 90
2009-2010
ANNEXURE - II
Department of AE & I
Page 91
2009-2010
Bill Of Materials:
Sl. No.
1.
2.
Quantity in
numbers
1
1
3.
Bridge rectifier
4.
5.
6.
7.
8.
9.
10k resistance
20
10.
8.2k resistance
11.
1.2k resistance
12.
1k resistance
13.
1.8k resistance
14.
330 resistance
15.
100 resistance
16.
12.5k resistance
17.
LM7805
18.
LM7812
19.
Department of AE & I
Page 92
2009-2010
ADC0809
21.
AT89S52 Microcontroller
22.
Push to ON button
23.
Toggle switches
24.
BC107
25.
Buzzer
26.
8-pin connectors
27.
3-pin connectors
28.
2-pin connectors
15
Single connectors
35
29.
30.
BC547 Transistor
10
31.
32.
33.
LDR 12mm
34.
LM324
35.
LM35
36.
2N222N Transistor
37.
HIH4000-001
38.
12.5 k Resistor
39.
AC 5W bulbs
40.
Department of AE & I
Page 93
2009-2010
41.
16 Pin Connector
42.
10 Preset
43.
44.
2.2K Resistor
45.
46.
47.
Heat Sink
48.
LED
10
49.
0.5 m
50.
AC Power Cord
2m
51.
Wire Cap
1m
52.
4 pc, 5pc
53.
54.
Fevi Quick
As per
requirement
55.
Connecting Wires
2m
Department of AE & I
Page 94
2009-2010
ANNEXURE - III
Department of AE & I
Page 95
2009-2010
Sensor is light sensitive. For best performance, shield sensor from bright light.
circuits must be kept insulated and dry, to avoid leakage and corrosion. Printed-circuit
coatings and varnishes such as Humiseal and epoxy paints or dips can be used to insure that
moisture does not corrode the LM35 or its connections.
2. TROUBLE SHOOTING:
In case of a system hang-up condition, the reset button in the vicinity of the
Microcontroller can be used to revive the system.
In case of anomalies in the readings of the humidity sensor, it is recommended that
the sensor be kept in an air -tight container with silica-gel inside.
In case of anomalies with the moisture sensor, the probes can be stripped off the soil
or mud particles deposited on its surface and in case of sensor-leads-oxidation, it is
recommended that the leads be replaced.
Department of AE & I
Page 96
2009-2010
ANNEXURE - IV
Department of AE & I
Page 97
2009-2010
Source Code
;Chinmaynanda Das, Chandan kumar Singh ,Summit Jindal, Asish Nanda,
Shrideep ;Mohapatra,Nisith Kumar Roy
;Dhaneswar Rath Institute of Engineering and Medical Science, Cuttack
;--------------------------------------------------------;ADC inputs
;IN4 - LM35
;IN5 - MOISTURE SENSOR
;IN6 - HIH4000
;IN7 - LIGHT SENSOR
;ADD_C Connected to Vcc
;--------------------------------------------------------; Microcontroller connections to LCD.
RS
RW
E
BIT
BIT
BIT
P2.5
P2.6
P2.7
LCDDATA
equ
P0
SWITCH
equ
P3.2
EQU
EQU
EQU
EQU
EQU
EQU
P3.0
P3.1
P3.3
P3.4
P3.5
P3.7
ADCDATA
EQU
P1
;
;
;
;
;
;
Pin
Pin
Pin
Pin
Pin
Pin
9 Output Enable
6 Start
7 EOC
25 ADD A
24 ADD B
22 ALE
; Data Lines
BIT
BUZZ
BUZZ1
BUZZ2
BUZZ3
BIT
BIT
BIT
BIT
00h
01h
02h
03h
04h
Department of AE & I
flag
flag
flag
flag
Page 98
2009-2010
EQU
EQU
EQU
EQU
EQU
EQU
30h
31h
32h
33h
34h
35h
;---------------------------------------------------------org 00h
LJMP main
org 03h
LJMP int_isr ; Interrupt for the LCD switch
org 07h
main:
CLR 0A0h
CLR 0B0h
SETB BUZZER
LCALL DELAY
CLR BUZZER
MOV
MOV
MOV
MOV
MOV
MOV
60h,
61h,
62h,
63h,
64h,
65h,
#'C'
#':'
#' '
#'O'
#'F'
#'F'
68h,
69h,
6Ah,
6Bh,
6Ch,
6Dh,
6Eh,
#'P'
#'U'
#':'
#'O'
#'F'
#'F'
#0
MOV
MOV
MOV
MOV
MOV
MOV
70h,
71h,
72h,
73h,
74h,
75h,
#'S'
#'P'
#':'
#'O'
#'F'
#'F'
78h,
79h,
7Ah,
7Bh,
7Ch,
7Dh,
7Eh,
#'L'
#'I'
#':'
#'O'
#'F'
#'F'
#0
Department of AE & I
Page 99
2009-2010
;LCD initialisation
;init. LCD 2 lines,5x7 matrix (CHANGE THIS!!!)
;call command subroutine
;give LCD some time
;display on, cursor on
;call command subroutine
;give LCD some time
;clear LCD
;call command subroutine
;give LCD some time
;shift cursor right
;call command subroutine
;give LCD some time
line_1:
MOV A, #080H
ACALL comnwrt
ACALL lcddelay
MOV DPTR, #init1
repeat1:
CLR A
MOVC A, @A+DPTR
JZ line_2
ACALL datawrt
ACALL lcddelay
INC DPTR
SJMP repeat1
line_2:
MOV A, #0C0h
ACALL comnwrt
ACALL lcddelay
MOV DPTR, #init2
repeat2:
CLR A
MOVC A, @A+DPTR
JZ line_3
LCALL datawrt
LCALL lcddelay
INC DPTR
SJMP repeat2
Department of AE & I
Page 100
2009-2010
line_7:
MOV A, #0C0h
ACALL comnwrt
Department of AE & I
Page 101
2009-2010
Department of AE & I
Page 102
2009-2010
Department of AE & I
;enable o/p
;store adc data to buffer
;disable o/p
; Data lines for input
; Make EOC i/p
; clearing ALE
; Make start high
; Disable o/p
;A=1
;B=0 Select IN5
;latching the address
;start conversion pulse
;ALE H-L transition
;START H-L transition
;enable o/p
;store adc data to buffer
;disable o/p
; Data lines for input
; Make EOC i/p
; clearing ALE
; Make start high
; Disable o/p
;A=0
;B=1 Select IN6
;latching the address
;start conversion pulse
;ALE H-L transition
;START H-L transition
;enable o/p
;store adc data to buffer
;disable o/p
Page 103
2009-2010
;enable o/p
;store adc data to buffer
;disable o/p
;Delay subroutine
label
MOV A, #01h
ACALL comnwrt
ACALL lcddelay
MOV A,#80H
ACALL comnwrt
ACALL lcddelay
MOV R0, #60h
line1:
CLR A
MOV A, @R0
JZ nxt_line
LCALL datawrt
LCALL lcddelay
INC R0
SJMP line1
nxt_line:
MOV
A, #0C0h
Department of AE & I
;clear LCD
;give LCD some time
;cursor at line 1, position 0
;call command subroutine
;give LCD some time
;address of display message line 1
;moving the data to accumulator
;exit loop on completion of display and start
;display of LCD next line
;call data display routine
;give LCD some time
;increment address
;repeat display till end of message
;Displaying on line 2 of LCD
;cursor at line 2, position 0
Page 104
2009-2010
delay_5s:
MOV R7, #100
sec_5:
MOV TL0, #0FDh
MOV TH0, #4Bh
SETB TR0
JNB TF0, $
CLR TR0
CLR TF0
DJNZ R7, sec_5
MOV A, #01h
LCALL comnwrt
LCALL
lcddelay
;clear LCD
sensor_display:
MOV
A,#80H
LCALL
comnwrt
LCALL
lcddelay
MOV
LCALL
LCALL
MOV
LCALL
LCALL
;display letter T
;call display subroutine
;give LCD some time
;display : symbol
;call display subroutine
;give LCD some time
A, #'T'
datawrt
lcddelay
A, #':'
datawrt
lcddelay
MOV A, T_BUFFER
MOV DPTR, #temp_tens
MOVC A, @A+DPTR
LCALL
datawrt
LCALL
lcddelay
MOV A, T_BUFFER
MOV DPTR, #temp_ones
MOVC A, @A+DPTR
LCALL
datawrt
LCALL
lcddelay
MOV
LCALL
LCALL
;display . symbol
;call display subroutine
;give LCD some time
A, #'.'
datawrt
lcddelay
MOV A, T_BUFFER
MOV DPTR, #temp_dec
Department of AE & I
Page 105
2009-2010
MOV
LCALL
LCALL
MOV
LCALL
LCALL
A, #0DFh
datawrt
lcddelay
A, #'C'
datawrt
lcddelay
MOV
LCALL
LCALL
A, #' '
datawrt
lcddelay
;display space
;call display subroutine
;give LCD some time
A, #'S'
datawrt
lcddelay
A, #':'
datawrt
lcddelay
MOV A, M_BUFFER
CJNE A, #67h, dry
dry:
JNC optimum
MOV MOIST_LEVEL, #1
MOV
A, #'D'
LCALL
datawrt
LCALL
lcddelay
MOV
A, #'r'
LCALL
datawrt
LCALL
lcddelay
MOV
A, #'y'
LCALL
datawrt
LCALL
lcddelay
MOV
A, #' '
LCALL
datawrt
LCALL
lcddelay
MOV
A, #' '
LCALL
datawrt
LCALL
lcddelay
SJMP moist_over
optimum:
MOV A, M_BUFFER
CJNE A, #78h, disp_opt
disp_opt:
JNC slurry
MOV MOIST_LEVEL, #2
MOV
A, #'O'
LCALL
datawrt
LCALL
lcddelay
MOV
A, #'p'
LCALL
datawrt
LCALL
lcddelay
Department of AE & I
;display letter S
;call display subroutine
;give LCD some time
;display : symbol
;call display subroutine
;give LCD some time
;move sensor data from buffer to accumulator
Page 106
2009-2010
;display t
;call display subroutine
;give LCD some time
;display space
;call display subroutine
;give LCD some time
;display space
;call display subroutine
;give LCD some time
moist_over:
;DISPLAYING SENSOR 3: RELATIVE HUMIDITY
MOV
LCALL
LCALL
A, #0C0H
comnwrt
lcddelay
MOV
LCALL
LCALL
MOV
LCALL
LCALL
MOV
LCALL
LCALL
A, #'R'
datawrt
lcddelay
A, #'H'
datawrt
lcddelay
A, #':'
datawrt
lcddelay
;display letter R
;call display subroutine
;give LCD some time
;display letter H
;call display subroutine
;give LCD some time
;display : symbol
;call display subroutine
;give LCD some time
MOV A, RH_BUFFER
MOV DPTR, #rh_tens
MOVC A, @A+DPTR
LCALL
datawrt
LCALL
lcddelay
MOV A, RH_BUFFER
MOV DPTR, #rh_ones
MOVC A, @A+DPTR
LCALL
datawrt
LCALL
lcddelay
Department of AE & I
Page 107
2009-2010
MOV
LCALL
LCALL
A, #'.'
datawrt
lcddelay
;display . symbol
;call display subroutine
;give LCD some time
MOV A, RH_BUFFER
MOV DPTR, #rh_dec
MOVC A, @A+DPTR
LCALL
datawrt
LCALL
lcddelay
MOV
LCALL
LCALL
A, #'%'
datawrt
lcddelay
;display % symbol
;call display subroutine
;give LCD some time
MOV
LCALL
LCALL
A, #' '
datawrt
lcddelay
;display space
;call display subroutine
;give LCD some time
A, #'L'
datawrt
lcddelay
A, #':'
datawrt
lcddelay
MOV A, L_BUFFER
CJNE A, #25h, bright
bright:
JNC normal
MOV LIGHT_LEVEL, #1
MOV
A, #'O'
LCALL
datawrt
LCALL
lcddelay
MOV
A, #'p'
LCALL
datawrt
LCALL
lcddelay
MOV
A, #'t'
LCALL
datawrt
LCALL
lcddelay
MOV
A, #'.'
LCALL
datawrt
LCALL
lcddelay
MOV
A, #' '
LCALL
datawrt
LCALL
lcddelay
LJMP light_over
normal:
MOV A, L_BUFFER
CJNE A, #82h, disp_norm
disp_norm:
JNC dim
MOV LIGHT_LEVEL, #2
MOV
A, #'D'
LCALL
datawrt
Department of AE & I
;display letter L
;call display subroutine
;give LCD some time
;display : symbol
;call display subroutine
;give LCD some time
;move sensor data from buffer to accumulator
Page 108
2009-2010
lcddelay
A, #'i'
datawrt
lcddelay
A, #'m'
datawrt
lcddelay
A, #' '
datawrt
lcddelay
A, #' '
datawrt
lcddelay
SJMP light_over
dim:
MOV A, L_BUFFER
CJNE A, #9Dh, disp_dim
disp_dim:
JNC dark
MOV LIGHT_LEVEL, #3
MOV
A, #'D'
LCALL
datawrt
LCALL
lcddelay
MOV
A, #'a'
LCALL
datawrt
LCALL
lcddelay
MOV
A, #'r'
LCALL
datawrt
LCALL
lcddelay
MOV
A, #'k'
LCALL
datawrt
LCALL
lcddelay
MOV
A, #' '
LCALL
datawrt
LCALL
lcddelay
SJMP light_over
dark:
MOV LIGHT_LEVEL, #4
MOV
A, #'N'
LCALL
datawrt
LCALL
lcddelay
MOV
A, #'i'
LCALL
datawrt
LCALL
lcddelay
MOV
A, #'g'
LCALL
datawrt
LCALL
lcddelay
MOV
A, #'h'
LCALL
datawrt
LCALL
lcddelay
MOV
A, #'t'
LCALL
datawrt
LCALL
lcddelay
Department of AE & I
Page 109
2009-2010
Department of AE & I
;turn on heater
;turn on buzzer
;turn off buzzer
;set the buzzer flag high
;turn on light1
;turn off light2
;turn on buzzer
;turn off buzzer
Page 110
2009-2010
;turn on light1
;turn on light2
;turn on buzzer
;turn off buzzer
h_within_thresh:
CJNE A,#70, sp_off
sp_off:
JC moist_check
CLR
CLR
MOV
MOV
MOV
SPRAYER
BUZZ2
73h, #'O'
74h, #'F'
75h, #'F'
moist_check:
;CHECKING MOISTURE THRESHOLDS
MOV A, MOIST_LEVEL
CJNE A, #1, level2
SETB PUMP
Department of AE & I
;turn on pump
Page 111
2009-2010
;turn on buzzer
;turn off buzzer
th_end_check:
end_check: RET
int_isr:
MOV IE, #00h
PUSH 0E0h
PUSH 00h
PUSH 03h
PUSH 04h
PUSH 07h
PUSH 82h
PUSH 83h
SETB LCD_INTR
POP 83h
POP 82h
POP 07h
POP 04h
POP 03h
POP 00h
POP 0E0h
MOV IE, #81h
RETI
org 600h
init1:
init2:
init3:
init4:
init5:
init6:
init7:
DB
DB
DB
DB
DB
DB
DB
"
Welcome to
",
"Project GreenBee",
"
",
"
",
"
DRIEMS
",
"Initializing the",
"Sensors.........",
Department of AE & I
0
0
0
0
0
0
0 ; System initialization message
Page 112
2009-2010
temp_tens:
DB '0','0','0','0','0','0','0','0','0','0'
DB 30h, 30h, 30h, 30h, 30h, 30h, 30h, 30h,
DB 30h, 30h, 30h, 30h, 30h, 30h, 31h, 31h,
DB 31h, 31h, 31h, 31h, 31h, 31h, 31h, 31h,
DB 31h, 31h, 31h, 31h, 31h, 31h, 31h, 31h,
DB 31h, 31h, 32h, 32h, 32h, 32h, 32h, 32h,
DB 32h, 32h, 32h, 32h, 32h, 32h, 32h, 32h,
DB 32h, 32h, 32h, 32h, 32h, 32h, 32h, 32h,
DB 33h, 33h, 33h, 33h, 33h, 33h, 33h, 33h,
DB 33h, 33h, 33h, 33h, 33h, 33h, 33h, 33h,
DB 33h, 33h, 33h, 33h, 34h, 34h, 34h, 34h,
DB 34h, 34h, 34h, 34h, 34h, 34h, 34h, 34h,
DB 34h, 34h, 34h, 34h, 34h, 34h, 34h, 34h,
DB 35h, 35h, 35h, 35h, 35h, 35h, 35h, 35h,
DB 35h, 35h, 35h, 35h, 35h, 35h, 35h, 35h,
DB 35h, 35h, 35h, 35h, 35h, 35h, 36h, 36h,
DB 36h, 36h, 36h, 36h, 36h, 36h, 36h, 36h,
30h, 30h
31h, 31h
31h, 31h
31h, 31h
32h, 32h
32h, 32h
33h, 33h
33h, 33h
33h, 33h
34h, 34h
34h, 34h
34h, 34h
35h, 35h
35h, 35h
36h, 36h
36h, 36h
temp_ones:
DB '0', '0',
DB '4', '4',
DB '8', '8',
DB '3', '3',
DB '6', '6',
DB '9', '0',
DB '3', '4',
DB '7', '7',
DB '1', '1',
DB '5', '5',
DB '9', '9',
DB '2', '3',
DB '6', '6',
DB '0', '0',
'1',
'5',
'8',
'4',
'7',
'0',
'4',
'8',
'2',
'5',
'9',
'3',
'7',
'0',
'1',
'5',
'8',
'4',
'7',
'1',
'4',
'8',
'2',
'6',
'0',
'4',
'7',
'0',
'2',
'5',
'9',
'5',
'7',
'1',
'5',
'9',
'2',
'6',
'0',
'4',
'0',
'0',
'2',
'6',
'1',
'5',
'8',
'1',
'5',
'9',
'3',
'7',
'0',
'4',
'0',
'0',
'2',
'6',
'1',
'5',
'8',
'2',
'6',
'9',
'3',
'7',
'1',
'5',
'0',
'0',
'3',
'7',
'1',
'5',
'8',
'2',
'6',
'0',
'4',
'7',
'1',
'5',
'0',
'0',
temp_dec:
DB '0', '0','0','0','0','5','5','5','5','5','0'
DB '0', '0','0','5','5','5','5','0','0','0'
DB '0', '5','5','5','5','0','0','0','0','0'
DB '5', '5','5','5','0','0','0','0','5','0'
DB '0', '5','0','5','0','5','0','5','0','0'
DB '5', '0','5','0','5','5','0','5','5','0'
DB '5', '0','0','5','0','5','0','0','5','0'
DB '5', '5','0','5','0','0','5','0','5','0'
DB '0', '5','0','5','5','0','5','0','0','5'
DB '0', '5','5','0','5','0','5','5','0','5'
DB '0', '0','5','0','5','5','0','5','0','0'
DB '5', '5','0','0','5','5','0','0','5','5'
DB '0', '5','0','5','5','5','0','0','5','5'
DB '0', '0','0','0','0','0','0','0','0','0'
rh_tens:
DB '0','0', '0', '0', '0','0','0','0','0','0','0'
DB '0', '0', '0', '0', '0', '0', '0', '0', '0',
DB '0', '0', '0', '0', '0', '0', '0', '0', '0',
DB '0', '0', '0', '0', '0', '0', '0', '0', '0',
DB '0', '0', '0', '0', '0', '0', '0', '0', '0',
Department of AE & I
Page 113
;10TH
;20TH
;30TH
;40TH
;50TH
;60TH
;70TH
;80TH
;90TH
;100TH
;110TH
;120TH
;130TH
;140TH
'0'
'0'
'0'
'0'
;10th
;20th
;30th
;40th
;50th
2009-2010
'0',
'1',
'1',
'2',
'3',
'3',
'4',
'5',
'5',
'6',
'6',
'7',
'8',
'9',
'9',
'0',
'0',
'*',
'*',
'*',
'*',
'0',
'1',
'1',
'2',
'3',
'3',
'4',
'5',
'5',
'6',
'7',
'7',
'8',
'9',
'9',
'0',
'0',
'*',
'*',
'*',
'*',
'0',
'1',
'1',
'2',
'3',
'3',
'4',
'5',
'5',
'6',
'7',
'7',
'8',
'9',
'9',
'0',
'0',
'*',
'*',
'*',
'*',
'0',
'1',
'2',
'2',
'3',
'3',
'4',
'5',
'5',
'6',
'7',
'7',
'8',
'9',
'9',
'0',
'*',
'*',
'*',
'*',
'*',
'0',
'1',
'2',
'2',
'3',
'4',
'4',
'5',
'5',
'6',
'7',
'7',
'8',
'9',
'9',
'0',
'*',
'*',
'*',
'*',
'*'
'0',
'1',
'2',
'2',
'3',
'4',
'4',
'5',
'6',
'6',
'7',
'7',
'8',
'9',
'9',
'0',
'*',
'*',
'*',
'*',
'0',
'1',
'2',
'2',
'3',
'4',
'4',
'5',
'6',
'6',
'7',
'7',
'8',
'9',
'9',
'0',
'*',
'*',
'*',
'*',
'0',
'1',
'2',
'3',
'3',
'4',
'4',
'5',
'6',
'6',
'7',
'8',
'8',
'9',
'9',
'0',
'*',
'*',
'*',
'*',
'0',
'1',
'2',
'3',
'3',
'4',
'4',
'5',
'6',
'6',
'7',
'8',
'8',
'9',
'9',
'0',
'*',
'*',
'*',
'*',
'0'
'1'
'2'
'3'
'3'
'4'
'5'
'5'
'6'
'6'
'7'
'8'
'9'
'9'
'9'
'0'
'*'
'*'
'*'
'*'
rh_ones:
DB '0', '0',
DB '0', '0',
DB '0', '0',
DB '0', '0',
DB '1', '1',
'0',
'0',
'0',
'0',
'2',
'0',
'0',
'0',
'0',
'2',
'0',
'0',
'0',
'0',
'3',
'0',
'0',
'0',
'0',
'3',
'0',
'0',
'0',
'0',
'4',
'0',
'0',
'0',
'0',
'4',
'0',
'0',
'0',
'0',
'5',
DB
DB
DB
DB
DB
DB
DB
DB
DB
DB
'6',
'3',
'9',
'5',
'1',
'8',
'4',
'0',
'6',
'3',
'7',
'4',
'9',
'6',
'2',
'8',
'4',
'1',
'7',
'4',
'7',
'4',
'0',
'7',
'3',
'8',
'5',
'1',
'8',
'4',
'8',
'4',
'1',
'7',
'3',
'9',
'6',
'2',
'9',
'4',
'8',
'5',
'1',
'7',
'4',
'0',
'7',
'3',
'0',
'5',
'9',
'5',
'1',
'8',
'4',
'1',
'7',
'3',
'0',
'6',
'0',
'6',
'2',
'9',
'5',
'2',
'8',
'4',
'0',
'7',
'0',
'6',
'3',
'0',
'6',
'2',
'9',
'5',
'1',
'7',
'1',
'7',
'4',
'0',
'6',
'3',
'9',
'5',
'1',
'8',
'1'
'8'
'5'
'0'
'7'
'3'
'0'
'6'
'2'
'8'
;60th
;70th
;80th
;90th
;100th
;110th
;120th
;130th
;140th
;150th
DB
DB
DB
DB
DB
'9',
'6',
'1',
'8',
'4',
'9',
'7',
'2',
'8',
'4',
'1',
'7',
'3',
'9',
'5',
'1',
'7',
'4',
'9',
'6',
'2',
'5',
'5',
'0',
'7',
'2',
'8',
'5',
'1',
'7',
'3',
'9',
'6',
'2',
'8',
'4',
'0',
'6',
'3',
'8',
'4',
'1',
'7',
'3',
'9',
'5'
'1'
'7'
'4'
'0'
;160th
;170th
;180th
;190th
;200th
DB
DB
DB
DB
DB
DB
'*',
'*',
'*',
'*',
'*',
'*',
'*',
'*',
'*',
'*',
'*',
'*',
'*',
'*',
'*',
'*',
'*',
'*',
'*',
'*',
'*',
'*',
'*',
'*',
'*',
'*',
'*',
'*',
'*',
'*'
'*',
'*',
'*',
'*',
'*',
'*',
'*',
'*',
'*',
'*',
'*',
'*',
'*',
'*',
'*',
'*',
'*',
'*',
'*',
'*',
'*'
'*'
'*'
'*'
'*'
;210th
;220th
;230th
;240th
;250th
;256th
rh_dec:
DB '0', '0', '0', '0', '0',
DB '0', '0', '0', '0', '0',
DB '0', '0', '0', '1', '2',
Department of AE & I
;60th
;70th
;80th
;90th
;100th
;110th
;120th
;130th
;140th
;150th
;160th
;170th
;180th
;190th
;200th
;210th
;220th
;230th
;240th
;250th
Page 114
;10th
;20th
;30th
2009-2010
'7',
'1',
'6',
'0',
'5',
'6',
'6',
'1',
'6',
'0',
'7',
'2',
'7',
'6',
'9',
'8',
'0',
'*',
'*',
'*',
'*',
'*',
'*',
'7',
'1',
'7',
'1',
'5',
'0',
'4',
'9',
'8',
'1',
'5',
'0',
'5',
'4',
'6',
'6',
'4',
'*',
'*',
'*',
'*',
'*',
'*',
'8',
'2',
'7',
'1',
'5',
'0',
'3',
'8',
'4',
'9',
'4',
'8',
'1',
'7',
'5',
'5',
'5',
'*',
'*',
'*',
'*',
'*',
'*',
'8',
'2',
'8',
'1',
'5',
'6',
'5',
'7',
'2',
'7',
'2',
'4',
'9',
'7',
'3',
'3',
'6',
'*',
'*',
'*',
'*',
'*',
'*',
'8',
'3',
'8',
'2',
'6',
'7',
'1',
'5',
'0',
'5',
'0',
'6',
'7',
'6',
'5',
'7',
'2',
'*',
'*',
'*',
'*',
'*',
'*'
;40th
;50th
;60th
;70th
;80th
;90th
;100th
;110th
;120th
;130th
;140th
;150th
;160th
;170th
;180th
;190th
;200th
;210th
;220th
;230th
;240th
;250th
;256th
END
Department of AE & I
Page 115
2009-2010
ANNEXURE - V
Department of AE & I
Page 116
2009-2010
ADC0808/ADC0809
8-Bit P Compatible A/D Converters with 8-Channel
Multiplexer
General Description
Features
Key Specifications
n Resolution
n Total Unadjusted Error
n Single Supply
8 Bits
n Low Power
n Conversion Time
15 mW
100 s
Block Diagram
00567201
See Ordering
Information
DS005672
www.national.com
October 2002
ADC0808/ADC0809
Connection Diagrams
Dual-In-Line Package
00567212
00567211
Ordering Information
TEMPERATURE RANGE
Error
LSB Unadjusted
1 LSB Unadjusted
12
Package Outline
www.national.com
40C to +85C
ADC0808CCN
ADC0808CCV
ADC0809CCN
ADC0809CCV
(Notes 2,
1)
260C
0.3V to
(VCC+0.3V)
ADC0808CCV, ADC0809CCV
Range of VCC (Note 1)
65C to +150C
(Notes 1, 2)
TMINTATMAX
ADC0808CCN,ADC0809CCN
0.3V to +15V
400V
220C
Operating Conditions
215C
6.5V
40CTA+85C
40CTA+85C
4.5 VDC to 6.0 VDC
875 mW
Electrical Characteristics
Converter Specifications: VCC =5 VDC =VREF+, VREF() =GND, TMINTATMAX and fCLK =640 kHz unless otherwise stated.
Symbol
Parameter
Conditions
Min
Typ
Max
Units
ADC0808
LSB
TMIN to TMAX
1 2
3 4
0C to 70C
TMIN to TMAX
1
114
LSB
VCC+0.10
VDC
VCC
VCC+0.1
VCC/2
VCC/2+0.1
25C
(Note 5)
LSB
ADC0809
Total Unadjusted Error
(Note 5)
VREF(+)
Input Resistance
1.0
GND0.10
Measured at Ref(+)
VCC/2-0.1
VREF()
Measured at Ref()
IIN
2.5
0.1
0.5
LSB
k
Electrical Characteristics
Digital Levels and DC Specifications: ADC0808CCN, ADC0808CCV, ADC0809CCN and ADC0809CCV, 4.75VCC5.25V,
40CTA+85C unless otherwise noted
Symbol
Parameter
Conditions
Min
Typ
Max
Units
10
200
nA
1.0
ANALOG MULTIPLEXER
IOFF(+)
IOFF()
200
TMIN to TMAX
1.0
10
nA
A
CONTROL INPUTS
VIN(1)
VIN(0)
IIN(1)
VCC1.5
VIN =15V
1.5
1.0
VIN =0
1.0
Supply Current
0.3
3.0
mA
www.national.com
ADC0808/ADC0809
ADC0808/ADC0809
Electrical Characteristics
(Continued)
Digital Levels and DC Specifications: ADC0808CCN, ADC0808CCV, ADC0809CCN and ADC0809CCV, 4.75VCC5.25V,
40CTA+85C unless otherwise noted
Symbol
Parameter
Conditions
Min
Typ
Max
Units
VCC = 4.75V
2.4
4.5
IOUT = 360A
IOUT = 10A
V(min)
V(min)
VOUT(0)
IO =1.6 mA
0.45
VOUT(0)
IO =1.2 mA
0.45
IOUT
VO =5V
A
A
VO =0
Electrical Characteristics
Timing Specifications VCC =VREF(+) =5V, VREF() =GND, tr =tf =20 ns and TA =25C unless otherwise noted.
Typ
Max
Units
tWS
Symbol
Parameter
(Figure 5)
Conditions
MIn
100
200
ns
tWALE
(Figure 5)
100
200
ns
ts
(Figure 5)
25
50
ns
tH
(Figure 5)
25
50
ns
tD
RS =0 (Figure 5)
2.5
s
ns
From ALE
tH1, tH0
125
250
t1H, t0H
OE Control to Hi-Z
125
250
ns
tc
Conversion Time
90
100
116
fc
Clock Frequency
10
640
tEOC
(Figure 5)
1280
kHz
8+2 S
Clock
Periods
CIN
Input Capacitance
At Control Inputs
10
15
pF
COUT
TRI-STATE Output
At TRI-STATE Outputs
10
15
pF
Capacitance
Note 1: Absolute Maximum Ratings indicate limits beyond which damage to the device may occur. DC and AC electrical specifications do not apply when operating
the device beyond its specified operating conditions.
Note 2: All voltages are measured with respect to GND, unless othewise specified.
Note 3: A zener diode exists, internally, from VCC to GND and has a typical breakdown voltage of 7 VDC.
Note 4: Two on-chip diodes are tied to each analog input which will forward conduct for analog input voltages one diode drop below ground or one diode drop
greater than the VCCn supply. The spec allows 100 mV forward bias of either diode. This means that as long as the analog VIN does not exceed the supply voltage
by more than 100 mV, the output code will be correct. To achieve an absolute 0VDC to 5VDC input voltage range will therefore require a minimum supply voltage of
4.900 VDC over temperature variations, initial tolerance and loading.
Note 5: Total unadjusted error includes offset, full-scale, linearity, and multiplexer errors. See Figure 3. None of these A/Ds requires a zero or full-scale adjust.
However, if an all zero code is desired for an analog input other than 0.0V, or if a narrow full-scale span exists (for example: 0.5V to 4.5V full-scale) the reference
voltages can be adjusted to achieve this. See Figure 13.
Note 6: Comparator input current is a bias current into or out of the chopper stabilized comparator. The bias current varies directly with clock frequency and has
little temperature dependence (Figure 6). See paragraph 4.0.
Note 7: The outputs of the data register are updated one clock cycle before the rising edge of EOC.
Note 8: Human body model, 100 pF discharged through a 1.5 k resistor.
www.national.com
The bottom resistor and the top resistor of the ladder network in Figure 1 are not the same value as the remainder of
the network. The difference in these resistors causes the
output characteristic to be symmetrical with the zero and
full-scale points of the transfer curve. The first output transition occurs when the analog signal has reached +12 LSB
and succeeding output transitions occur every 1 LSB later up
to full-scale.
TABLE 1.
SELECTED
ADDRESS LINE
ANALOG CHANNEL
IN0
IN1
IN2
IN3
IN4
IN5
IN6
IN7
CONVERTER CHARACTERISTICS
The Converter
The heart of this single chip data acquisition system is its
8-bit analog-to-digital converter. The converter is designed to
give fast, accurate, and repeatable conversions over a wide
range of temperatures. The converter is partitioned into 3
major sections: the 256R ladder network, the successive
approximation register, and the comparator. The converters
digital outputs are positive true.
www.national.com
ADC0808/ADC0809
Functional Description
ADC0808/ADC0809
Functional Description
(Continued)
00567202
00567213
00567214
00567215
www.national.com
ADC0808/ADC0809
Timing Diagram
00567204
FIGURE 5.
www.national.com
ADC0808/ADC0809
00567216
00567217
www.national.com
ADC0808/ADC0809
t0H, tH0
00567218
00567221
t1H, CL = 10 pF
t0H, CL = 10 pF
00567222
00567219
tH0, CL = 50 pF
tH1, CL = 50 pF
00567223
00567220
FIGURE 8.
Applications Information
OPERATION
1.0 RATIOMETRIC CONVERSION
The ADC0808, ADC0809 is designed as a complete Data
Acquisition System (DAS) for ratiometric conversion systems. In ratiometric systems, the physical variable being
measured is expressed as a percentage of full-scale which is
not necessarily related to an absolute standard. The voltage
input to the ADC0808 is expressed by the equation
(1)
VIN =Input voltage into the ADC0808
Vfs =Full-scale voltage
VZ =Zero voltage
DX =Data point being measured
DMAX =Maximum data limit
www.national.com
ADC0808/ADC0809
Applications Information
(Continued)
Figure 10 shows a ground referenced system with a separate supply and reference. In this system, the supply must be
trimmed to match the reference voltage. For instance, if a
5.12V is used, the supply should be adjusted to the same
voltage within 0.1V.
00567207
www.national.com
The top and bottom ladder voltages cannot exceed VCC and
ground, respectively, but they can be symmetrically less than
VCC and greater than ground. The center of the ladder
voltage should always be near the center of the supply. The
sensitivity of the converter can be increased, (i.e., size of the
LSB steps decreased) by using a symmetrical reference
system. In Figure 13, a 2.5V reference is symmetrically
centered about VCC/2 since the same current flows in identical resistors. This system with a 2.5V reference allows the
LSB bit to be half the size of a 5V reference system.
10
ADC0808/ADC0809
Applications Information
(Continued)
00567224
00567225
11
www.national.com
ADC0808/ADC0809
Applications Information
(Continued)
00567226
00567227
RA =RB
*Ratiometric transducers
FIGURE 13. Symmetrically Centered Reference
3.0 CONVERTER EQUATIONS
(4)
Where: VIN =Voltage at comparator input
(2)
(3)
www.national.com
12
(Continued)
Typical Application
00567210
*Address latches needed for 8085 and SC/MP interfacing the ADC0808 to a microprocessor
READ
WRITE
INTERRUPT (COMMENT)
8080
MEMR
MEMW
8085
RD
WR
Z-80
RD
WR
SC/MP
NRDS
NWDS
SA (Thru Sense A)
6800
VMA 2 R/W
VMA R/W
13
www.national.com
ADC0808/ADC0809
Applications Information
ADC0808/ADC0809
Physical Dimensions
inches (millimeters)
www.national.com
14
www.national.com
National Semiconductor
Europe
Fax: +49 (0) 180-530 85 86
Email: europe.support@nsc.com
Deutsch Tel: +49 (0) 69 9508 6208
English Tel: +44 (0) 870 24 0 2171
Franais Tel: +33 (0) 1 41 91 8790
National Semiconductor
Asia Pacific Customer
Response Group
Tel: 65-2544466
Fax: 65-2504466
Email: ap.support@nsc.com
National Semiconductor
Japan Ltd.
Tel: 81-3-5639-7560
Fax: 81-3-5639-7507
National does not assume any responsibility for use of any circuitry described, no circuit patent licenses are implied and National reserves the right at any time without notice to change said circuitry and specifications.
Physical Dimensions
PRELIMINARY 3-25-04
Humidity/Moisture Sensors
Humidity Sensor
HIH-4000 Series
FEATURES
Molded thermoset plastic
housing
Linear voltage output vs
%RH
Laser trimmed
interchangeability
Low power design
High accuracy
Fast response time
Stable, low drift
performance
Chemically resistant
TYPICAL APPLICATIONS
Refrigeration Equipment
HVAC Equipment
Medical Equipment
Drying
Metrology
Battery -powered systems
OEM assemblies
WARNING
PERSONAL INJURY DO
NOT USE these products as
safety or emergency stop
devices or in any other
application where failure of
the product could result in
personal injury.
Failure to comply with these
instructions could result in
death or serious injury.
WARNING
MISUSE OF
DOCUMENTATION
The information presented in
this product sheet is for
reference only. Do not use
this document as system
installation information
Complete installation,
operation, and maintenance
information is provided in the
instructions supplied with
each product.
Failure to comply with these
instructions could result in
death or serious injury.
Humidity/Moisture Sensors
Humidity Sensor
MINIMUM
TYPICAL
MAXIMUM
UNITS
-5
% RH
60% TO 100%
-8
3.5
% RH
%RH
3.5
2.5
% RH
% RH
%RH
0.5
%RH
HYSTERESIS
REPEATABILITY
SETTLING TIME
RESPONSE TIME (1/e in slow moving air)
15
70
mS
Sec
1.2
%RH
TBD
%RH
POWER REQUIREMENTS
VOLTAGE SUPPLY
CURRENT SUPPLY
VOLTAGE OUPUT (1st order fit)
VOLTAGE OUPUT (2nd order curve fit)
TEMPERATURE COMPENSATION
5.8
500
VDC
A
Vout=Vsupply(0.0062(Sensor RH)+0.16)
Vout=0.00003(Sensor RH)+0.0281(Sensor RH)+0.820
Typical
@ 25C
Vout=(0.0305+0.000044T-0.0000011T)(Sensor RH)+(0.92370.0041T+0.000040T)
T=Temperature in C
OPERATING TEMPERATURE
OPERATING HUMIDITY
STORAGE TEMPERATURE
-40
SEE FIGURE 1
85
-40
0
SEE FIGURE 1
185
100
F
% RH
-40
125
-40
257
STORAGE HUMIDITY
SEE FIGURE 2
F
% RH
2 Honeywell
Humidity/Moisture Sensors
Humidity Sensor
100%
Relative Humidity
90%
80%
3.5
70%
60%
RECOMMENDED
OPERATING ZONE
50%
40%
30%
20%
0%
-40
-30
-20
-10
10
20
30
40
50
60
70
80
90
100
Temperature C
Voltage Out
2.5
10%
1.5
100%
90%
70%
60%
STORAGE ZONE
50%
0.5
40%
30%
20%
10%
25
0%
-40
-30
-20
-10
10
20
30
40
50
60
70
80
90
50
75
100
%RH
Temperature C
3.5
Model
Channel
Wafer
MRP
Calculated values at 5 V
Vout @ 0% RH
Vout @ 75.3% RH
Linear output for 2% RH
accuracy @ 25 C
Zero offset
Slope
RH
Ratiometric response for 0
to 100% RH
Vout
HIH-4000-001
92
030996M
337313
0.958 V
3.268 V
2.5
Voltage Out
Relative Humidity
80%
1.5
0.958 V
30.680 mV/%RH
(Vout- zero offset)/slope
(Vout-0.958)/0.0307
0.5
0
0
25
50
75
100
%RH
Honeywell
Humidity/Moisture Sensors
Humidity Sensor
ORDER GUIDE
Catalog Listing
Description
HIH-4000-001
HIH-4000-002
HIH-4000-003
HIH-4000-004
HIH-4000-001
HIH-4000-003
4,27
[0.168]
4,27
[0.168]
9,47
[0.373]
9,47
[0.373]
1,90
[0.075]
12,19 MIN
[0.480])
12,70 MIN
[0.50]
OUT
1,27
[0.050]
+
3X 0,38
[0.015]
2,03
[0.080]
2,54
[0.100]
2,54
[0.100]
OUT
5,08
[0.200]
+
3X 0,38
[0.015]
WARRANTY/REMEDY
Honeywell warrants goods of its
manufacture as being free of defective
materials and fa ulty workmanship.
Contact your local sales office for
warranty information. If warranted
goods are returned to Honeywell
during the period of coverage,
Honeywell will repair or replace
without charge those items it finds
defective. The foregoing is Buyers
sole remedy and is in lieu of all
other warranties, expressed or
implied, including those of
merchantability and fitness for a
particular purpose.
Specifications may change without
notice. The information we supply is
believed to be accurate and reliable
as of this printing. However, we
assume no responsibility for its use.
While we provide application
assistance personally, through our
literature and the Honeywell web site,
it is up to the customer to determine
the suitability of the product in the
application.
For application assistance, current
specifications, or name of the nearest
Authorized Distributor, check the
Honeywell web site or call:
1-800-537-6945 USA
1-800-737-3360 Canada
1-815-235-6847 International
FAX
1-815-235-6545 USA
INTERNET
www.honeyw ell.com/sensing
info.sc@honeywell.com
LM35
Precision Centigrade Temperature Sensors
General Description
The LM35 series are precision integrated-circuit temperature
sensors, whose output voltage is linearly proportional to the
Celsius (Centigrade) temperature. The LM35 thus has an
advantage over linear temperature sensors calibrated in
Kelvin, as the user is not required to subtract a large
constant voltage from its output to obtain convenient Centigrade scaling. The LM35 does not require any external
calibration or trimming to provide typical accuracies of 14C
at room temperature and 34C over a full 55 to +150C
temperature range. Low cost is assured by trimming and
calibration at the wafer level. The LM35s low output impedance, linear output, and precise inherent calibration make
interfacing to readout or control circuitry especially easy. It
can be used with single power supplies, or with plus and
minus supplies. As it draws only 60 A from its supply, it has
very low self-heating, less than 0.1C in still air. The LM35 is
rated to operate over a 55 to +150C temperature range,
while the LM35C is rated for a 40 to +110C range (10
with improved accuracy). The LM35 series is available pack-
Features
n
n
n
n
n
n
n
n
n
n
n
Typical Applications
DS005516-4
DS005516-3
Choose R1 = VS/50 A
V
OUT =+1,500
mV at +150C
= +250 mV at +25C
= 550 mV at 55C
DS005516
www.national.com
November 2000
LM35
Connection Diagrams
TO-46
Metal Can Package*
SO-8
Small Outline Molded Package
DS005516-1
DS005516-21
N.C. = No Connection
Top View
Order Number LM35DM
See NS Package Number M08A
TO-92
Plastic Package
TO-220
Plastic Package*
DS005516-2
DS005516-24
www.national.com
(Note 10)
+35V to 0.2V
Output Voltage
Output Current
Storage Temp.;
+6V to 1.0V
10 mA
260C
215C
220C
2500V
MAX
LM35, LM35A
55C to +150C
TO-46 Package,
60C to +180C
LM35C, LM35CA
40C to +110C
TO-92 Package,
60C to +150C
LM35D
SO-8 Package,
TO-220 Package,
Lead Temp.:
TO-46 Package,
(Soldering, 10 seconds)
0C to +100C
65C to +150C
65C to +150C
300C
Electrical Characteristics
(Notes 1, 6)
LM35A
Parameter
Conditions
Typical
Accuracy
=+25C
(Note 7)
=10C
T
T
A =TMIN
MIN TA TMAX
0.2
0.3
0.4
0.4
0.18
MIN
TA TMAX
+10.0
Nonlinearity
=TMAX
LM35CA
Tested
Design
Tested
Design
Units
Limit
Limit
Limit
Limit
(Max.)
(Note 4)
(Note 5)
(Note 4)
(Note 5)
0.5
1.0
1.0
0.35
Typical
0.2
0.3
0.4
0.4
0.15
0.5
1.0
1.0
C
C
1.5
0.3
+9.9,
mV/C
(Note 8)
Sensor Gain
(Average Slope)
+9.9,
+10.0
+10.1
=+25C
0.4
0.5
0.01
0.02
Load Regulation
(Note 3) 0 IL 1 mA
MIN
Line Regulation
A =+25C
(Note 3)
4V V
Quiescent Current
=+5V, +25C
56
(Note 9)
=+5V
105
S =+30V, +25C
TA TMAX
30V
V S =+30V
56.2
+10.1
1.0
3.0
0.05
0.1
67
56
131
133
3.0
0.05
mV/mA
mV/V
0.1
67
mV/V
A
114
116
68
91.5
4V VS 30V, +25C
0.2
Quiescent Current
4V V
0.5
2.0
0.5
2.0
+0.39
+0.5
+0.39
+0.5
A/C
+1.5
+2.0
+1.5
+2.0
0.2
mV/mA
Change of
30V
1.0
1.0
91
56.2
68
105.5
0.4
0.5
0.01
0.02
1.0
(Note 3)
Temperature
Coefficient of
Quiescent Current
Minimum Temperature
In circuit of
Figure 1, IL =0
T J =TMAX, for
0.08
0.08
1000 hours
www.national.com
LM35
LM35
Electrical Characteristics
(Notes 1, 6)
LM35
Parameter
Conditions
Typical
Accuracy,
=+25C
LM35, LM35C
=10C
(Note 7)
A =TMAX
Accuracy, LM35D
(Note 7)
Nonlinearity
T
T
0.4
0.5
0.8
0.8
=TMIN
A =+25C
A
LM35C, LM35D
Tested
Design
Limit
Limit
(Note 4)
(Note 5)
1.0
1.5
1.5
TA =TMAX
TA =TMIN
T MIN TA TMAX
0.3
+10.0
0.5
Typical
0.4
0.5
0.8
0.8
0.6
0.9
0.9
0.2
Tested
Design
Units
Limit
Limit
(Max.)
(Note 4)
(Note 5)
1.0
1.5
1.5
2.0
1.5
C
C
C
C
2.0
2.0
0.5
+9.8,
mV/C
C
C
(Note 8)
Sensor Gain
MIN
TA TMAX
(Average Slope)
+9.8,
+10.0
+10.2
2.0
30V
0.4
0.5
0.01
0.02
=+5V, +25C
56
80
Load Regulation
(Note 3) 0 IL 1 mA
MIN
Line Regulation
A =+25C
=+25C
TA TMAX
(Note 3)
4V V
Quiescent Current
(Note 9)
S =+5V
5.0
0.1
0.2
105
=+30V, +25C
56.2
=+30V
105.5
+10.2
158
0.4
0.5
0.01
0.02
2.0
56
80
161
mV/V
A
138
A
A
82
141
2.0
4V VS 30V, +25C
0.2
Quiescent Current
4V V
0.5
3.0
0.5
3.0
+0.39
+0.7
+0.39
+0.7
A/C
+1.5
+2.0
+1.5
+2.0
0.2
mV/V
0.2
91.5
mV/mA
Change of
30V
2.0
0.1
91
56.2
82
mV/mA
5.0
(Note 3)
Temperature
Coefficient of
Quiescent Current
Minimum Temperature
In circuit of
Figure 1, IL =0
T J =TMAX, for
0.08
0.08
1000 hours
Note 1: Unless otherwise noted, these specifications apply: 55C TJ +150C for the LM35 and LM35A; 40 TJ +110C for the LM35C and LM35CA; and
0 TJ +100C for the LM35D. VS =+5Vdc and ILOAD =50 A, in the circuit of Figure 2. These specifications also apply from +2C to TMAX in the circuit of Figure 1.
Specifications in boldface apply over the full rated temperature range.
Note 2: Thermal resistance of the TO-46 package is 400C/W, junction to ambient, and 24C/W junction to case. Thermal resistance of the TO-92 package is
180C/W junction to ambient. Thermal resistance of the small outline molded package is 220C/W junction to ambient. Thermal resistance of the TO-220 package
is 90C/W junction to ambient. For additional thermal resistance information see table in the Applications section.
Note 3: Regulation is measured at constant junction temperature, using pulse testing with a low duty cycle. Changes in output due to heating effects can be
computed by multiplying the internal dissipation by the thermal resistance.
Note 4: Tested Limits are guaranteed and 100% tested in production.
Note 5: Design Limits are guaranteed (but not 100% production tested) over the indicated temperature and supply voltage ranges. These limits are not used to
calculate outgoing quality levels.
Note 6: Specifications in boldface apply over the full rated temperature range.
Note 7: Accuracy is defined as the error between the output voltage and 10mv/C times the devices case temperature, at specified conditions of voltage, current,
and temperature (expressed in C).
Note 8: Nonlinearity is defined as the deviation of the output-voltage-versus-temperature curve from the best-fit straight line, over the devices rated temperature
range.
Note 9: Quiescent current is defined in the circuit of Figure 1.
Note 10: Absolute Maximum Ratings indicate limits beyond which damage to the device may occur. DC and AC electrical specifications do not apply when operating
the device beyond its rated operating conditions. See Note 1.
Note 11: Human body model, 100 pF discharged through a 1.5 k
resistor.
Note 12: See AN-450 Surface Mounting Methods and Their Effect on Product Reliability or the section titled Surface Mount found in a current National
Semiconductor Linear Data Book for other methods of soldering surface mount devices.
www.national.com
LM35
Thermal Response
in Still Air
DS005516-26
DS005516-25
Thermal Response in
Stirred Oil Bath
DS005516-27
Minimum Supply
Voltage vs. Temperature
Quiescent Current
vs. Temperature
(In Circuit of Figure 1.)
DS005516-29
DS005516-28
DS005516-30
Quiescent Current
vs. Temperature
(In Circuit of Figure 2.)
DS005516-32
DS005516-33
DS005516-31
www.national.com
LM35
(Continued)
Noise Voltage
Start-Up Response
DS005516-34
DS005516-35
Applications
TO-46*,
TO-92,
TO-92**,
SO-8
SO-8**
TO-220
no heat
sink
no heat
sink
no heat
sink
no heat
sink
Still air
400C/W
100C/W
180C/W
140C/W
220C/W
110C/W
90C/W
Moving air
100C/W
40C/W
90C/W
70C/W
105C/W
90C/W
26C/W
Still oil
100C/W
40C/W
90C/W
70C/W
Stirred oil
50C/W
30C/W
45C/W
40C/W
(Clamped to metal,
Infinite heat sink)
(24C/W)
(55C/W)
*Wakefield type 201, or 1" disc of 0.020" sheet brass, soldered to case, or similar.
**TO-92 and SO-8 packages glued and leads soldered to 1" square of 1/16" printed circuit board with 2 oz. foil or similar.
www.national.com
JA
LM35
Typical Applications
DS005516-19
DS005516-6
DS005516-7
DS005516-8
DS005516-5
www.national.com
LM35
Typical Applications
(Continued)
DS005516-11
DS005516-10
DS005516-13
FIGURE 13. Temperature To Digital Converter (Serial Output) (+128C Full Scale)
DS005516-14
www.national.com
LM35
Typical Applications
(Continued)
DS005516-16
DS005516-15
www.national.com
LM35
Block Diagram
DS005516-23
www.national.com
10
LM35
Physical Dimensions
11
www.national.com
LM35
Physical Dimensions
www.national.com
12
Physical Dimensions
National Semiconductor
Europe
Fax: +49 (0) 180-530 85 86
Email: europe.support@nsc.com
Deutsch Tel: +49 (0) 69 9508 6208
English Tel: +44 (0) 870 24 0 2171
Franais Tel: +33 (0) 1 41 91 8790
National Semiconductor
Asia Pacific Customer
Response Group
Tel: 65-2544466
Fax: 65-2504466
Email: ap.support@nsc.com
National Semiconductor
Japan Ltd.
Tel: 81-3-5639-7560
Fax: 81-3-5639-7507
National does not assume any responsibility for use of any circuitry described, no circuit patent licenses are implied and National reserves the right at any time without notice to change said circuitry and specifications.
LM124/LM224/LM324/LM2902
Low Power Quad Operational Amplifiers
General Description
Advantages
Unique Characteristics
n In the linear mode the input common-mode voltage
range includes ground and the output voltage can also
swing to ground, even though operated from only a
single power supply voltage
n The unity gain cross frequency is temperature
compensated
n The input bias current is also temperature compensated
Features
n Internally frequency compensated for unity gain
n Large DC voltage gain 100 dB
n Wide bandwidth (unity gain) 1 MHz
(temperature compensated)
n Wide power supply range:
Single supply 3V to 32V
or dual supplies 1.5V to 16V
n Very low supply current drain (700 A) essentially
independent of supply voltage
n Low input biasing current 45 nA
(temperature compensated)
n Low input offset voltage 2 mV
and offset current: 5 nA
n Input common-mode voltage range includes ground
n Differential input voltage range equal to the power
supply voltage
n Large output voltage swing 0V to V+ 1.5V
Connection Diagrams
Dual-In-Line Package
00929901
Top View
Order Number LM124J, LM124AJ, LM124J/883 (Note 2), LM124AJ/883 (Note 1), LM224J, LM224AJ, LM324J,
LM324M, LM324MX, LM324AM, LM324AMX, LM2902M, LM2902MX, LM324N, LM324AN, LM324MT,
LM324MTX or LM2902N LM124AJRQML and LM124AJRQMLV(Note 3)
See NS Package Number J14A, M14A or N14A
DS009299
www.national.com
August 2000
LM124/LM224/LM324/LM2902
Connection Diagrams
(Continued)
00929933
Schematic Diagram
(Each Amplifier)
00929902
www.national.com
(Note 12)
LM2902
LM124A/LM224A/LM324A
Supply Voltage, V+
32V
26V
32V
26V
0.3V to +32V
0.3V to +26V
50 mA
50 mA
Molded DIP
1130 mW
1130 mW
Cavity DIP
1260 mW
1260 mW
800 mW
800 mW
Continuous
Continuous
Input Voltage
Input Current
(VIN
<
0.3V) (Note 6)
40C to +85C
LM324/LM324A
0C to +70C
LM224/LM224A
25C to +85C
LM124/LM124A
55C to +125C
65C to +150C
65C to +150C
260C
260C
260C
260C
215C
215C
220C
220C
See AN-450 Surface Mounting Methods and Their Effect on Product Reliability for other methods of soldering surface mount
devices.
ESD Tolerance (Note 13)
250V
250V
Electrical Characteristics
V+ = +5.0V, (Note 7), unless otherwise stated
Parameter
LM124A
Conditions
(Note 8) TA = 25C
(Note 9)
TA = 25C
Min
Typ
LM224A
Max Min
Typ
LM324A
Max Min
Typ
Max
Units
mV
20
50
40
80
45
100
nA
10
15
30
nA
TA = 25C
Input Common-Mode
TA = 25C
Supply Current
V+1.5
V+1.5
V+1.5
RL = On All Op Amps
+
mA
V+ = 15V, RL 2k,
Voltage Gain
Common-Mode
1.5
0.7
1.2
1.5
0.7
1.2
1.5
0.7
1.2
50
100
50
100
25
100
V/mV
70
85
70
85
65
85
dB
www.national.com
LM124/LM224/LM324/LM2902
LM124/LM224/LM324/LM2902
Electrical Characteristics
(Continued)
V+ = +5.0V, (Note 7), unless otherwise stated
Parameter
LM124A
Conditions
Rejection Ratio
TA = 25C
Power Supply
V+ = 5V to 30V
Rejection Ratio
(LM2902, V+ = 5V to 26V),
LM224A
LM324A
Max
Units
Min
Typ
Max Min
Typ
Max Min
Typ
65
100
65
100
65
100
dB
120
dB
TA = 25C
Amplifier-to-Amplifier
(Input Referred)
Output
Current
Source
120
120
20
40
20
40
20
40
10
20
10
20
10
20
12
50
12
50
12
50
mA
VIN = 1V, V
+
IN
= 0V,
(Note 8)
VOS Drift
RS = 0
IOS Drift
RS = 0
10
200
10
200
IIN(+) or IIN()
40
100
40
100
Input Common-Mode
V+ = +30V
60
40
60
20
V+2
20
30
30
V+2
mA
mV
V/C
75
nA
10
300
pA/C
40
200
nA
V+2
Large Signal
25
15
V/mV
V = 30V
RL = 2 k
26
26
26
(LM2902, V+ = 26V)
RL = 10 k
27
RL 2 k
VOH
40
30
(LM2902, V = 26V)
Output
60
4
40
Voltage
Swing
Output
Current
VOL
V+ = 5V, RL = 10 k
Source
VO = 2V
28
5
VIN+ = +1V,
10
27
20
20
28
27
5
10
20
20
28
5
10
20
20
VIN = 0V,
mA
V+ = 15V
VIN = +1V,
Sink
mV
10
15
VIN+ = 0V,
V+ = 15V
Electrical Characteristics
V+ = +5.0V, (Note 7), unless otherwise stated
Parameter
LM124/LM224
Conditions
(Note 8) TA = 25C
(Note 9)
TA = 25C
Min
Typ
LM324
Max Min
Typ
LM2902
Max Min
Typ
Max
Units
mV
45
150
45
250
45
250
nA
30
50
50
nA
TA = 25C
Input Common-Mode
TA = 25C
www.national.com
V+1.5
V+1.5
V+1.5
(Continued)
V+ = +5.0V, (Note 7), unless otherwise stated
Parameter
Supply Current
LM124/LM224
Conditions
Min
Typ
LM324
Max Min
Typ
LM2902
Max Min
Typ
Max
Units
mA
1.5
1.5
1.5
V+ = 5V
0.7
1.2
0.7
1.2
0.7
1.2
Large Signal
V+ = 15V, RL 2k,
Voltage Gain
Common-Mode
Rejection Ratio
TA = 25C
Power Supply
V+ = 5V to 30V
Rejection Ratio
(LM2902, V+ = 5V to 26V),
50
100
25
100
25
100
V/mV
70
85
65
85
50
70
dB
65
100
65
100
50
100
dB
120
dB
TA = 25C
Amplifier-to-Amplifier
(Input Referred)
Output
Current
Source
120
120
20
40
20
40
20
40
10
20
10
20
10
20
12
50
12
50
12
50
mA
VIN = 1V, V
+
IN
= 0V,
(Note 8)
VOS Drift
RS = 0
IOS Drift
RS = 0
10
IIN(+) or IIN()
40
Input Common-Mode
40
60
V = +30V
7
150
45
10
300
V 2
40
500
V 2
40
200
mV
nA
pA/C
500
+
mA
V/C
10
+
60
10
7
100
40
V 2
nA
V
(LM2902, V = 26V)
Large Signal
Voltage Gain
RL 2 k
VOH
60
7
Output
40
25
15
15
V/mV
26
22
V = 30V
RL = 2 k
26
(LM2902, V+ = 26V)
RL = 10 k
27
Voltage
Swing
Output
Current
VOL
V+ = 5V, RL = 10 k
Source
VO = 2V
28
5
27
20
28
5
23
20
24
5
VIN = +1V,
10
20
10
20
10
mV
20
VIN = 0V,
Sink
100
mA
V+ = 15V
VIN = +1V,
VIN+ = 0V,
V+ = 15V
Note 4: For operating at high temperatures, the LM324/LM324A/LM2902 must be derated based on a +125C maximum junction temperature and a thermal
resistance of 88C/W which applies for the device soldered in a printed circuit board, operating in a still air ambient. The LM224/LM224A and LM124/LM124A can
be derated based on a +150C maximum junction temperature. The dissipation is the total of all four amplifiers use external resistors, where possible, to allow the
amplifier to saturate of to reduce the power which is dissipated in the integrated circuit.
Note 5: Short circuits from the output to V+ can cause excessive heating and eventual destruction. When considering short circuits to ground, the maximum output
current is approximately 40 mA independent of the magnitude of V+. At values of supply voltage in excess of +15V, continuous short-circuits can exceed the power
dissipation ratings and cause eventual destruction. Destructive dissipation can result from simultaneous shorts on all amplifiers.
Note 6: This input current will only exist when the voltage at any of the input leads is driven negative. It is due to the collector-base junction of the input PNP
transistors becoming forward biased and thereby acting as input diode clamps. In addition to this diode action, there is also lateral NPN parasitic transistor action
www.national.com
LM124/LM224/LM324/LM2902
Electrical Characteristics
LM124/LM224/LM324/LM2902
Electrical Characteristics
(Continued)
on the IC chip. This transistor action can cause the output voltages of the op amps to go to the V+voltage level (or to ground for a large overdrive) for the time
duration that an input is driven negative. This is not destructive and normal output states will re-establish when the input voltage, which was negative, again returns to
a value greater than 0.3V (at 25C).
Note 7: These specifications are limited to 55C TA +125C for the LM124/LM124A. With the LM224/LM224A, all temperature specifications are limited to
25C TA +85C, the LM324/LM324A temperature specifications are limited to 0C TA +70C, and the LM2902 specifications are limited to 40C TA
+85C.
Note 8: VO . 1.4V, RS = 0 with V+ from 5V to 30V; and over the full input common-mode range (0V to V+ 1.5V) for LM2902, V+ from 5V to
26V.
Note 9: The direction of the input current is out of the IC due to the PNP input stage. This current is essentially constant, independent of the state of the output so
no loading change exists on the input lines.
Note 10: The input common-mode voltage of either input signal voltage should not be allowed to go negative by more than 0.3V (at 25C). The upper end of the
common-mode voltage range is V+ 1.5V (at 25C), but either or both inputs can go to +32V without damage (+26V for LM2902), independent of the magnitude
of V+.
Note 11: Due to proximity of external components, insure that coupling is not originating via stray capacitance between these external parts. This typically can be
detected as this type of capacitance increases at higher frequencies.
Note 12: Refer to RETS124AX for LM124A military specifications and refer to RETS124X for LM124 military specifications.
Note 13: Human body model, 1.5 k in series with 100 pF.
Input Current
00929934
00929935
Supply Current
Voltage Gain
00929936
www.national.com
00929937
LM124/LM224/LM324/LM2902
(Continued)
00929938
00929939
00929940
00929941
Output Characteristics
Current Sourcing
00929942
00929943
www.national.com
LM124/LM224/LM324/LM2902
(Continued)
Output Characteristics
Current Sinking
Current Limiting
00929944
00929945
00929946
00929947
Application Hints
Large differential input voltages can be easily accommodated and, as input differential voltage protection diodes are
not needed, no large input currents result from large differential input voltages. The differential input voltage may be
larger than V+ without damaging the device. Protection
www.national.com
(Continued)
00929905
DC Summing Amplifier
(VINS 0 VDC and VO VDC)
Power Amplifier
00929907
00929906
Where: V0 = V1 + V2 V3 V4
(V1 + V2) (V3 + V4) to keep VO
AV = 10
> 0 VDC
www.national.com
LM124/LM224/LM324/LM2902
Application Hints
LM124/LM224/LM324/LM2902
LED Driver
00929908
00929909
fo = 1 kHz
Q = 50
AV = 100 (40 dB)
Lamp Driver
00929911
00929910
www.national.com
10
LM124/LM224/LM324/LM2902
Pulse Generator
00929915
Squarewave Oscillator
00929912
Driving TTL
00929916
Pulse Generator
00929913
Voltage Follower
00929914
00929917
11
www.national.com
LM124/LM224/LM324/LM2902
00929918
IO = 1 amp/volt VIN
(Increase RE for Io small)
00929919
www.national.com
12
00929920
00929921
VO = VR
00929922
00929923
13
www.national.com
LM124/LM224/LM324/LM2902
LM124/LM224/LM324/LM2902
00929924
00929925
www.national.com
14
LM124/LM224/LM324/LM2902
00929926
fO = 1 kHz
Q=1
AV = 2
00929927
15
www.national.com
LM124/LM224/LM324/LM2902
00929928
00929930
00929929
www.national.com
16
LM124/LM224/LM324/LM2902
00929931
fO = 1 kHz
Q = 25
17
www.national.com
LM124/LM224/LM324/LM2902
Physical Dimensions
www.national.com
18
LM124/LM224/LM324/LM2902
Physical Dimensions
19
www.national.com
Physical Dimensions
14-Pin TSSOP
Order NumberLM324MT or LM324MTX
NS Package Number MTC14
National Semiconductor
Europe Customer Support Center
Fax: +49 (0) 180-530 85 86
Email: europe.support@nsc.com
Deutsch Tel: +49 (0) 69 9508 6208
English Tel: +44 (0) 870 24 0 2171
Franais Tel: +33 (0) 1 41 91 8790
National Semiconductor
Asia Pacific Customer
Support Center
Email: ap.support@nsc.com
National Semiconductor
Japan Customer Support Center
Fax: 81-3-5639-7507
Email: jpn.feedback@nsc.com
Tel: 81-3-5639-7560
National does not assume any responsibility for use of any circuitry described, no circuit patent licenses are implied and National reserves the right at any time without notice to change said circuitry and specifications.
LM78XX/LM78XXA
3-Terminal 1A Positive Voltage
Regulator
Features
General Description
Output Current up to 1A
Ordering Information
Product Number
Package
Operating Temperature
4%
TO-220
-40C to +125C
LM7805CT
LM7806CT
LM7808CT
LM7809CT
LM7810CT
LM7812CT
LM7815CT
LM7818CT
LM7824CT
LM7805ACT
0C to +125C
2%
LM7806ACT
LM7808ACT
LM7809ACT
LM7810ACT
LM7812ACT
LM7815ACT
LM7818ACT
LM7824ACT
www.fairchildsemi.com
May 2006
Block Diagram
Input
Series Pass
Element
1
Current
Generator
Starting
Circuit
Output
3
SOA
Protection
Reference
Voltage
Error
Amplifier
Thermal
Protection
GND
2
Figure 1.
Pin Assignment
TO-220
GND
1. Input
2. GND
3. Output
Figure 2.
Symbol
VI
Parameter
Input Voltage
Value
Unit
VO = 5V to 18V
35
VO = 24V
40
RJC
C/W
RJA
65
C/W
TOPR
Operating Temperature
Range
-40 to +125
TSTG
LM78xx
LM78xxA
0 to +125
-65 to +150
www.fairchildsemi.com
Refer to the test circuits. -40C < TJ < 125C, IO = 500mA, VI = 10V, CI = 0.1F, unless otherwise specified.
Symbol
VO
Parameter
Conditions
Output Voltage
Min.
Typ.
Max.
Unit
4.8
5.0
5.2
4.75
5.0
5.25
VO = 7V to 25V
4.0
100
VI = 8V to 12V
1.6
50.0
IO = 5mA to 1.5A
9.0
100
IO = 250mA to 750mA
4.0
50.0
5.0
8.0
mA
0.03
0.5
mA
VI = 7V to 25V
0.3
1.3
IO = 5mA
-0.8
mV/C
42.0
V/VO
62.0
73.0
dB
IO = 1A, TJ = +25C
2.0
TJ = +25C
5mA IO 1A, PO 15W,
VI = 7V to 20V
Regline
Line Regulation(1)
TJ = +25C
(1)
TJ = +25C
Quiescent Current
TJ = +25C
(2)
RR
Ripple Rejection
VDROP
Dropout Voltage
(2)
f = 120Hz, VO = 8V to 18V
mV
mV
rO
Output Resistance
f = 1kHz
15.0
ISC
VI = 35V, TA = +25C
230
mA
TJ = +25C
2.2
IPK
Peak Current
(2)
Notes:
1. Load and line regulation are specified at constant junction temperature. Changes in VO due to heating effects
must be taken into account separately. Pulse testing with low duty is used.
2. These parameters, although guaranteed, are not 100% tested in production.
www.fairchildsemi.com
(Continued)
Refer to the test circuits. -40C < TJ < 125C, IO = 500mA, VI = 11V, CI = 0.33F, CO = 0.1F, unless otherwise specified.
Symbol
VO
Parameter
Conditions
Output Voltage
Min
Typ.
Max.
Unit
5.75
6.0
6.25
5.7
6.0
6.3
VI = 8V to 25V
5.0
120
VI = 9V to 13V
1.5
60.0
IO = 5mA to 1.5A
9.0
120
IO = 250mA to 750mA
3.0
60.0
TJ = +25C
5mA IO 1A, PO 15W,
VI = 8.0V to 21V
Regline
Regload
Line Regulation(3)
TJ = +25C
(3)
TJ = +25C
Load Regulation
mV
mV
IQ
Quiescent Current
TJ = +25C
5.0
8.0
mA
IQ
Quiescent Current
Change
IO = 5mA to 1A
0.5
mA
VI = 8V to 25V
1.3
IO = 5mA
-0.8
mV/C
45.0
V/VO
62.0
73.0
dB
IO = 1A, TJ = +25C
2.0
VO/T
VN
(4)
RR
Ripple Rejection
VDROP
Dropout Voltage
(4)
f = 120Hz, VO = 8V to 18V
rO
Output Resistance
f = 1kHz
19.0
ISC
VI = 35V, TA = +25C
250
mA
TJ = +25C
2.2
IPK
Peak Current
(4)
Notes:
3. Load and line regulation are specified at constant junction temperature. Changes in VO due to heating effects
must be taken into account separately. Pulse testing with low duty is used.
4. These parameters, although guaranteed, are not 100% tested in production.
www.fairchildsemi.com
(Continued)
Refer to the test circuits. -40C < TJ < 125C, IO = 500mA, VI = 14V, CI = 0.33F, CO = 0.1F, unless otherwise specified.
Symbol
VO
Regline
Parameter
Output Voltage
Line Regulation(5)
IQ
VO/T
VN
Min.
Typ.
Max.
Unit
TJ = +25C
7.7
8.0
8.3
7.6
8.0
8.4
VI = 10.5V to 25V
5.0
160
VI = 11.5V to 17V
2.0
80.0
IO = 5mA to 1.5A
10.0
160
IO = 250mA to 750mA
5.0
80.0
TJ = +25C
(5)
IQ
Conditions
TJ = +25C
mV
mV
Quiescent Current
TJ = +25C
5.0
8.0
mA
IO = 5mA to 1A
0.05
0.5
mA
VI = 10.5V to 25V
0.5
1.0
IO = 5mA
-0.8
mV/C
52.0
V/VO
56.0
73.0
dB
IO = 1A, TJ = +25C
2.0
(6)
RR
Ripple Rejection
VDROP
Dropout Voltage
(6)
rO
Output Resistance
f = 1kHz
17.0
ISC
VI = 35V, TA = +25C
230
mA
TJ = +25C
2.2
IPK
Peak Current
(6)
Notes:
5. Load and line regulation are specified at constant junction temperature. Changes in VO due to heating effects
must be taken into account separately. Pulse testing with low duty is used.
6. These parameters, although guaranteed, are not 100% tested in production.
www.fairchildsemi.com
(Continued)
Refer to the test circuits. -40C < TJ < 125C, IO = 500mA, VI = 15V, CI = 0.33F, CO = 0.1F, unless otherwise specified.
Symbol
VO
Parameter
Conditions
Output Voltage
Min.
Typ.
Max.
Unit
8.65
9.0
9.35
8.6
9.0
9.4
6.0
180
2.0
90.0
12.0
180
4.0
90.0
5.0
8.0
mA
0.5
mA
VI = 11.5V to 26V
1.3
IO = 5mA
-1.0
mV/C
58.0
V/VO
56.0
71.0
dB
IO = 1A, TJ = +25C
2.0
TJ = +25C
5mA IO 1A, PO 15W,
VI = 11.5V to 24V
Regline
Line Regulation(7)
(7)
IQ
IQ
VO/T
VN
Quiescent Current
TJ = +25C
(8)
RR
Ripple Rejection
VDROP
Dropout Voltage
(8)
mV
mV
rO
Output Resistance
f = 1kHz
17.0
ISC
VI = 35V, TA = +25C
250
mA
TJ = +25C
2.2
IPK
Peak Current
(8)
Notes:
7. Load and line regulation are specified at constant junction temperature. Changes in VO due to heating effects
must be taken into account separately. Pulse testing with low duty is used.
8. These parameters, although guaranteed, are not 100% tested in production.
www.fairchildsemi.com
(Continued)
Refer to the test circuits. -40C < TJ < 125C, IO = 500mA, VI = 16V, CI = 0.33F, CO = 0.1F, unless otherwise specified.
Symbol
Min.
Typ.
Max.
Unit
TJ = +25C
9.6
10.0
10.4
9.5
10.0
10.5
VI = 12.5V to 25V
10.0
200
VI = 13V to 25V
3.0
100
IO = 5mA to 1.5A
12.0
200
IO = 250mA to 750mA
4.0
400
5.1
8.0
mA
0.5
mA
VI = 12.5V to 29V
1.0
IO = 5mA
-1.0
mV/C
VN
58.0
V/VO
RR
Ripple Rejection(10)
56.0
71.0
dB
Dropout Voltage
IO = 1A, TJ = +25C
2.0
rO
Output Resistance(10)
f = 1kHz
17.0
ISC
VI = 35V, TA = +25C
250
mA
IPK
Peak Current(10)
TJ = +25C
2.2
VO
Regline
Parameter
Output Voltage
Line Regulation(9)
VO/T
VDROP
Quiescent Current
Conditions
TJ = +25C
TJ = +25C
TJ = +25C
mV
mV
Notes:
9. Load and line regulation are specified at constant junction temperature. Changes in VO due to heating effects
must be taken into account separately. Pulse testing with low duty is used.
10. These parameters, although guaranteed, are not 100% tested in production.
www.fairchildsemi.com
(Continued)
Refer to the test circuits. -40C < TJ < 125C, IO = 500mA, VI = 19V, CI = 0.33F, CO = 0.1F, unless otherwise specified.
Symbol
VO
Regline
Parameter
Conditions
Output Voltage
Line Regulation(11)
Min.
Typ.
Max.
Unit
TJ = +25C
11.5
12.0
12.5
11.4
12.0
12.6
10.0
240
3.0
120
11.0
240
5.0
120
5.1
8.0
mA
0.1
0.5
mA
VI = 14.5V to 30V
0.5
1.0
IO = 5mA
-1.0
mV/C
76.0
V/VO
55.0
71.0
dB
IO = 1A, TJ = +25C
2.0
Regload
(11)
Load Regulation
IO = 250mA to 750mA
IQ
Quiescent Current
TJ = +25C
IQ
VO/T
(12)
VN
RR
Ripple Rejection
VDROP
Dropout Voltage
(12)
mV
mV
rO
Output Resistance
f = 1kHz
18.0
ISC
VI = 35V, TA = +25C
230
mA
TJ = +25C
2.2
IPK
Peak Current
(12)
Notes:
11. Load and line regulation are specified at constant junction temperature. Changes in VO due to heating effects
must be taken into account separately. Pulse testing with low duty is used.
12. These parameters, although guaranteed, are not 100% tested in production.
www.fairchildsemi.com
(Continued)
Refer to the test circuits. -40C < TJ < 125C, IO = 500mA, VI = 23V, CI = 0.33F, CO = 0.1F, unless otherwise specified.
Symbol
VO
Regline
Parameter
Output Voltage
Line Regulation(13)
Conditions
Min.
Typ.
Max.
Unit
TJ = +25C
14.4
15.0
15.6
14.25
15.0
15.75
11.0
300
3.0
150
12.0
300
4.0
150
5.2
8.0
mA
0.5
mA
VI = 17.5V to 30V
1.0
IO = 5mA
-1.0
mV/C
90.0
V/VO
54.0
70.0
dB
IO = 1A, TJ = +25C
2.0
(13)
IQ
IQ
VO/T
VN
Quiescent Current
TJ = +25C
(14)
RR
Ripple Rejection
VDROP
Dropout Voltage
(14)
mV
mV
rO
Output Resistance
f = 1kHz
19.0
ISC
VI = 35V, TA = +25C
250
mA
TJ = +25C
2.2
IPK
Peak Current
(14)
Notes:
13. Load and line regulation are specified at constant junction temperature. Changes in VO due to heating effects
must be taken into account separately. Pulse testing with low duty is used.
14. These parameters, although guaranteed, are not 100% tested in production.
www.fairchildsemi.com
(Continued)
Refer to the test circuits. -40C < TJ < 125C, IO = 500mA, VI = 27V, CI = 0.33F, CO = 0.1F, unless otherwise specified.
Symbol
VO
Regline
Parameter
Conditions
Output Voltage
Line Regulation(15)
(15)
Min.
Typ.
Max.
Unit
TJ = +25C
17.3
18.0
18.7
17.1
18.0
18.9
15.0
360
VI = 24V to 30V
5.0
180
15.0
360
5.0
180
5.2
8.0
mA
mA
IQ
Quiescent Current
TJ = +25C
mV
mV
IQ
0.5
VI = 21V to 33V
1.0
VO/T
(16)
IO = 5mA
-1.0
mV/C
110
V/VO
53.0
69.0
dB
IO = 1A, TJ = +25C
2.0
VN
RR
Ripple Rejection
VDROP
Dropout Voltage
(16)
rO
Output Resistance
f = 1kHz
22.0
ISC
VI = 35V, TA = +25C
250
mA
TJ = +25C
2.2
IPK
Peak Current
(16)
Notes:
15. Load and line regulation are specified at constant junction temperature. Changes in VO due to heating effects
must be taken into account separately. Pulse testing with low duty is used.
16. These parameters, although guaranteed, are not 100% tested in production.
10
www.fairchildsemi.com
(Continued)
Refer to the test circuits. -40C < TJ < 125C, IO = 500mA, VI = 33V, CI = 0.33F, CO = 0.1F, unless otherwise specified.
Symbol
VO
Regline
Parameter
Conditions
Output Voltage
Line Regulation(17)
Typ.
Max.
Unit
TJ = +25C
23.0
24.0
25.0
22.8
24.0
25.25
VI = 27V to 38V
17.0
480
VI = 30V to 36V
6.0
240
IO = 5mA to 1.5A
15.0
480
IO = 250mA to 750mA
5.0
240
5.2
8.0
mA
mA
TJ = +25C
(17)
Min.
TJ = +25C
Quiescent Current
TJ = +25C
mV
mV
IQ
0.1
0.5
VI = 27V to 38V
0.5
1.0
VO/T
(18)
IO = 5mA
-1.5
mV/C
60.0
V/VO
50.0
67.0
dB
IO = 1A, TJ = +25C
2.0
VN
RR
Ripple Rejection
VDROP
Dropout Voltage
(18)
rO
Output Resistance
f = 1kHz
28.0
ISC
VI = 35V, TA = +25C
230
mA
TJ = +25C
2.2
IPK
Peak Current
(18)
Notes:
17. Load and line regulation are specified at constant junction temperature. Changes in VO due to heating effects
must be taken into account separately. Pulse testing with low duty is used.
18. These parameters, although guaranteed, are not 100% tested in production.
11
www.fairchildsemi.com
(Continued)
Refer to the test circuits. 0C < TJ < 125C, IO = 1A, VI = 10V, CI = 0.33F, CO = 0.1F, unless otherwise specified.
Symbol
VO
Regline
Parameter
Conditions
Output Voltage
Line Regulation(19)
Min.
Typ.
Max.
Unit
TJ = +25C
4.9
5.0
5.1
4.8
5.0
5.2
5.0
50.0
VI = 8V to 12V
3.0
50.0
VI = 7.3V to 20V
5.0
50.0
VI = 8V to 12V
1.5
25.0
9.0
100
IO = 5mA to 1A
9.0
100
IO = 250mA to 750mA
4.0
50.0
TJ = +25C
(19)
mV
mV
IQ
Quiescent Current
TJ = +25C
5.0
6.0
mA
IQ
Quiescent Current
Change
IO = 5mA to 1A
0.5
mA
VI = 8V to 25V, IO = 500mA
0.8
0.8
IO = 5mA
-0.8
mV/C
10.0
V/VO
68.0
dB
IO = 1A, TJ = +25C
2.0
VO/T
VN
(20)
RR
Ripple Rejection
VDROP
Dropout Voltage
(20)
rO
Output Resistance
f = 1kHz
17.0
ISC
VI = 35V, TA = +25C
250
mA
TJ = +25C
2.2
IPK
Peak Current
(20)
Notes:
19. Load and line regulation are specified at constant junction temperature. Changes in VO due to heating effects
must be taken into account separately. Pulse testing with low duty is used.
20. These parameters, although guaranteed, are not 100% tested in production.
12
www.fairchildsemi.com
(Continued)
Refer to the test circuits. 0C < TJ < 125C, IO = 1A, VI = 11V, CI = 0.33F, CO = 0.1F, unless otherwise specified.
Symbol
VO
Regline
Regload
IQ
IQ
VO/T
VN
Parameter
Conditions
Output Voltage
Line Regulation(21)
(21)
Load Regulation
Quiescent Current
Min.
Typ.
Max.
Unit
TJ = +25C
5.58
6.0
6.12
5.76
6.0
6.24
5.0
60.0
VI = 9V to 13V
3.0
60.0
TJ = +25C
VI = 8.3V to 21V
5.0
60.0
VI = 9V to 13V
1.5
30.0
9.0
100
IO = 5mA to 1A
9.0
100
IO = 250mA to 750mA
5.0
50.0
TJ = +25C
4.3
6.0
mA
0.5
mA
0.8
0.8
IO = 5mA
-0.8
mV/C
10.0
V/VO
65.0
dB
IO = 1A, TJ = +25C
2.0
(22)
RR
Ripple Rejection
VDROP
Dropout Voltage
(22)
mV
mV
rO
Output Resistance
f = 1kHz
17.0
ISC
VI = 35V, TA = +25C
250
mA
TJ = +25C
2.2
IPK
Peak Current
(22)
Notes:
21. Load and line regulation are specified at constant junction temperature. Changes in VO due to heating effects
must be taken into account separately. Pulse testing with low duty is used.
22. These parameters, although guaranteed, are not 100% tested in production.
13
www.fairchildsemi.com
(Continued)
Refer to the test circuits. 0C < TJ < 125C, IO = 1A, VI = 14V, CI = 0.33F, CO = 0.1F, unless otherwise specified.
Symbol
VO
Parameter
Conditions
Output Voltage
Min.
Typ.
Max.
Unit
7.84
8.0
8.16
7.7
8.0
8.3
6.0
80.0
VI = 11V to 17V
3.0
80.0
TJ = +25C
VI = 10.4V to 23V
6.0
80.0
VI = 11V to 17V
2.0
40.0
12.0
100
IO = 5mA to 1A
12.0
100
IO = 250mA to 750mA
5.0
50.0
TJ = +25C
5.0
6.0
mA
0.5
mA
0.8
0.8
IO = 5mA
-0.8
mV/C
10.0
V/VO
f = 120Hz, IO = 500mA,
VI = 11.5V to 21.5V
62.0
dB
IO = 1A, TJ = +25C
2.0
TJ = +25C
IO = 5mA to 1A, PO 15W,
VI = 10.6V to 23V
Regline
Regload
IQ
IQ
VO/T
VN
Line Regulation(23)
(23)
Load Regulation
Quiescent Current
(24)
RR
Ripple Rejection
VDROP
Dropout Voltage
(24)
mV
mV
rO
Output Resistance
f = 1kHz
18.0
ISC
VI = 35V, TA = +25C
250
mA
TJ = +25C
2.2
IPK
Peak Current
(24)
Notes:
23. Load and line regulation are specified at constant junction temperature. Changes in VO due to heating effects
must be taken into account separately. Pulse testing with low duty is used.
24. These parameters, although guaranteed, are not 100% tested in production.
14
www.fairchildsemi.com
(Continued)
Refer to the test circuits. 0C < TJ < 125C, IO = 1A, VI = 15V, CI = 0.33F, CO = 0.1F, unless otherwise specified.
Symbol
VO
Regline
Regload
IQ
IQ
VO/T
Parameter
Conditions
Output Voltage
Line Regulation(25)
(25)
Load Regulation
Quiescent Current
Min.
Typ.
Max.
Units
TJ = +25C
8.82
9.0
9.16
8.65
9.0
9.35
6.0
90.0
VI = 12.5V to 19V
4.0
45.0
TJ = +25C
VI = 11.5V to 24V
6.0
90.0
VI = 12.5V to 19V
2.0
45.0
12.0
100
IO = 5mA to 1A
12.0
100
IO = 250mA to 750mA
5.0
50.0
TJ = +25C
5.0
6.0
mA
0.5
mA
0.8
0.8
IO = 5mA
-1.0
mV/C
(26)
mV
mV
VN
10.0
V/VO
RR
Ripple Rejection(26)
f = 120Hz, IO = 500mA,
VI = 12V to 22V
62.0
dB
Dropout Voltage
IO = 1A, TJ = +25C
2.0
rO
Output Resistance(26)
f = 1kHz
17.0
ISC
VI = 35V, TA = +25C
250
mA
IPK
Peak Current(26)
TJ = +25C
2.2
VDROP
Notes:
25. Load and line regulation are specified at constant junction temperature. Changes in VO due to heating effects
must be taken into account separately. Pulse testing with low duty is used.
26. These parameters, although guaranteed, are not 100% tested in production.
15
www.fairchildsemi.com
(Continued)
Refer to the test circuits. 0C < TJ < 125C, IO = 1A, VI = 16V, CI = 0.33F, CO = 0.1F, unless otherwise specified.
Symbol
VO
Regline
Parameter
Conditions
Output Voltage
Line Regulation(27)
Min.
Typ.
Max.
Units
TJ = +25C
9.8
10.0
10.2
9.6
10.0
10.4
8.0
100
VI = 13V to 20V
4.0
50.0
VI = 12.5V to 25V
8.0
100
VI = 13V to 20V
3.0
50.0
12.0
100
IO = 5mA to 1A
12.0
100
IO = 250mA to 750mA
5.0
50.0
TJ = +25C
Regload
(27)
Load Regulation
mV
mV
IQ
Quiescent Current
TJ = +25C
5.0
6.0
mA
IQ
Quiescent Current
Change
IO = 5mA to 1A
0.5
mA
0.8
0.5
IO = 5mA
-1.0
mV/C
10.0
V/VO
62.0
dB
IO = 1A, TJ = +25C
2.0
VO/T
VN
(28)
RR
Ripple Rejection
VDROP
Dropout Voltage
(28)
rO
Output Resistance
f = 1kHz
17.0
ISC
VI = 35V, TA = +25C
250
mA
TJ = +25C
2.2
IPK
Peak Current
(28)
Notes:
27. Load and line regulation are specified at constant junction temperature. Changes in VO due to heating effects
must be taken into account separately. Pulse testing with low duty is used.
28. These parameters, although guaranteed, are not 100% tested in production.
16
www.fairchildsemi.com
(Continued)
Refer to the test circuits. 0C < TJ < 125C, IO = 1A, VI = 19V, CI = 0.33F, CO = 0.1F, unless otherwise specified.
Symbol
VO
Regline
Regload
IQ
IQ
VO/T
VN
Parameter
Conditions
Output Voltage
Line Regulation(29)
(29)
Load Regulation
Quiescent Current
Min.
Typ.
Max.
Units
TJ = +25C
11.75
12.0
12.25
11.5
12.0
12.5
10.0
120
VI = 16V to 22V
4.0
120
TJ = +25C
VI = 14.5V to 27V
10.0
120
VI = 16V to 22V
3.0
60.0
12.0
100
IO = 5mA to 1A
12.0
100
IO = 250mA to 750mA
5.0
50.0
TJ = +25C
5.1
6.0
mA
0.5
mA
0.8
0.8
IO = 5mA
-1.0
mV/C
10.0
V/VO
f = 120Hz, IO = 500mA,
VI = 14V to 24V
60.0
dB
IO = 1A, TJ = +25C
2.0
(30)
RR
Ripple Rejection
VDROP
Dropout Voltage
(30)
mV
mV
rO
Output Resistance
f = 1kHz
18.0
ISC
VI = 35V, TA = +25C
250
mA
TJ = +25C
2.2
IPK
Peak Current
(30)
Note:
29. Load and line regulation are specified at constant junction temperature. Changes in VO due to heating effects
must be taken into account separately. Pulse testing with low duty is used.
30. These parameters, although guaranteed, are not 100% tested in production.
17
www.fairchildsemi.com
(Continued)
Refer to the test circuits. 0C < TJ < 125C, IO = 1A, VI = 23V, CI = 0.33F, CO = 0.1F, unless otherwise specified.
Symbol
VO
Regline
Regload
IQ
IQ
VO/T
VN
Parameter
Conditions
Output Voltage
Line Regulation(31)
(31)
Load Regulation
Quiescent Current
Min.
Typ.
Max.
Units
TJ = +25C
14.75
15.0
15.3
14.4
15.0
15.6
10.0
150
VI = 20V to 26V
5.0
150
11.0
150
VI = 20V to 26V
3.0
75.0
12.0
100
IO = 5mA to 1A
12.0
100
IO = 250mA to 750mA
5.0
50.0
TJ = +25C
5.2
6.0
mA
0.5
mA
0.8
0.8
IO = 5mA
-1.0
mV/C
10.0
V/VO
f = 120Hz, IO = 500mA,
VI = 18.5V to 28.5V
58.0
dB
IO = 1A, TJ = +25C
2.0
(32)
RR
Ripple Rejection
VDROP
Dropout Voltage
(32)
mV
mV
rO
Output Resistance
f = 1kHz
19.0
ISC
VI = 35V, TA = +25C
250
mA
TJ = +25C
2.2
IPK
Peak Current
(32)
Notes:
31. Load and line regulation are specified at constant junction temperature. Changes in VO due to heating effects
must be taken into account separately. Pulse testing with low duty is used.
32. These parameters, although guaranteed, are not 100% tested in production.
18
www.fairchildsemi.com
(Continued)
Refer to the test circuits. 0C < TJ < 125C, IO = 1A, VI = 27V, CI = 0.33F, CO = 0.1F, unless otherwise specified.
Symbol
VO
Regline
Regload
IQ
IQ
VO/T
VN
Parameter
Min.
Typ.
Max.
Units
TJ = +25C
17.64
18.0
18.36
17.3
18.0
18.7
15.0
180
VI = 21V to 33V
5.0
180
TJ = +25C
VI = 20.6V to 33V
15.0
180
VI = 24V to 30V
5.0
90.0
15.0
100
IO = 5mA to 1A
15.0
100
IO = 250mA to 750mA
7.0
50.0
Quiescent Current
TJ = +25C
5.2
6.0
mA
IO = 5mA to 1A
0.5
mA
0.8
0.8
IO = 5mA
-1.0
mV/C
10.0
V/VO
f = 120Hz, IO = 500mA,
VI = 22V to 32V
57.0
dB
IO = 1A, TJ = +25C
2.0
Output Voltage
Line Regulation(33)
(33)
Load Regulation
(34)
RR
Ripple Rejection
VDROP
Dropout Voltage
(34)
Conditions
mV
mV
rO
Output Resistance
f = 1kHz
19.0
ISC
VI = 35V, TA = +25C
250
mA
TJ = +25C
2.2
IPK
Peak Current
(34)
Notes:
33. Load and line regulation are specified at constant junction temperature. Changes in VO due to heating effects
must be taken into account separately. Pulse testing with low duty is used.
34. These parameters, although guaranteed, are not 100% tested in production.
19
www.fairchildsemi.com
(Continued)
Refer to the test circuits. 0C < TJ < 125C, IO = 1A, VI = 33V, CI = 0.33F, CO = 0.1F, unless otherwise specified.
Symbol
VO
Regline
Parameter
Conditions
Output Voltage
Line Regulation(35)
Min.
Typ.
Max.
Units
TJ = +25C
23.5
24.0
24.5
23.0
24.0
25.0
18.0
240
VI = 21V to 33V
6.0
240
VI = 26.7V to 38V
18.0
240
VI = 30V to 36V
6.0
120
15.0
100
IO = 5mA to 1A
15.0
100
IO = 250mA to 750mA
7.0
50.0
TJ = +25C
5.2
6.0
mA
0.5
mA
0.8
0.8
IO = 5mA
-1.5
mV/C
10.0
V/VO
f = 120Hz, IO = 500mA,
VI = 28V to 38V
54.0
dB
IO = 1A, TJ = +25C
2.0
TJ = +25C
Regload
IQ
IQ
VO/T
VN
(35)
Load Regulation
Quiescent Current
(36)
RR
Ripple Rejection
VDROP
Dropout Voltage
(36)
mV
mV
rO
Output Resistance
f = 1kHz
20.0
ISC
VI = 35V, TA = +25C
250
mA
TJ = +25C
2.2
IPK
Peak Current
(36)
Notes:
35. Load and line regulation are specified at constant junction temperature. Changes in VO due to heating effects
must be taken into account separately. Pulse testing with low duty is used.
36. These parameters, although guaranteed, are not 100% tested in production.
20
www.fairchildsemi.com
5.75
VI = 10V
VO = 5V
IO = 5mA
TJ = 25C
VO = 100mV
2.5
OUTPUT CURRENT (A)
5.5
5.25
5
4.75
2
1.5
1
.5
4.5
-50
-25
25
50
75
100
125
1.01
0.99
-25
25
50
75
100
15
20
25
30
35
VI VO = 5V
IO = 5mA
0.98
-50
10
1.02
125
TJ = 25C
VO = 5V
IO = 10mA
6
5.5
5
4.5
10
15
20
25
30
35
21
www.fairchildsemi.com
Input
CI
LM78XX
Output
CO
0.33F
0.1F
Figure 7. DC Parameters
LM78XX
Input
Output
270pF
RL
2N6121
or EQ
0.33F
VO
VO
100
30S
0V
5.1
Input
LM78XX
0.33F
3
Output
RL
470F
120Hz
22
www.fairchildsemi.com
Typical Applications
LM78XX
Input
CI
Output
CO
0.33F
0.1F
Input
CI
LM78XX
Output
CO
0.33F
0.1F
IQ
R1
V XX
IO
RL
V XX
IO =
+I
R1 Q
Notes:
1. To specify an output voltage, substitute voltage value for XX. A common ground is required between the input and the
output voltage. The input voltage must remain typically 2.0V above the output voltage even during the low point on the
input ripple voltage.
2. CI is required if regulator is located an appreciable distance from power supply filter.
3. CO improves stability and transient response.
Figure 11.
Input
CI
LM78XX
CO
0.33F
Output
0.1F
V XX
R1
IQ
R2
IRI 5 IQ
VO = VXX(1 + R2 / R1) + IQR2
23
www.fairchildsemi.com
Output
LM7805
2
CI
0.33F
CO
- 2
LM741
+ 3
4
10k
0.1F
IRI 5 IQ
VO = VXX(1 + R2 / R1) + IQR2
Input
Q1 BD536
IQ1
R1
R1 =
LM78XX
IREG
V BEQ1
Output
3
IO
0.1F
0.33F
IREGIQ1 BQ1
Input
Q1
RSC
Q2
R1
3
0.33F
Q1 = TIP42
Q2 = TIP42
RSC =
LM78XX
2
3
0.1F
V BEQ2
I SC
Output
Input
24
www.fairchildsemi.com
LM78XX
VI
VO
0.33F
0.1F
COMMON
COMMON
LM741
4
-VIN
4.7k
4.7k
-VO
TIP42
1
+20V
0.33F
LM7815
2
3
+15V
0.1F
1N4001
2.2F
1F +
1
2
-20V
1N4001
MC7915
3
-15V
25
www.fairchildsemi.com
Input
+
0.1F
2
1
LM78XX
D45H11
Input
1mH
Output
470
4.7
Z1
0.33F
10F
LM78XX
2
+
0.5
2000F
26
www.fairchildsemi.com
Output
Dimensions in millimeters
TO-220
4.50
0.20
0.10
0.10
2.54TYP
[2.54 0.20]
18.95MAX.
15.90
1.52
0.10
0.80
0.10
+0.10
0.50 0.05
2.54TYP
[2.54 0.20]
10.00
+0.10
1.30 0.05
0.30
0.10
0.20
10.08
(1.00)
(3.00)
(1.46)
9.20
0.20
13.08
1.27
0.20
(3.70)
1.30
3.60
2.80
0.10
(8.70)
0.20
(1.70)
9.90
2.40
0.20
0.20
27
www.fairchildsemi.com
Mechanical Dimensions
The following are registered and unregistered trademarks Fairchild Semiconductor owns or is authorized to use and is not
intended to be an exhaustive list of all such trademarks.
ACEx
ActiveArray
Bottomless
Build it Now
CoolFET
CROSSVOLT
DOME
EcoSPARK
E2CMOS
EnSigna
FACT
FAST
FASTr
FPS
FRFET
GlobalOptoisolator
GTO
HiSeC
I2C
i-Lo
ImpliedDisconnect
IntelliMAX
FACT Quiet Series
Across the board. Around the world.
The Power Franchise
Programmable Active Droop
ISOPLANAR
LittleFET
MICROCOUPLER
MicroFET
MicroPak
MICROWIRE
MSX
MSXPro
OCX
OCXPro
OPTOLOGIC
OPTOPLANAR
PACMAN
POP
Power247
PowerEdge
PowerSaver
PowerTrench
QFET
QS
QT Optoelectronics
Quiet Series
RapidConfigure
RapidConnect
SerDes
ScalarPump
SILENT SWITCHER
SMART START
SPM
Stealth
SuperFET
SuperSOT-3
SuperSOT-6
SuperSOT-8
SyncFET
TCM
TinyLogic
TINYOPTO
TruTranslation
UHC
UniFET
UltraFET
VCX
Wire
DISCLAIMER
FAIRCHILD SEMICONDUCTOR RESERVES THE RIGHT TO MAKE CHANGES WITHOUT FURTHER NOTICE TO ANY
PRODUCTS HEREIN TO IMPROVE RELIABILITY, FUNCTION OR DESIGN. FAIRCHILD DOES NOT ASSUME ANY
LIABILITY ARISING OUT OF THE APPLICATION OR USE OF ANY PRODUCT OR CIRCUIT DESCRIBED HEREIN;
NEITHER DOES IT CONVEY ANY LICENSE UNDER ITS PATENT RIGHTS, NOR THE RIGHTS OF OTHERS. THESE
SPECIFICATIONS DO NOT EXPAND THE TERMS OF FAIRCHILDS WORLDWIDE TERMS AND CONDITIONS,
SPECIFICALLY THE WARRANTY THEREIN, WHICH COVERS THESE PRODUCTS.
Product Status
Definition
Advance Information
Formative or In
Design
Preliminary
First Production
No Identification Needed
Full Production
Obsolete
Not In Production
28
www.fairchildsemi.com
TRADEMARKS
NPN Silicon
COLLECTOR
1
2
BASE
3
EMITTER
MAXIMUM RATINGS
Rating
Symbol
Value
Unit
VCEO
40
Vdc
VCBO
75
Vdc
VEBO
6.0
Vdc
IC
600
mAdc
PD
625
5.0
mW
mW/C
PD
1.5
12
Watts
mW/C
TJ, Tstg
55 to +150
Symbol
Max
Unit
THERMAL CHARACTERISTICS
Characteristic
Thermal Resistance, Junction to Ambient
R JA
200
C/W
R JC
83.3
C/W
Symbol
Min
Max
Unit
V(BR)CEO
40
Vdc
V(BR)CBO
75
Vdc
V(BR)EBO
6.0
Vdc
ICEX
10
nAdc
ICBO
0.01
10
IEBO
10
nAdc
ICEO
10
nAdc
IBEX
20
nAdc
OFF CHARACTERISTICS
Adc
Symbol
Min
Max
Unit
35
50
75
35
100
50
40
300
0.3
1.0
0.6
1.2
2.0
fT
300
MHz
Output Capacitance
(VCB = 10 Vdc, IE = 0, f = 1.0 MHz)
Cobo
8.0
pF
Input Capacitance
(VEB = 0.5 Vdc, IC = 0, f = 1.0 MHz)
Cibo
25
pF
2.0
0.25
8.0
1.25
8.0
4.0
50
75
300
375
5.0
25
35
200
ON CHARACTERISTICS
DC Current Gain
(IC = 0.1 mAdc, VCE = 10 Vdc)
(IC = 1.0 mAdc, VCE = 10 Vdc)
(IC = 10 mAdc, VCE = 10 Vdc)
(IC = 10 mAdc, VCE = 10 Vdc, TA = 55C)
(IC = 150 mAdc, VCE = 10 Vdc)(1)
(IC = 150 mAdc, VCE = 1.0 Vdc)(1)
(IC = 500 mAdc, VCE = 10 Vdc)(1)
hFE
VCE(sat)
VBE(sat)
Vdc
Vdc
Input Impedance
(IC = 1.0 mAdc, VCE = 10 Vdc, f = 1.0 kHz)
(IC = 10 mAdc, VCE = 10 Vdc, f = 1.0 kHz)
hie
hre
hfe
Output Admittance
(IC = 1.0 mAdc, VCE = 10 Vdc, f = 1.0 kHz)
(IC = 10 mAdc, VCE = 10 Vdc, f = 1.0 kHz)
hoe
rb Cc
150
ps
NF
4.0
dB
td
10
ns
tr
25
ns
ts
225
ns
tf
60
ns
Noise Figure
(IC = 100 Adc, VCE = 10 Vdc, RS = 1.0 k , f = 1.0 kHz)
X 10 4
mhos
SWITCHING CHARACTERISTICS
Delay Time
Rise Time
Storage Time
Fall Time
+ 30 V
1.0 to 100 s,
DUTY CYCLE 2.0%
+16 V
0
2V
200
1.0 to 100 s,
DUTY CYCLE 2.0%
+16 V
0
1k
< 2 ns
1k
14 V
CS* < 10 pF
< 20 ns
CS* < 10 pF
1N914
4V
1000
700
500
hFE, DC CURRENT GAIN
200
TJ = 125C
300
200
25C
100
70
50
55C
30
VCE = 1.0 V
VCE = 10 V
20
10
0.1
0.2
0.3
0.5 0.7
1.0
2.0
3.0
5.0 7.0 10
20
30
IC, COLLECTOR CURRENT (mA)
50
70
100
200
300
1.0
TJ = 25C
0.8
0.6
IC = 1.0 mA
10 mA
150 mA
500 mA
0.4
0.2
0
0.005
0.01
0.02 0.03
0.05
0.1
0.2
0.3
0.5
1.0
IB, BASE CURRENT (mA)
2.0
3.0
5.0
10
20
30
50
200
500
IC/IB = 10
TJ = 25C
100
70
t, TIME (ns)
30
t, TIME (ns)
tr @ VCC = 30 V
td @ VEB(off) = 2.0 V
td @ VEB(off) = 0
50
20
10
7.0
5.0
200
ts = ts 1/8 tf
100
70
50
tf
30
20
10
7.0
5.0
3.0
2.0
5.0 7.0
10
20 30
50 70 100
200 300
IC, COLLECTOR CURRENT (mA)
500
5.0 7.0 10
20
70
100
200
300
500
10
RS = OPTIMUM
SOURCE
RESISTANCE
8.0
6.0
f = 1.0 kHz
8.0
NF, NOISE FIGURE (dB)
50
10
4.0
2.0
IC = 50 A
100 A
500 A
1.0 mA
6.0
4.0
2.0
0
0.01 0.02 0.05 0.1 0.2
5.0 10
20
50
0
50
100
100 200
f, FREQUENCY (kHz)
Ceb
10
7.0
5.0
Ccb
0.2 0.3
Figure 9. Capacitances
20 30
50
20
0.1
5.0 k 10 k 20 k
50 k 100 k
30
3.0
CAPACITANCE (pF)
30
Figure 5. Turn On
Time
2.0
VCC = 30 V
IC/IB = 10
IB1 = IB2
TJ = 25C
300
500
VCE = 20 V
TJ = 25C
300
200
100
70
50
1.0
2.0
3.0
5.0 7.0 10
20 30
IC, COLLECTOR CURRENT (mA)
50
70 100
1.0
+0.5
TJ = 25C
0
VBE(sat) @ IC/IB = 10
0.6
COEFFICIENT (mV/C)
V, VOLTAGE (VOLTS)
0.8
1.0 V
VBE(on) @ VCE = 10 V
0.4
0.2
0
R VC for VCE(sat)
0.5
1.0
1.5
R VB for VBE
2.0
VCE(sat) @ IC/IB = 10
0.1 0.2
500 1.0 k
2.5
0.1 0.2
0.5
1.0 2.0
5.0
10
20
50 100 200
500
PACKAGE DIMENSIONS
NOTES:
1. DIMENSIONING AND TOLERANCING PER ANSI
Y14.5M, 1982.
2. CONTROLLING DIMENSION: INCH.
3. CONTOUR OF PACKAGE BEYOND DIMENSION R
IS UNCONTROLLED.
4. DIMENSION F APPLIES BETWEEN P AND L.
DIMENSION D AND J APPLY BETWEEN L AND K
MINIMUM. LEAD DIMENSION IS UNCONTROLLED
IN P AND BEYOND DIMENSION K MINIMUM.
R
P
L
SEATING
PLANE
K
DIM
A
B
C
D
F
G
H
J
K
L
N
P
R
V
D
X X
H
V
SECTION XX
N
N
CASE 02904
(TO226AA)
ISSUE AD
INCHES
MIN
MAX
0.175
0.205
0.170
0.210
0.125
0.165
0.016
0.022
0.016
0.019
0.045
0.055
0.095
0.105
0.015
0.020
0.500
0.250
0.080
0.105
0.100
0.115
0.135
MILLIMETERS
MIN
MAX
4.45
5.20
4.32
5.33
3.18
4.19
0.41
0.55
0.41
0.48
1.15
1.39
2.42
2.66
0.39
0.50
12.70
6.35
2.04
2.66
2.54
2.93
3.43
STYLE 17:
PIN 1. COLLECTOR
2. BASE
3. EMITTER
Motorola reserves the right to make changes without further notice to any products herein. Motorola makes no warranty, representation or guarantee
regarding the suitability of its products for any particular purpose, nor does Motorola assume any liability arising out of the application or use of any product or
circuit, and specifically disclaims any and all liability, including without limitation consequential or incidental damages. Typical parameters which may be
provided in Motorola data sheets and/or specifications can and do vary in different applications and actual performance may vary over time. All operating
parameters, including Typicals must be validated for each customer application by customers technical experts. Motorola does not convey any license
under its patent rights nor the rights of others. Motorola products are not designed, intended, or authorized for use as components in systems intended for
surgical implant into the body, or other applications intended to support or sustain life, or for any other application in which the failure of the Motorola product
could create a situation where personal injury or death may occur. Should Buyer purchase or use Motorola products for any such unintended or unauthorized
application, Buyer shall indemnify and hold Motorola and its officers, employees, subsidiaries, affiliates, and distributors harmless against all claims, costs,
damages, and expenses, and reasonable attorney fees arising out of, directly or indirectly, any claim of personal injury or death associated with such
unintended or unauthorized use, even if such claim alleges that Motorola was negligent regarding the design or manufacture of the part. Motorola andare
registered trademarks of Motorola, Inc. Motorola, Inc. is an Equal Opportunity/Affirmative Action Employer.
How to reach us:
USA / EUROPE / Locations Not Listed: Motorola Literature Distribution;
JAPAN: Nippon Motorola Ltd.; TatsumiSPDJLDC, 6F SeibuButsuryu
Center, P.O. Box 20912; Phoenix, Arizona 85036. 18004412447 or 6023035454
3142 Tatsumi KotoKu, Tokyo 135, Japan. 038135218315
MFAX: RMFAX0@email.sps.mot.com TOUCHTONE 6022446609
INTERNET: http://DesignNET.com
ASIA / PACIFIC: Motorola Semiconductors H.K. Ltd.; 8B Tai Ping Industrial Park,
51 Ting Kok Road, Tai Po, N.T., Hong Kong. 85226629298
P2N2222A/D
DISCRETE SEMICONDUCTORS
M3D125
1997 Sep 03
Philips Semiconductors
Product specification
FEATURES
PINNING
PIN
DESCRIPTION
emitter
base
3
2
2
MAM264
Fig.1
VCEO
PARAMETER
collector-base voltage
CONDITIONS
UNIT
BC107
50
BC108; BC109
30
BC107
45
BC108; BC109
20
200
mA
300
mW
collector-emitter voltage
open base
Ptot
Tamb
hFE
DC current gain
IC = 2 mA; VCE = 5 V
25 C
BC107
110
450
BC108
110
800
200
800
BC109
transition frequency
1997 Sep 03
MAX.
open emitter
ICM
fT
MIN.
100
MHz
Philips Semiconductors
Product specification
LIMITING VALUES
In accordance with the Absolute Maximum Rating System (IEC 134).
SYMBOL
VCBO
VCEO
VEBO
PARAMETER
collector-base voltage
CONDITIONS
MIN.
MAX.
UNIT
open emitter
BC107
50
BC108; BC109
30
BC107
45
BC108; BC109
20
BC107
BC108; BC109
collector-emitter voltage
emitter-base voltage
open base
open collector
IC
100
mA
ICM
200
mA
IBM
200
mA
Ptot
300
mW
Tstg
storage temperature
+150
Tj
junction temperature
175
Tamb
+150
Tamb
25 C
65
65
THERMAL CHARACTERISTICS
SYMBOL
PARAMETER
CONDITIONS
VALUE
UNIT
Rth j-a
0.5
K/mW
Rth j-c
0.2
K/mW
Note
1. Transistor mounted on an FR4 printed-circuit board.
1997 Sep 03
Philips Semiconductors
Product specification
CHARACTERISTICS
Tj = 25 C unless otherwise specified.
SYMBOL
PARAMETER
CONDITIONS
MIN.
TYP.
MAX.
UNIT
IE = 0; VCB = 20 V
15
nA
ICBO
IE = 0; VCB = 20 V; Tj = 150 C
15
IEBO
IC = 0; VEB = 5 V
50
nA
hFE
DC current gain
IC = 10 A; VCE = 5 V
BC107A; BC108A
hFE
VCEsat
VBEsat
VBE
90
40
150
BC108C; BC109C
100
270
BC107A; BC108A
110
180
220
200
290
450
BC108C; BC109C
420
520
800
90
250
mV
IC = 100 mA; IB = 5 mA
200
600
mV
700
mV
900
mV
DC current gain
IC = 2 mA; VCE = 5 V
550
620
700
mV
770
mV
pF
Cc
collector capacitance
IE = ie = 0; VCB = 10 V; f = 1 MHz
2.5
Ce
emitter capacitance
fT
transition frequency
noise figure
IC = 200 A; VCE = 5 V; RS = 2 k ;
f = 30 Hz to 15.7 kHz
dB
IC = 200 A; VCE = 5 V; RS = 2 k ;
f = 1 kHz; B = 200 Hz
10
dB
dB
BC109B; BC109C
F
noise figure
BC107A; BC108A
BC107B; BC108B; BC108C
BC109B; BC109C
Notes
1. VBEsat decreases by about 1.7 mV/K with increasing temperature.
2. VBE decreases by about 2 mV/K with increasing temperature.
1997 Sep 03
pF
MHz
Philips Semiconductors
Product specification
PACKAGE OUTLINE
Metal-can cylindrical single-ended package; 3 leads
SOT18/13
seating plane
j
B
D1
2
3
a
A
10 mm
scale
DIMENSIONS (millimetre dimensions are derived from the original inch dimensions)
UNIT
D1
mm
5.31
4.74
2.54
0.47
0.41
5.45
5.30
4.70
4.55
1.03
0.94
1.1
0.9
15.0
12.7
0.40
REFERENCES
OUTLINE
VERSION
IEC
JEDEC
SOT18/13
B11/C7 type 3
TO-18
1997 Sep 03
EIAJ
45
EUROPEAN
PROJECTION
ISSUE DATE
97-04-18
Philips Semiconductors
Product specification
DEFINITIONS
Data Sheet Status
Objective specification
This data sheet contains target or goal specifications for product development.
Preliminary specification
This data sheet contains preliminary data; supplementary data may be published later.
Product specification
Limiting values
Limiting values given are in accordance with the Absolute Maximum Rating System (IEC 134). Stress above one or
more of the limiting values may cause permanent damage to the device. These are stress ratings only and operation
of the device at these or at any other conditions above those given in the Characteristics sections of the
specification is not implied. Exposure to limiting values for extended periods may affect device reliability.
Application information
Where application information is given, it is advisory and does not form part of the specification.
LIFE SUPPORT APPLICATIONS
These products are not designed for use in life support appliances, devices, or systems where malfunction of these
products can reasonably be expected to result in personal injury. Philips customers using or selling these products for
use in such applications do so at their own risk and agree to fully indemnify Philips for any damages resulting from
such improper use or sale.
1997 Sep 03
Philips Semiconductors
Product specification
1997 Sep 03
South Africa: S.A. PHILIPS Pty Ltd., 195-215 Main Road Martindale,
2092 JOHANNESBURG, P.O. Box 7430 Johannesburg 2000,
Tel. +27 11 470 5911, Fax. +27 11 470 5494
South America: Rua do Rocio 220, 5th floor, Suite 51,
04552-903 So Paulo, SO PAULO - SP, Brazil,
Tel. +55 11 821 2333, Fax. +55 11 829 1849
Spain: Balmes 22, 08007 BARCELONA,
Tel. +34 3 301 6312, Fax. +34 3 301 4107
For all other countries apply to: Philips Semiconductors, Marketing & Sales Communications,
Building BE-p, P.O. Box 218, 5600 MD EINDHOVEN, The Netherlands, Fax. +31 40 27 24825
Internet: http://www.semiconductors.philips.com
SCA55
All rights are reserved. Reproduction in whole or in part is prohibited without the prior written consent of the copyright owner.
The information presented in this document does not form part of any quotation or contract, is believed to be accurate and reliable and may be changed
without notice. No liability will be accepted by the publisher for any consequence of its use. Publication thereof does not convey nor imply any license
under patent- or other industrial or intellectual property rights.
117047/00/04/pp8
DISCRETE SEMICONDUCTORS
M3D186
BC546; BC547
NPN general purpose transistors
Product specification
Supersedes data of 1997 Mar 04
1999 Apr 15
Philips Semiconductors
Product specification
BC546; BC547
FEATURES
PINNING
PIN
DESCRIPTION
emitter
base
collector
Fig.1
LIMITING VALUES
In accordance with the Absolute Maximum Rating System (IEC 134).
SYMBOL
VCBO
VCEO
VEBO
PARAMETER
collector-base voltage
CONDITIONS
MIN.
MAX.
UNIT
open emitter
BC546
80
BC547
50
BC546
65
BC547
45
BC546
BC547
collector-emitter voltage
emitter-base voltage
open base
open collector
IC
100
mA
ICM
200
mA
IBM
200
mA
Ptot
500
mW
Tstg
storage temperature
+150
Tj
junction temperature
150
Tamb
+150
Tamb
65
65
Note
1. Transistor mounted on an FR4 printed-circuit board.
1999 Apr 15
25 C; note 1
Philips Semiconductors
Product specification
BC546; BC547
THERMAL CHARACTERISTICS
SYMBOL
Rth j-a
PARAMETER
CONDITIONS
note 1
VALUE
UNIT
0.25
K/mW
Note
1. Transistor mounted on an FR4 printed-circuit board.
CHARACTERISTICS
Tj = 25 C unless otherwise specified.
SYMBOL
ICBO
PARAMETER
collector cut-off current
CONDITIONS
TYP.
15
nA
100
IC = 0; VEB = 5 V
hFE
DC current gain
IC = 10 A; VCE = 5 V;
see Figs 2, 3 and 4
150
BC547C
270
IC = 2 mA; VCE = 5 V;
see Figs 2, 3 and 4
nA
90
BC546B; BC547B
BC546A
UNIT
IE = 0; VCB = 30 V; Tj = 150 C
emitter cut-off current
DC current gain
MAX.
IE = 0; VCB = 30 V
IEBO
BC546A
MIN.
110
180
220
BC546B; BC547B
200
290
450
BC547C
420
520
800
BC547
110
800
BC546
110
450
collector-emitter saturation
voltage
IC = 10 mA; IB = 0.5 mA
90
250
mV
IC = 100 mA; IB = 5 mA
200
600
mV
VBEsat
700
VBE
base-emitter voltage
VCEsat
mV
900
580
660
IC = 10 mA; VCE = 5 V
mV
700
mV
770
mV
Cc
collector capacitance
IE = ie = 0; VCB = 10 V; f = 1 MHz
1.5
pF
Ce
emitter capacitance
11
pF
fT
transition frequency
noise figure
IC = 200 A; VCE = 5 V;
RS = 2 k ; f = 1 kHz; B = 200 Hz
Notes
1. VBEsat decreases by about 1.7 mV/K with increasing temperature.
2. VBE decreases by about 2 mV/K with increasing temperature.
1999 Apr 15
MHz
2
10
dB
Philips Semiconductors
Product specification
BC546; BC547
MBH723
250
hFE
200
VCE = 5 V
150
100
50
0
10
10
102
10
IC (mA)
103
BC546A.
MBH724
300
hFE
VCE = 5 V
200
100
0
10 2
10 1
10
BC546B; BC547B.
1999 Apr 15
102
IC (mA)
103
Philips Semiconductors
Product specification
BC546; BC547
MBH725
600
VCE = 5 V
hFE
400
200
0
10
10
10
BC547C.
1999 Apr 15
102
IC (mA)
103
Philips Semiconductors
Product specification
BC546; BC547
PACKAGE OUTLINE
Plastic single-ended leaded (through hole) package; 3 leads
SOT54
E
d
L
b
1
e1
3
b1
L1
2.5
5 mm
scale
b1
e1
L1(1)
mm
5.2
5.0
0.48
0.40
0.66
0.56
0.45
0.40
4.8
4.4
1.7
1.4
4.2
3.6
2.54
1.27
14.5
12.7
2.5
Note
1. Terminal dimensions within this zone are uncontrolled to allow for flow of plastic and terminal irregularities.
OUTLINE
VERSION
SOT54
1999 Apr 15
REFERENCES
IEC
JEDEC
EIAJ
TO-92
SC-43
EUROPEAN
PROJECTION
ISSUE DATE
97-02-28
Philips Semiconductors
Product specification
BC546; BC547
DEFINITIONS
Data Sheet Status
Objective specification
This data sheet contains target or goal specifications for product development.
Preliminary specification
This data sheet contains preliminary data; supplementary data may be published later.
Product specification
Limiting values
Limiting values given are in accordance with the Absolute Maximum Rating System (IEC 134). Stress above one or
more of the limiting values may cause permanent damage to the device. These are stress ratings only and operation
of the device at these or at any other conditions above those given in the Characteristics sections of the
specification is not implied. Exposure to limiting values for extended periods may affect device reliability.
Application information
Where application information is given, it is advisory and does not form part of the specification.
LIFE SUPPORT APPLICATIONS
These products are not designed for use in life support appliances, devices, or systems where malfunction of these
products can reasonably be expected to result in personal injury. Philips customers using or selling these products for
use in such applications do so at their own risk and agree to fully indemnify Philips for any damages resulting from
such improper use or sale.
1999 Apr 15
Taiwan: Philips Semiconductors, 6F, No. 96, Chien Kuo N. Rd., Sec. 1,
TAIPEI, Taiwan Tel. +886 2 2134 2886, Fax. +886 2 2134 2874
Thailand: PHILIPS ELECTRONICS (THAILAND) Ltd.,
209/2 Sanpavuth-Bangna Road Prakanong, BANGKOK 10260,
Tel. +66 2 745 4090, Fax. +66 2 398 0793
Turkey: Talatpasa Cad. No. 5, 80640 GLTEPE/ISTANBUL,
Tel. +90 212 279 2770, Fax. +90 212 282 6707
Internet: http://www.semiconductors.philips.com
SCA63
All rights are reserved. Reproduction in whole or in part is prohibited without the prior written consent of the copyright owner.
The information presented in this document does not form part of any quotation or contract, is believed to be accurate and reliable and may be changed
without notice. No liability will be accepted by the publisher for any consequence of its use. Publication thereof does not convey nor imply any license
under patent- or other industrial or intellectual property rights.
115002/00/03/pp8
HD44780U (LCD-II)
(Dot Matrix Liquid Crystal Display Controller/Driver)
ADE-207-272(Z)
'99.9
Rev. 0.0
Description
The HD44780U dot-matrix liquid crystal display controller and driver LSI displays alphanumerics,
Japanese kana characters, and symbols. It can be configured to drive a dot-matrix liquid crystal display
under the control of a 4- or 8-bit microprocessor. Since all the functions such as display RAM, character
generator, and liquid crystal driver, required for driving a dot-matrix liquid crystal display are internally
provided on one chip, a minimal system can be interfaced with this controller/driver.
A single HD44780U can display up to one 8-character line or two 8-character lines.
The HD44780U has pin function compatibility with the HD44780S which allows the user to easily replace
an LCD-II with an HD44780U. The HD44780U character generator ROM is extended to generate 208 5
8 dot character fonts and 32 5 10 dot character fonts for a total of 240 different character
fonts.
The low power supply (2.7V to 5.5V) of the HD44780U is suitable for any portable battery-driven product
requiring low power dissipation.
Features
5 8 and 5 10 dot matrix
possible
Low power operation support:
2.7 to 5.5V
Wide range of liquid crystal display driver power
3.0 to 11V
Liquid crystal drive waveform
A (One line frequency AC waveform)
Correspond to high speed MPU bus interface
2 MHz (when VCC = 5V)
4-bit or 8-bit MPU interface enabled
HD44780U
64 8-bit character generator RAM
8 character fonts (5 8 dot)
4 character fonts (5 10 dot)
16-common 40-segment liquid crystal display driver
Programmable duty cycles
1/8 for one line of 5 8 dots with cursor
1/11 for one line of 5 10 dots with cursor
1/16 for two lines of 5 8 dots with cursor
Wide range of instruction functions:
Display clear, cursor home, display on/off, cursor on/off, display character blink, cursor shift,
display shift
Pin function compatibility with HD44780S
Automatic reset circuit that initializes the controller/driver after power on
Internal oscillator with external resistors
Low power consumption
Ordering Information
Type No.
Package
CGROM
HD44780UA00FS
HCD44780UA00
HD44780UA00TF
HD44780UA02FS
HCD44780UA02
HD44780UA02TF
FP-80B
Chip
TFP-80F
FP-80B
Chip
TFP-80F
HD44780UBxxFS
HCD44780UBxx
HD44780UBxxTF
FP-80B
Chip
TFP-80F
Custom font
HD44780U
HD44780U Block Diagram
OSC1 OSC2
Reset
circuit
ACL
Timing
generator
CPG
RS
R/W
E
Instruction
register (IR)
Address
counter
DB0 to
DB3
40-bit
shift
register
DB4 to
DB7
Display
data RAM
(DDRAM)
80 8 bits
Instruction
decoder
MPU
interface
Input/
output
buffer
CL1
CL2
16-bit
shift
register
Common
signal
driver
40-bit
latch
circuit
Segment
signal
driver
SEG1 to
SEG40
Data
register
(DR)
8
40
8
LCD drive
voltage
selector
Busy
flag
GND
COM1 to
COM16
Character
generator
ROM
(CGROM)
9,920 bits
Character
generator
RAM
(CGRAM)
64 bytes
5
Cursor
and
blink
controller
Parallel/serial converter
and
attribute circuit
VCC
V1
V2
V3
V4
V5
HD44780U
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
SEG23
SEG24
SEG25
SEG26
SEG27
SEG28
SEG29
SEG30
SEG31
SEG32
SEG33
SEG34
SEG35
SEG36
SEG37
SEG38
SEG22
SEG21
SEG20
SEG19
SEG18
SEG17
SEG16
SEG15
SEG14
64
63
62
61
60
59
58
57
56
SEG13
SEG12
SEG11
SEG10
SEG9
SEG8
SEG7
SEG6
SEG5
SEG4
SEG3
SEG2
SEG1
GND
OSC1
10
55
11
54
12
FP-80B
(Top view)
13
53
52
40
39
38
OSC2
V1
V2
V3
V4
V5
CL1
CL2
VCC
M
D
RS
R/W
E
DB0
DB1
37
41
36
42
24
35
43
23
34
44
22
33
45
21
32
46
20
31
47
19
30
48
18
29
49
17
28
16
27
50
26
51
15
25
14
SEG39
SEG40
COM16
COM15
COM14
COM13
COM12
COM11
COM10
COM9
COM8
COM7
COM6
COM5
COM4
COM3
COM2
COM1
DB7
DB6
DB5
DB4
DB3
DB2
HD44780U
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
60
59
58
57
56
55
54
53
52
TFP-80F
(Top view)
10
11
51
50
40
39
38
37
36
COM16
COM15
COM14
COM13
COM12
COM11
COM10
COM9
COM8
COM7
COM6
COM5
COM4
COM3
COM2
COM1
DB7
DB6
DB5
DB4
DB0
DB1
DB2
DB3
35
33
34
RS
R/W
32
31
30
41
29
42
20
28
43
19
27
44
18
26
45
17
25
46
16
24
47
15
23
48
14
22
49
13
21
12
GND
OSC1
OSC2
V1
V2
V3
V4
V5
CL1
CL2
VCC
SEG20
SEG19
SEG18
SEG17
SEG16
SEG15
SEG14
SEG13
SEG12
SEG11
SEG10
SEG9
SEG8
SEG7
SEG6
SEG5
SEG4
SEG3
SEG2
SEG1
79
80
SEG21
SEG22
SEG23
SEG24
SEG25
SEG26
SEG27
SEG28
SEG29
SEG30
SEG31
SEG32
SEG33
SEG34
SEG35
SEG36
SEG37
SEG38
SEG39
SEG40
HD44780U
HD44780U Pad Arrangement
Chip size:
4.90
4.90 mm2
114
80
114 m2
63
Type code
HD44780U
23
42
X
HD44780U
HCD44780U Pad Location Coordinates
Pad No.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Function
SEG22
SEG21
SEG20
SEG19
SEG18
SEG17
SEG16
SEG15
SEG14
SEG13
SEG12
SEG11
SEG10
SEG9
SEG8
SEG7
SEG6
SEG5
SEG4
SEG3
SEG2
SEG1
GND
OSC1
OSC2
V1
V2
V3
V4
V5
CL1
CL2
VCC
M
D
RS
R/W
E
DB0
DB1
Coordinate
X (um)
Y (um)
2100
2313
2280
2313
2313
2089
2313
1833
2313
1617
2313
1401
2313
1186
2313
970
2313
755
2313
539
2313
323
2313
108
2313
108
2313
323
2313
539
2313
755
2313
970
2313
1186
2313
1401
2313
1617
2313
1833
2313
2073
2280
2290
2080
2290
1749
2290
1550
2290
1268
2290
941
2290
623
2290
304
2290
48
2290
142
2290
309
2290
475
2290
665
2290
832
2290
1022
2290
1204
2290
1454
2290
1684
2290
Pad No.
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
Function
DB2
DB3
DB4
DB5
DB6
DB7
COM1
COM2
COM3
COM4
COM5
COM6
COM7
COM8
COM9
COM10
COM11
COM12
COM13
COM14
COM15
COM16
SEG40
SEG39
SEG38
SEG37
SEG36
SEG35
SEG34
SEG33
SEG32
SEG31
SEG30
SEG29
SEG28
SEG27
SEG26
SEG25
SEG24
SEG23
Coordinate
X (um)
Y (um)
2070
2290
2260
2290
2290
2099
2290
1883
2290
1667
2290
1452
2313
1186
2313
970
2313
755
2313
539
2313
323
2313
108
2313
108
2313
323
2313
539
2313
755
2313
970
2313
1186
2313
1401
2313
1617
2313
1833
2313
2095
2296
2313
2100
2313
1617
2313
1401
2313
1186
2313
970
2313
755
2313
539
2313
323
2313
108
2313
108
2313
323
2313
539
2313
755
2313
970
2313
1186
2313
1401
2313
1617
2313
HD44780U
Pin Functions
Signal
No. of
Lines
I/O
Device
Interfaced with
RS
MPU
Selects registers.
0: Instruction register (for write) Busy flag:
address counter (for read)
1: Data register (for write and read)
R/W
MPU
MPU
DB4 to DB7
I/O
MPU
DB0 to DB3
I/O
MPU
CL1
Extension driver
CL2
Extension driver
Extension driver
Extension driver
COM1 to COM16 16
LCD
SEG1 to SEG40 40
LCD
Segment signals
V1 to V5
Power supply
VCC, GND
Power supply
OSC1, OSC2
Oscillation
resistor clock
Function
HD44780U
Function Description
Registers
The HD44780U has two 8-bit registers, an instruction register (IR) and a data register (DR).
The IR stores instruction codes, such as display clear and cursor shift, and address information for display
data RAM (DDRAM) and character generator RAM (CGRAM). The IR can only be written from the MPU.
The DR temporarily stores data to be written into DDRAM or CGRAM and temporarily stores data to be
read from DDRAM or CGRAM. Data written into the DR from the MPU is automatically written into
DDRAM or CGRAM by an internal operation. The DR is also used for data storage when reading data
from DDRAM or CGRAM. When address information is written into the IR, data is read and then stored
into the DR from DDRAM or CGRAM by an internal operation. Data transfer between the MPU is then
completed when the MPU reads the DR. After the read, data in DDRAM or CGRAM at the next address is
sent to the DR for the next read from the MPU. By the register selector (RS) signal, these two registers can
be selected (Table 1).
Busy Flag (BF)
When the busy flag is 1, the HD44780U is in the internal operation mode, and the next instruction will not
be accepted. When RS = 0 and R/ W = 1 (Table 1), the busy flag is output to DB7. The next instruction
must be written after ensuring that the busy flag is 0.
Address Counter (AC)
The address counter (AC) assigns addresses to both DDRAM and CGRAM. When an address of an
instruction is written into the IR, the address information is sent from the IR to the AC. Selection of either
DDRAM or CGRAM is also determined concurrently by the instruction.
After writing into (reading from) DDRAM or CGRAM, the AC is automatically incremented by 1
(decremented by 1). The AC contents are then output to DB0 to DB6 when RS = 0 and R/W = 1 (Table 1).
Table 1
Register Selection
RS
R/W
Operation
HD44780U
Display Data RAM (DDRAM)
Display data RAM (DDRAM) stores display data represented in 8-bit character codes. Its extended
capacity is 80 8 bits, or 80 characters. The area in display data RAM (DDRAM) that is not used
for display can be used as general data RAM. See Figure 1 for the relationships between DDRAM
addresses and positions on the liquid crystal display.
The DDRAM address (ADD ) is set in the address counter (AC) as hexadecimal.
1-line display (N = 0) (Figure 2)
When there are fewer than 80 display characters, the display begins at the head position. For
example, if using only the HD44780, 8 characters are displayed. See Figure 3.
When the display shift operation is performed, the DDRAM address shifts. See Figure 3.
High order
bits
Low order
bits
AC
(hexadecimal) AC6 AC5 AC4 AC3 AC2 AC1 AC0
DDRAM
00
address
(hexadecimal)
01
02
79
..................
03 04
DDRAM
address
00 01 02 03 04 05 06 07
For
shift left
01 02 03 04 05 06 07 08
For
shift right 4F 00 01 02 03 04 05 06
10
80
4E 4F
HD44780U
2-line display (N = 1) (Figure 4)
Case 1: When the number of display characters is less than 40 2 lines, the two lines are
displayed from the head. Note that the first line end address and the second line start address are not
consecutive. For example, when just the HD44780 is used, 8 characters 2 lines are displayed.
See Figure 5.
When display shift operation is performed, the DDRAM address shifts. See Figure 5.
Display
position
00
DDRAM
address
(hexadecimal) 40
39
40
01
02
03 04
..................
26 27
41
42
43 44
..................
66 67
DDRAM
address
00 01 02 03 04 05 06 07
For
shift left
01 02 03 04 05 06 07 08
40 41 42 43 44 45 46 47
41 42 43 44 45 46 47 48
27 00 01 02 03 04 05 06
For
shift right
67 40 41 42 43 44 45 46
11
HD44780U
Case 2: For a 16-character 2-line display, the HD44780 can be extended using one 40output extension driver. See Figure 6.
When display shift operation is performed, the DDRAM address shifts. See Figure 6.
Display
position
DDRAM
address
9 10 11 12 13 14 15 16
00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F
HD44780U display
For
shift left
Extension driver
display
01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10
41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50
27 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E
For
shift right
67 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E
12
HD44780U
Character Generator ROM (CGROM)
The character generator ROM generates 5 8 dot or 5 10 dot character patterns from 8-bit
character codes (Table 4). It can generate 208 5 8 dot character patterns and 32 5 10 dot character
patterns. User- defined character patterns are also available by mask-programmed ROM.
Character Generator RAM (CGRAM)
In the character generator RAM, the user can rewrite character patterns by program. For 5 8 dots,
eight character patterns can be written, and for 5 10 dots, four character patterns can be written.
Write into DDRAM the character codes at the addresses shown as the left column of Table 4 to show the
character patterns stored in CGRAM.
See Table 5 for the relationship between CGRAM addresses and data and display patterns.
Areas that are not used for display can be used as general data RAM.
Modifying Character Patterns
Character pattern development procedure
The following operations correspond to the numbers listed in Figure 7:
1. Determine the correspondence between character codes and character patterns.
2. Create a listing indicating the correspondence between EPROM addresses and data.
3. Program the character patterns into the EPROM.
4. Send the EPROM to Hitachi.
5. Computer processing on the EPROM is performed at Hitachi to create a character pattern listing, which
is sent to the user.
6. If there are no problems within the character pattern listing, a trial LSI is created at Hitachi and samples
are sent to the user for evaluation. When it is confirmed by the user that the character patterns are
correctly written, mass production of the LSI proceeds at Hitachi.
13
HD44780U
Hitachi
User
Start
Computer
processing
Create character
pattern listing
Evaluate
character
patterns
No
Determine
character patterns
Create EPROM
address data listing
Write EPROM
EPROM
OK?
Hitachi
Yes
Art work
M/T
Masking
Trial
Sample
Sample
evaluation
OK?
6
No
Yes
Mass
production
Note: For a description of the numbers used in this figure, refer to the preceding page.
14
HD44780U
Programming character patterns
This section explains the correspondence between addresses and data used to program character patterns
in EPROM. The HD44780U character generator ROM can generate 208 5 8 dot character patterns
and
32 5 10 dot character patterns for a total of 240 different character patterns.
Character patterns
EPROM address data and character pattern data correspond with each other to form a 5 8 or 5
10 dot character pattern (Tables 2 and 3).
Table 2
Data
LSB
O 4 O3 O2 O1 O0
A 1 1A 1 0 A 9 A 8 A 7 A 6 A 5 A 4 A 3 A 2 A 1
A0
Character code
Notes: 1.
2.
3.
4.
5.
6.
Cursor position
Line
position
15
HD44780U
Handling unused character patterns
1. EPROM data outside the character pattern area: Always input 0s.
2. EPROM data in CGRAM area: Always input 0s. (Input 0s to EPROM addresses 00H to FFH.)
3. EPROM data used when the user does not use any HD44780U character pattern: According to the user
application, handled in one of the two ways listed as follows.
a. When unused character patterns are not programmed: If an unused character code is written into
DDRAM, all its dots are lit. By not programing a character pattern, all of its bits become lit. (This is
due to the EPROM being filled with 1s after it is erased.)
b. When unused character patterns are programmed as 0s: Nothing is displayed even if unused
character codes are written into DDRAM. (This is equivalent to a space.)
Table 3
Data
LSB
A 1 1A 1 0 A9 A 8 A7 A 6 A5 A 4 A3 A 2 A1 A 0 O 4 O3 O2 O1 O0
Character code
Notes: 1.
2.
3.
4.
5.
6.
16
Cursor position
Line
position
HD44780U
Table 4
Lower
4 Bits
Upper 4
Bits
Correspondence between Character Codes and Character Patterns (ROM Code: A00)
0000 0001 0010
xxxx0000
CG
RAM
(1)
xxxx0001
(2)
xxxx0010
(3)
xxxx0011
(4)
xxxx0100
(5)
xxxx0101
(6)
xxxx0110
(7)
xxxx0111
(8)
xxxx1000
(1)
xxxx1001
(2)
xxxx1010
(3)
0110
0111 1000
1001 1010
1110 1111
xxxx1011
xxxx1100
xxxx1101
xxxx1110
xxxx1111
(4)
(5)
(6)
(7)
(8)
Note: The user can specify any pattern for character-generator RAM.
17
HD44780U
Table 4
Lower
4 Bits
Upper 4
Bits
Correspondence between Character Codes and Character Patterns (ROM Code: A02)
0000 0001 0010
xxxx0000
CG
RAM
(1)
xxxx0001
(2)
xxxx0010
(3)
xxxx0011
(4)
xxxx0100
(5)
xxxx0101
(6)
xxxx0110
(7)
xxxx0111
(8)
xxxx1000
(1)
xxxx1001
(2)
xxxx1010
(3)
xxxx1011
xxxx1100
xxxx1101
xxxx1110
xxxx1111
(4)
(5)
(6)
(7)
(8)
18
0110
1110 1111
HD44780U
Table 5
For 5
CGRAM Address
Character Patterns
(CGRAM data)
7 6 5 4 3 2 1 0
5 4 3 2 1 0
7 6 5 4 3 2 1 0
High
High
High
Low
0 0 0 0 * 0 0 0
0 0 0 0 * 0 0 1
0 0 0 0 * 1 1 1
0 0 0
0 0 1
1 1 1
Low
0
0
0
0
1
1
1
1
0
0
0
0
1
1
1
1
0
0
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
1
1
1
1
0
0
1
1
0
1
0
1
* * *
* * *
* * *
* * *
* * *
Low
1
1
1
1
1
1
1
0
1
0
1
0
1
0
0
0
1
0
0
1
0
0
0
0
0
1
1
0
1
0
0
0
1
0
0
1
1
0
0
0
0
0
1
1
1
1
1
0
1
0
0
1
0
1
0
0
0
1
1
0
1
0
0
0
0
1
1
0
0
0
1
0
1
0
1
0
1
0
0
0
Character
pattern (1)
Cursor position
Character
pattern (2)
Cursor position
* * *
Notes: 1. Character code bits 0 to 2 correspond to CGRAM address bits 3 to 5 (3 bits: 8 types).
2. CGRAM address bits 0 to 2 designate the character pattern line position. The 8th line is the
cursor position and its display is formed by a logical OR with the cursor.
Maintain the 8th line data, corresponding to the cursor display position, at 0 as the cursor display.
If the 8th line data is 1, 1 bits will light up the 8th line regardless of the cursor presence.
3. Character pattern row positions correspond to CGRAM data bits 0 to 4 (bit 4 being at the left).
4. As shown Table 5, CGRAM character patterns are selected when character code bits 4 to 7 are
all 0. However, since character code bit 3 has no effect, the R display example above can be
selected by either character code 00H or 08H.
5. 1 for CGRAM data corresponds to display selection and 0 to non-selection.
* Indicates no effect.
19
HD44780U
Table 5
For 5
CGRAM Address
Character Patterns
(CGRAM data)
7 6 5 4 3 2 1 0
5 4 3 2 1 0
7 6 5 4 3 2 1 0
High
High
High
Low
0 0 0 0 * 0 0 *
0 0 0 0 * 1 1 *
0 0
1 1
Low
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
0
0
0
0
0
0
1
1
1
1
0
0
0
0
1
1
1
1
0
0
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
1
1
1
1
1
1
1
0
0
0
1
1
1
1
0
1
1
0
0
1
1
1
0
1
0
1
0
1
* * *
* * *
* * *
* * *
* * *
Low
0
0
1
1
1
1
1
1
1
1
0
*
0
0
0
1
0
0
1
0
0
0
0
*
0
0
1
0
0
0
1
0
0
0
0
*
0
0
1
0
0
0
1
0
0
0
0
*
0
0
0
1
1
1
0
0
0
0
0
*
Character
pattern
Cursor position
* * * * *
* * *
* * *
* * * * *
* * *
* * * * *
Notes: 1. Character code bits 1 and 2 correspond to CGRAM address bits 4 and 5 (2 bits: 4 types).
2. CGRAM address bits 0 to 3 designate the character pattern line position. The 11th line is the
cursor position and its display is formed by a logical OR with the cursor.
Maintain the 11th line data corresponding to the cursor display positon at 0 as the cursor display.
If the 11th line data is 1, 1 bits will light up the 11th line regardless of the cursor presence.
Since lines 12 to 16 are not used for display, they can be used for general data RAM.
3. Character pattern row positions are the same as 5 8 dot character pattern positions.
4. CGRAM character patterns are selected when character code bits 4 to 7 are all 0.
However, since character code bits 0 and 3 have no effect, the P display example above can be
selected by character codes 00H, 01H, 08H, and 09H.
5. 1 for CGRAM data corresponds to display selection and 0 to non-selection.
* Indicates no effect.
20
HD44780U
Timing Generation Circuit
The timing generation circuit generates timing signals for the operation of internal circuits such as
DDRAM, CGROM and CGRAM. RAM read timing for display and internal operation timing by MPU
access are generated separately to avoid interfering with each other. Therefore, when writing data to
DDRAM, for example, there will be no undesirable interferences, such as flickering, in areas other than the
display area.
Liquid Crystal Display Driver Circuit
The liquid crystal display driver circuit consists of 16 common signal drivers and 40 segment signal
drivers. When the character font and number of lines are selected by a program, the required common
signal drivers automatically output drive waveforms, while the other common signal drivers continue to
output non-selection waveforms.
Sending serial data always starts at the display data character pattern corresponding to the last address of
the display data RAM (DDRAM).
Since serial data is latched when the display data character pattern corresponding to the starting address
enters the internal shift register, the HD44780U drives from the head display.
Cursor/Blink Control Circuit
The cursor/blink control circuit generates the cursor or character blinking. The cursor or the blinking will
appear with the digit located at the display data RAM (DDRAM) address set in the address counter (AC).
For example (Figure 8), when the address counter is 08H, the cursor position is displayed at DDRAM
address 08H.
AC6 AC5 AC4 AC3 AC2 AC1 AC0
AC
Display position
10
11
DDRAM address
(hexadecimal)
00
01
02
03
04
05
06
07
08
09
0A
Display position
10
11
DDRAM address
(hexadecimal)
00
01
02
03
04
05
06
07
08
09
0A
40
41
42
43
44
45
46
47
48
49
4A
cursor position
cursor position
Note: The cursor or blinking appears when the address counter (AC) selects the
character generator RAM (CGRAM). However, the cursor and blinking become
meaningless.
The cursor or blinking is displayed in the meaningless position when the AC is a CGRAM address.
21
HD44780U
Interfacing to the MPU
The HD44780U can send data in either two 4-bit operations or one 8-bit operation, thus allowing
interfacing with 4- or 8-bit MPUs.
For 4-bit interface data, only four bus lines (DB4 to DB7) are used for transfer. Bus lines DB0 to DB3
are disabled. The data transfer between the HD44780U and the MPU is completed after the 4-bit data
has been transferred twice. As for the order of data transfer, the four high order bits (for 8-bit operation,
DB4 to DB7) are transferred before the four low order bits (for 8-bit operation, DB0 to DB3).
The busy flag must be checked (one instruction) after the 4-bit data has been transferred twice. Two
more 4-bit operations then transfer the busy flag and address counter data.
For 8-bit interface data, all eight bus lines (DB0 to DB7) are used.
RS
R/W
E
DB7
IR7
IR3
BF
AC3
DR7
DR3
DB6
IR6
IR2
AC6
AC2
DR6
DR2
DB5
IR5
IR1
AC1
DR5
DR1
DB4
IR4
IR0
AC0
DR4
DR0
AC5
AC4
22
HD44780U
Reset Function
Initializing by Internal Reset Circuit
An internal reset circuit automatically initializes the HD44780U when the power is turned on. The
following instructions are executed during the initialization. The busy flag (BF) is kept in the busy state
until the initialization ends (BF = 1). The busy state lasts for 10 ms after VCC rises to 4.5 V.
1. Display clear
2. Function set:
DL = 1; 8-bit interface data
N = 0; 1-line display
F = 0; 5 8 dot character font
3. Display on/off control:
D = 0; Display off
C = 0; Cursor off
B = 0; Blinking off
4. Entry mode set:
I/D = 1; Increment by 1
S = 0; No shift
Note:
If the electrical characteristics conditions listed under the table Power Supply Conditions Using
Internal Reset Circuit are not met, the internal reset circuit will not operate normally and will fail to
initialize the HD44780U. For such a case, initial-ization must be performed by the MPU as
explained in the section, Initializing by Instruction.
Instructions
Outline
Only the instruction register (IR) and the data register (DR) of the HD44780U can be controlled by the
MPU. Before starting the internal operation of the HD44780U, control information is temporarily stored
into these registers to allow interfacing with various MPUs, which operate at different speeds, or various
peripheral control devices. The internal operation of the HD44780U is determined by signals sent from the
MPU. These signals, which include register selection signal (RS), read/
write signal (R/W), and the data bus (DB0 to DB7), make up the HD44780U instructions (Table 6). There
are four categories of instructions that:
Designate HD44780U functions, such as display format, data length, etc.
Set internal RAM addresses
Perform data transfer with internal RAM
Perform miscellaneous functions
23
HD44780U
Normally, instructions that perform data transfer with internal RAM are used the most. However, autoincrementation by 1 (or auto-decrementation by 1) of internal HD44780U RAM addresses after each data
write can lighten the program load of the MPU. Since the display shift instruction (Table 11) can perform
concurrently with display data write, the user can minimize system development time with maximum
programming efficiency.
When an instruction is being executed for internal operation, no instruction other than the busy flag/address
read instruction can be executed.
Because the busy flag is set to 1 while an instruction is being executed, check it to make sure it is 0 before
sending another instruction from the MPU.
Note:
Be sure the HD44780U is not in the busy state (BF = 0) before sending an instruction from the
MPU to the HD44780U. If an instruction is sent without checking the busy flag, the time between
the first instruction and next instruction will take much longer than the instruction time itself. Refer
to Table 6 for the list of each instruc-tion execution time.
Table 6
Instructions
Code
Execution Time
(max) (when f cp or
f OSC is 270 kHz)
Instruction RS
R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 Description
Clear
display
Return
home
1.52 ms
Entry
mode set
I/D
37 s
Display
on/off
control
Cursor or
display
shift
S/C R/L
Function
set
DL
Set
CGRAM
address
37 s
Set
DDRAM
address
ADD ADD ADD ADD ADD ADD ADD Sets DDRAM address.
DDRAM data is sent and
received after this setting.
37 s
Read busy 0
flag &
address
BF
AC
0 s
24
AC
AC
AC
AC
AC
AC
37 s
HD44780U
Table 6
Instructions (cont)
Execution Time
(max) (when f cp or
f OSC is 270 kHz)
Code
Instruction RS
R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 Description
Write data
to CG or
DDRAM
Write data
37 s
tADD = 4 s*
Read data 1
from CG or
DDRAM
Read data
37 s
tADD = 4 s*
= 1:
= 0:
= 1:
= 1:
= 0:
= 1:
= 0:
= 1:
= 1:
= 1:
Increment
Decrement
Accompanies display shift
Display shift
Cursor move
Shift to the right
Shift to the left
8 bits, DL = 0: 4 bits
2 lines, N = 0: 1 line
5 10 dots, F = 0: 5 8
Execution time
changes when
frequency changes
Example:
When fcp or fOSC is
250 kHz,
37 s 270 = 40 s
250
= 1:
= 0:
Internally operating
Instructions acceptable
I/D
I/D
S
S/C
S/C
R/L
R/L
DL
N
F
dots
BF
BF
Note:
indicates no effect.
* After execution of the CGRAM/DDRAM data write or read instruction, the RAM address counter
is incremented or decremented by 1. The RAM address counter is updated after the busy flag
turns off. In Figure 10, tADD is the time elapsed after the busy flag turns off until the address
counter is updated.
Busy signal
(DB7 pin)
Address counter
(DB0 to DB6 pins)
Busy state
A+1
t ADD
25
HD44780U
Instruction Description
Clear Display
Clear display writes space code 20H (character pattern for character code 20H must be a blank pattern) into
all DDRAM addresses. It then sets DDRAM address 0 into the address counter, and returns the display to
its original status if it was shifted. In other words, the display disappears and the cursor or blinking goes to
the left edge of the display (in the first line if 2 lines are displayed). It also sets I/D to 1 (increment mode)
in entry mode. S of entry mode does not change.
Return Home
Return home sets DDRAM address 0 into the address counter, and returns the display to its original status
if it was shifted. The DDRAM contents do not change.
The cursor or blinking go to the left edge of the display (in the first line if 2 lines are displayed).
Entry Mode Set
I/D: Increments (I/D = 1) or decrements (I/D = 0) the DDRAM address by 1 when a character code is
written into or read from DDRAM.
The cursor or blinking moves to the right when incremented by 1 and to the left when decremented by 1.
The same applies to writing and reading of CGRAM.
S: Shifts the entire display either to the right (I/D = 0) or to the left (I/D = 1) when S is 1. The display does
not shift if S is 0.
If S is 1, it will seem as if the cursor does not move but the display does. The display does not shift when
reading from DDRAM. Also, writing into or reading out from CGRAM does not shift the display.
Display On/Off Control
D: The display is on when D is 1 and off when D is 0. When off, the display data remains in DDRAM, but
can be displayed instantly by setting D to 1.
C: The cursor is displayed when C is 1 and not displayed when C is 0. Even if the cursor disappears, the
function of I/D or other specifications will not change during display data write. The cursor is displayed
using 5 dots in the 8th line for 5 8 dot character font selection and in the 11th line for the 5 10
dot character font selection (Figure 13).
B: The character indicated by the cursor blinks when B is 1 (Figure 13). The blinking is displayed as
switching between all blank dots and displayed characters at a speed of 409.6-ms intervals when fcp or f OSC
is 250 kHz. The cursor and blinking can be set to display simultaneously. (The blinking frequency changes
according to f OSC or the reciprocal of fcp. For example, when fcp is 270 kHz, 409.6 250/270 = 379.2 ms.)
26
HD44780U
Cursor or Display Shift
Cursor or display shift shifts the cursor position or display to the right or left without writing or reading
display data (Table 7). This function is used to correct or search the display. In a 2-line display, the cursor
moves to the second line when it passes the 40th digit of the first line. Note that the first and second line
displays will shift at the same time.
When the displayed data is shifted repeatedly each line moves only horizontally. The second line display
does not shift into the first line position.
The address counter (AC) contents will not change if the only action performed is a display shift.
Function Set
DL: Sets the interface data length. Data is sent or received in 8-bit lengths (DB7 to DB0) when DL is 1,
and in 4-bit lengths (DB7 to DB4) when DL is 0.When 4-bit length is selected, data must be sent or
received twice.
N: Sets the number of display lines.
F: Sets the character font.
Note:
Perform the function at the head of the program before executing any instructions (except for the
read busy flag and address instruction). From this point, the function set instruction cannot be
executed unless the interface data length is changed.
27
HD44780U
RS
Clear
display
Code
0
RS
Return
home
Code
RS
Entry
mode set
Code
0
RS
Display
on/off control
Code
RS
Cursor or
display shift
Code
0
RS
Function set
Code
RS
Set CGRAM
address
Code
I/D
S/C
R/L
DL
Higher
order bit
28
Lower
order bit
HD44780U
Set DDRAM Address
Set DDRAM address sets the DDRAM address binary AAAAAAA into the address counter.
Data is then written to or read from the MPU for DDRAM.
However, when N is 0 (1-line display), AAAAAAA can be 00H to 4FH. When N is 1 (2-line display),
AAAAAAA can be 00H to 27H for the first line, and 40H to 67H for the second line.
Read Busy Flag and Address
Read busy flag and address reads the busy flag (BF) indicating that the system is now internally operating
on a previously received instruction. If BF is 1, the internal operation is in progress. The next instruction
will not be accepted until BF is reset to 0. Check the BF status before the next write operation. At the same
time, the value of the address counter in binary AAAAAAA is read out. This address counter is used by
both CG and DDRAM addresses, and its value is determined by the previous instruction. The address
contents are the same as for instructions set CGRAM address and set DDRAM address.
Table 7
Shift Function
S/C
R/L
Shifts the entire display to the left. The cursor follows the display shift.
Shifts the entire display to the right. The cursor follows the display shift.
Table 8
Function Set
No. of
Display
Lines
5 8 dots
1/8
5 10 dots
1/11
5 8 dots
1/16
Note:
Character Font
Duty
Factor
Remarks
29
HD44780U
Cursor
5 8 dot
character font
5 10 dot
character font
Alternating display
Code
Higher
order bit
RS
Read busy flag
and address
Code
Lower
order bit
BF
Higher
order bit
30
Lower
order bit
HD44780U
Write Data to CG or DDRAM
Write data to CG or DDRAM writes 8-bit binary data DDDDDDDD to CG or DDRAM.
To write into CG or DDRAM is determined by the previous specification of the CGRAM or DDRAM
address setting. After a write, the address is automatically incremented or decremented by 1 according to
the entry mode. The entry mode also determines the display shift.
Read Data from CG or DDRAM
Read data from CG or DDRAM reads 8-bit binary data DDDDDDDD from CG or DDRAM.
The previous designation determines whether CG or DDRAM is to be read. Before entering this read
instruction, either CGRAM or DDRAM address set instruction must be executed. If not executed, the first
read data will be invalid. When serially executing read instructions, the next address data is normally read
from the second read. The address set instructions need not be executed just before this read instruction
when shifting the cursor by the cursor shift instruction (when reading out DDRAM). The operation of the
cursor shift instruction is the same as the set DDRAM address instruction.
After a read, the entry mode automatically increases or decreases the address by 1. However, display shift
is not executed regardless of the entry mode.
Note:
The address counter (AC) is automatically incremented or decremented by 1 after the write
instructions to CGRAM or DDRAM are executed. The RAM data selected by the AC cannot be
read out at this time even if read instructions are executed. Therefore, to correctly read data,
execute either the address set instruction or cursor shift instruction (only with DDRAM), then just
before reading the desired data, execute the read instruction from the second time the read
instruction is sent.
RS
Write data to
CG or DDRAM
Code
Higher
order bits
RS
Read data from
CG or DDRAM
Code
Lower
order bits
Higher
order bits
Lower
order bits
31
HD44780U
Interfacing the HD44780U
Interface to MPUs
Interfacing to an 8-bit MPU
See Figure 16 for an example of using a I/O port (for a single-chip microcomputer) as an interface
device.
In this example, P30 to P37 are connected to the data bus DB0 to DB7, and P75 to P77 are connected to
E, R/W, and RS, respectively.
RS
R/W
E
Internal
operation
Functioning
DB7
Data
Busy
Busy
Instruction
write
Busy flag
check
Busy flag
check
Not
busy
Data
Busy flag
check
Instruction
write
HD44780U
P30 to P37
P77
P76
P75
DB0 to DB7
E
RS
R/W
COM1 to
COM16
LCD
SEG1 to
SEG40
32
16
40
HD44780U
Interfacing to a 4-bit MPU
The HD44780U can be connected to the I/O port of a 4-bit MPU. If the I/O port has enough bits, 8-bit
data can be transferred. Otherwise, one data transfer must be made in two operations for 4-bit data. In
this case, the timing sequence becomes somewhat complex. (See Figure 17.)
See Figure 18 for an interface example to the HMCS4019R.
Note that two cycles are needed for the busy flag check as well as for the data transfer. The 4-bit
operation is selected by the program.
RS
R/W
E
Internal
operation
DB7
Functioning
IR7
IR3
Instruction
write
Busy AC3
Not
busy AC3
Busy flag
check
Busy flag
check
D7
D3
Instruction
write
Note: IR7 , IR3 are the 7th and 3rd bits of the instruction.
AC3 is the 3rd bit of the address counter.
HD44780
D15
RS
D14
R/W
D13
R10 to R13
4
DB4 to DB7
COM1 to
COM16
16
LCD
SEG1 to
SEG40
40
33
HD44780U
Interface to Liquid Crystal Display
Character Font and Number of Lines: The HD44780U can perform two types of displays, 5 8 dot
and
5 10 dot character fonts, each with a cursor.
Up to two lines are displayed for 5 8 dots and one line for 5 10 dots. Therefore, a total of
three types of common signals are available (Table 9).
The number of lines and font types can be selected by the program. (See Table 6, Instructions.)
Connection to HD44780 and Liquid Crystal Display: See Figure 19 for the connection examples.
Table 9
Common Signals
Number of Lines
Character Font
Duty Factor
5 8 dots + cursor
1/8
5 10 dots + cursor
11
1/11
5 8 dots + cursor
16
1/16
HD44780
COM1
COM8
SEG1
SEG40
Example of a 5
8 dot, 8-character
HD44780
COM1
COM11
SEG1
SEG40
Example of a 5
10 dot, 8-character
34
HD44780U
Since five segment signal lines can display one digit, one HD44780U can display up to 8 digits for a 1-line
display and 16 digits for a 2-line display.
The examples in Figure 19 have unused common signal pins, which always output non-selection
waveforms. When the liquid crystal display panel has unused extra scanning lines, connect the extra
scanning lines to these common signal pins to avoid any undesirable effects due to crosstalk during the
floating state.
HD44780
COM1
COM8
COM9
COM16
SEG1
SEG40
Example of a 5
8 dot, 8-character
35
HD44780U
Connection of Changed Matrix Layout: In the preceding examples, the number of lines correspond to the
scanning lines. However, the following display examples (Figure 20) are made possible by altering the
matrix layout of the liquid crystal display panel. In either case, the only change is the layout. The display
characteristics and the number of liquid crystal display characters depend on the number of common
signals or on duty factor. Note that the display data RAM (DDRAM) addresses for 4 characters 2
lines and for 16 characters 1 line are the same as in Figure 19.
HD44780
COM1
COM8
SEG1
SEG40
COM9
COM16
5 8 dot, 16-character 1-line display
(1/5 bias, 1/16 duty cycle)
36
HD44780U
Power Supply for Liquid Crystal Display Drive
Various voltage levels must be applied to pins V1 to V5 of the HD44780U to obtain the liquid crystal
display drive waveforms. The voltages must be changed according to the duty factor (Table 10).
VLCD is the peak value for the liquid crystal display drive waveforms, and resistance dividing provides
voltages V1 to V5 (Figure 21).
Table 10
Duty Factor and Power Supply for Liquid Crystal Display Drive
Duty Factor
1/8, 1/11
1/16
Bias
Power Supply
1/4
1/5
V1
VCC1/4 VLCD
VCC1/5 VLCD
V2
VCC1/2 VLCD
VCC2/5 VLCD
V3
VCC1/2 VLCD
VCC3/5 VLCD
V4
VCC3/4 VLCD
VCC4/5 VLCD
V5
VCCVLCD
VCCVLCD
VCC (+5 V)
VCC (+5 V)
VCC
V1
VCC
R
V2
V3
V4
V5
V1
VLCD
V2
V3
V4
V5
VR
R
R
VLCD
R
R
VR
5 V
1/4 bias
(1/8, 1/11 duty cycle)
5 V
1/5 bias
(1/16, duty cycle)
37
HD44780U
Relationship between Oscillation Frequency and Liquid Crystal Display Frame
Frequency
The liquid crystal display frame frequencies of Figure 22 apply only when the oscillation frequency is 270
kHz (one clock pulse of 3.7 s).
1/8 duty cycle
COM1
VCC
400 clocks
1
11
V1
V2 (V3)
V4
V5
1 frame
1 frame = 3.7 s
400
Frame frequency =
8 = 11850 s = 11.9 ms
1
= 84.3 Hz
11.9 ms
400 clocks
1
V1
V2 (V3)
V4
V5
1 frame
1 frame = 3.7 s
400
Frame frequency =
11 = 16300 s = 16.3 ms
1
= 61.4 Hz
16.3 ms
200 clocks
1
16
V1
V2
V3
V4
V5
1 frame
1 frame = 3.7 s
200
Frame frequency =
16 = 11850 s = 11.9 ms
1
= 84.3 Hz
11.9 ms
38
HD44780U
Instruction and Display Correspondence
8-bit operation, 8-digit 1-line display with internal reset
Refer to Table 11 for an example of an 8-digit 1-line display in 8-bit operation. The HD44780U
functions must be set by the function set instruction prior to the display. Since the display data RAM
can store data for 80 characters, as explained before, the RAM can be used for displays such as for
advertising when combined with the display shift operation.
Since the display shift operation changes only the display position with DDRAM contents unchanged,
the first display data entered into DDRAM can be output when the return home operation is performed.
4-bit operation, 8-digit 1-line display with internal reset
The program must set all functions prior to the 4-bit operation (Table 12). When the power is turned on,
8-bit operation is automatically selected and the first write is performed as an 8-bit operation. Since
DB0 to DB3 are not connected, a rewrite is then required. However, since one operation is completed in
two accesses for 4-bit operation, a rewrite is needed to set the functions (see Table 12). Thus, DB4 to
DB7 of the function set instruction is written twice.
8-bit operation, 8-digit 2-line display
For a 2-line display, the cursor automatically moves from the first to the second line after the 40th digit
of the first line has been written. Thus, if there are only 8 characters in the first line, the DDRAM
address must be again set after the 8th character is completed. (See Table 13.) Note that the display shift
operation is performed for the first and second lines. In the example of Table 13, the display shift is
performed when the cursor is on the second line. However, if the shift operation is performed when the
cursor is on the first line, both the first and second lines move together. If the shift is repeated, the
display of the second line will not move to the first line. The same display will only shift within its own
line for the number of times the shift is repeated.
Note:
When using the internal reset, the electrical characteristics in the Power Supply Conditions Using
Internal Reset Circuit table must be satisfied. If not, the HD44780U must be initialized by
instructions. See the section, Initializing by Instruction.
39
HD44780U
Table 11
Step
No.
RS
Initialized. No display.
Function set
0
0
0
R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 Display
8
9
10
40
H_
Writes I.
HI_
Operation
HITACHI_
HITACHI_
ITACHI _
Writes I.
HD44780U
Table 11
8-Bit Operation, 8-Digit 1-Line Display Example with Internal Reset (cont)
Instruction
Step
No.
RS
R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 Display
11
12
13
14
15
16
17
18
19
TACHI M_
MICROKO_
MICROK_
O
MICROKO_
Writes O.
ICROCO_
Writes C over K.
The display moves to the left.
MICROCO_
MICROCO_
ICROCOM_
Writes M.
Return home
0
0
0
Writes M.
20
21
Operation
H_
ITACHI
41
HD44780U
Table 12
Step
No.
RS
Initialized. No display.
Function set
0
0
0
Function set
0
0
0
0
0
0
0
0
1
*
0
*
0
1
0
0
0
1
0
0
Note:
42
0
1
Display
Operation
H_
The control is the same as for 8-bit operation beyond step #6.
HD44780U
8-Bit Operation, 8-Digit 2-Line Display Example with Internal Reset
Table 13
Instruction
Step
No.
RS
Initialized. No display.
Function set
0
0
0
Operation
R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 Display
H_
HITACHI_
HITACHI
_
Writes I.
43
HD44780U
Table 13
8-Bit Operation, 8-Digit 2-Line Display Example with Internal Reset (cont)
Instruction
Step
No.
RS
R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 Display
10
11
12
13
44
HITACHI
M_
HITACHI
MICROCO_
HITACHI
MICROCO_
ITACHI
ICROCOM_
Writes O.
Return home
0
0
0
Writes M.
14
15
Operation
H_ ITACHI
MICROCOM
HD44780U
Initializing by Instruction
If the power supply conditions for correctly operating the internal reset circuit are not met, initialization by
instructions becomes necessary.
Refer to Figures 23 and 24 for the procedures on 8-bit and 4-bit initializations, respectively.
Power on
0
0
0
0
0
0
0
0
0
0
0
0
Display off
I/D
Display clear
Entry mode set
Initialization ends
45
HD44780U
Power on
0
0
0
0
0
N
0
1
0
F
0
0
1
*
0
0
0
*
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
1
0
I/D
0
S
Initialization ends
46
HD44780U
Absolute Maximum Ratings*
Item
Symbol
Value
Unit
Notes
VCCGND
0.3 to +7.0
VCCV5
0.3 to +13.0
1, 2
Input voltage
Vt
Operating temperature
Topr
30 to +75
Storage temperature
Tstg
55 to +125
Note:
If the LSI is used above these absolute maximum ratings, it may become permanently damaged.
Using the LSI within the following electrical characteristic limits is strongly recommended for
normal operation. If these electrical characteristic conditions are also exceeded, the LSI will
malfunction and cause poor reliability.
47
HD44780U
DC Characteristics (VCC = 2.7 to 4.5 V, Ta = 30 to +75C*3)
Item
Symbol
Min
Typ
Max
Unit
VIH1
0.7V CC
VCC
VIL1
0.3
0.55
VIH2
0.7V CC
VCC
15
VIL2
0.2V CC
15
0.75V CC
I OH = 0.1 mA
0.2V CC
I OL = 0.1 mA
0.8V CC
I OH = 0.04 mA
VOL2
0.2V CC
I OL = 0.04 mA
Driver on resistance
(COM)
RCOM
20
Id = 0.05 mA,
VLCD = 4 V
13
Driver on resistance
(SEG)
RSEG
30
Id = 0.05 mA,
VLCD = 4 V
13
I LI
VIN = 0 to VCC
I p
10
50
120
VCC = 3 V
I CC
150
300
Rf oscillation,
external clock
VCC = 3 V,
f OSC = 270 kHz
LCD voltage
VLCD1
3.0
11.0
VLCD2
3.0
11.0
Note:
48
VOL1
10, 14
HD44780U
AC Characteristics (VCC = 2.7 to 4.5 V, Ta = 30 to +75C*3)
Clock Characteristics
Item
Symbol Min
Typ
Max
Unit
f cp
125
250
350
kHz
Duty
45
50
55
t rcp
0.2
t fcp
0.2
190
270
350
kHz
Rf
Clock oscillation frequency f OSC
oscillation
Note:
Rf = 75 k,
VCC = 3 V
12
Symbol
Min
Typ
Max
Unit
Test Condition
t cycE
1000
ns
Figure 25
PWEH
450
t Er, t Ef
25
60
t AH
20
t DSW
195
tH
10
Item
Symbol
Min
Typ
Max
Unit
Test Condition
t cycE
1000
ns
Figure 26
PWEH
450
t Er, t Ef
25
60
t AH
20
t DDR
360
t DHR
Read Operation
49
HD44780U
Interface Timing Characteristics with External Driver
Item
Symbol
Min
Typ
Max
Unit
Test Condition
High level
t CWH
800
ns
Figure 27
Low level
t CWL
800
t CSU
500
t SU
300
t DH
300
M delay time
t DM
1000
1000
t ct
200
Symbol
Min
Typ
Max
Unit
Test Condition
t rCC
0.1
10
ms
Figure 28
t OFF
50
HD44780U
DC Characteristics (VCC = 4.5 to 5.5 V, Ta = 30 to +75C*3)
Item
Symbol
Min
Typ
Max
Unit
VIH1
2.2
VCC
VIL1
0.3
0.6
VIH2
VCC1.0
VCC
15
VIL2
1.0
15
2.4
I OH = 0.205 mA
0.4
I OL = 1.2 mA
0.9 VCC
I OH = 0.04 mA
VOL2
0.1 VCC
I OL = 0.04 mA
Driver on resistance
(COM)
RCOM
20
Id = 0.05 mA,
VLCD = 4 V
13
Driver on resistance
(SEG)
RSEG
30
Id = 0.05 mA,
VLCD = 4 V
13
I LI
VIN = 0 to VCC
I p
50
125
250
VCC = 5 V
I CC
350
600
Rf oscillation,
external clock
VCC = 5 V,
f OSC = 270 kHz
10, 14
LCD voltage
VLCD1
3.0
11.0
16
VLCD2
3.0
11.0
16
Note:
VOL1
Test Condition
Notes*
51
HD44780U
AC Characteristics (VCC = 4.5 to 5.5 V, Ta = 30 to +75C*3)
Clock Characteristics
Item
Symbol Min
Typ
Max
Unit
f cp
125
250
350
kHz
11
Duty
45
50
55
11
t rcp
0.2
11
t fcp
0.2
11
190
270
350
kHz
Rf
Clock oscillation frequency f OSC
oscillation
Note:
Rf = 91 k
VCC = 5.0 V
12
Symbol
Min
Typ
Max
Unit
Test Condition
t cycE
500
ns
Figure 25
PWEH
230
t Er, t Ef
20
40
t AH
10
t DSW
80
tH
10
Item
Symbol
Min
Typ
Max
Unit
Test Condition
t cycE
500
ns
Figure 26
PWEH
230
t Er, t Ef
20
40
t AH
10
t DDR
160
t DHR
Read Operation
52
HD44780U
Interface Timing Characteristics with External Driver
Item
Symbol
Min
Typ
Max
Unit
Test Condition
High level
t CWH
800
ns
Figure 27
Low level
t CWL
800
t CSU
500
t SU
300
t DH
300
M delay time
t DM
1000
1000
t ct
100
Symbol
Min
Typ
Max
Unit
Test Condition
t rCC
0.1
10
ms
Figure 28
t OFF
53
HD44780U
Electrical Characteristics Notes
1. All voltage values are referred to GND = 0 V.
VCC
B
V1
A = VCC V5
B = VCC V1
A 1.5 V
B 0.25 A
A
V5
Output pin
Pins: CL1, CL2, M, D
PMOS
VCC
PMOS
VCC
PMOS
PMOS
NMOS
NMOS
(pull up MOS)
NMOS
I/O Pin
Pins: DB0 DB7
(MOS with pull-up)
VCC
(pull-up MOS)
VCC
(input circuit)
PMOS
PMOS
Input enable
NMOS
VCC
NMOS
PMOS
Output enable
Data
NMOS
(output circuit)
(tristate)
54
HD44780U
6. Applies to input pins and I/O pins, excluding the OSC1 pin.
7. Applies to I/O pins.
8. Applies to output pins.
9. Current flowing through pullup MOSs, excluding output drive MOSs.
10. Input/output current is excluded. When input is at an intermediate level with CMOS, the excessive
current flows through the input circuit to the power supply. To avoid this from happening, the input
level must be fixed high or low.
11. Applies only to external clock operation.
Th
Oscillator
Tl
OSC1
Open
0.7 VCC
0.5 VCC
0.3 VCC
OSC2
t rcp
Duty =
Th
Th + Tl
t fcp
100%
12. Applies only to the internal oscillator operation using oscillation resistor Rf.
OSC1
Rf
OSC2
R f : 75 k 2% (when VCC = 3 V)
R f : 91 k 2% (when VCC = 5 V)
Since the oscillation frequency varies depending on the OSC1 and
OSC2 pin capacitance, the wiring length to these pins should be minimized.
VCC = 5 V
500
400
300
(270)
max.
200
typ.
min.
50
(91)100
R f (k )
150
f OSC (kHz)
f OSC (kHz)
400
100
VCC = 3 V
500
300
(270)
max.
200
100
typ.
50
(75)
100
min.
150
R f (k )
55
HD44780U
13. RCOM is the resistance between the power supply pins (VCC, V1, V4, V5) and each common signal pin
(COM1 to COM16).
RSEG is the resistance between the power supply pins (VCC, V2, V3, V5) and each segment signal pin
(SEG1 to SEG40).
14. The following graphs show the relationship between operation frequency and current consumption.
VCC = 3 V
1.8
1.6
1.6
1.4
1.4
1.2
1.2
1.0
max.
0.8
typ.
0.6
ICC (mA)
ICC (mA)
VCC = 5 V
1.8
1.0
0.8
0.6
0.4
0.4
0.2
0.2
0.0
0.0
0
100
200
300
400
500
max.
typ.
100
200
300
400
500
56
HD44780U
Load Circuits
Data Bus DB0 to DB7
VCC = 5 V
For VCC = 4.5 to 5.5 V
Test
point
90 pF
11 k
Test
point
IS2074 H
diodes
50 pF
57
HD44780U
Timing Characteristics
VIH1
VIL1
RS
VIH1
VIL1
tAS
R/W
tAH
VIL1
VIL1
tAH
PWEH
tEf
VIH1
VIL1
VIH1
VIL1
tEr
tDSW
tH
VIH1
VIL1
DB0 to DB7
VIL1
VIH1
VIL1
Valid data
tcycE
RS
VIH1
VIL1
tAS
tAH
VIH1
R/W
VIH1
tAH
PWEH
tEf
VIH1
VIL1
VIH1
VIL1
VIL1
tEr
tDDR
DB0 to DB7
tDHR
VOH1
VOL1 *
Valid data
tcycE
Note:
58
VOH1
* VOL1
HD44780U
tct
VOH2
CL1
VOH2
tCWH
tCSU
CL2
VOL2
tCWH
VOH2
VOL2
tCSU
tCWL
tct
VOH2
VOL2
D
tDH
tSU
VOH2
t DM
VCC
0.2 V
0.2 V
0.2 V
tOFF*1
trcc
0.1 ms
trcc 10 ms
tOFF
1 ms
Notes: 1. tOFF compensates for the power oscillation period caused by momentary power supply
oscillations.
2. Specified at 4.5 V for 5-V operation, and at 2.7 V for 3-V operation.
3. For if 4.5 V is not reached during 5-V operation, the internal reset circuit will not operate
normally.
In this case, the LSI must be initialized by software. (Refer to the Initializing by
Instruction section.)
59
HD44780U
Cautions
1. Hitachi neither warrants nor grants licenses of any rights of Hitachis or any third partys patent,
copyright, trademark, or other intellectual property rights for information contained in this document.
Hitachi bears no responsibility for problems that may arise with third partys rights, including
intellectual property rights, in connection with use of the information contained in this document.
2. Products and product specifications may be subject to change without notice. Confirm that you have
received the latest product standards or specifications before final design, purchase or use.
3. Hitachi makes every attempt to ensure that its products are of high quality and reliability. However,
contact Hitachis sales office before using the product in an application that demands especially high
quality and reliability or where its failure or malfunction may directly threaten human life or cause risk
of bodily injury, such as aerospace, aeronautics, nuclear power, combustion control, transportation,
traffic, safety equipment or medical equipment for life support.
4. Design your application so that the product is used within the ranges guaranteed by Hitachi particularly
for maximum rating, operating supply voltage range, heat radiation characteristics, installation
conditions and other characteristics. Hitachi bears no responsibility for failure or damage when used
beyond the guaranteed ranges. Even within the guaranteed ranges, consider normally foreseeable
failure rates or failure modes in semiconductor devices and employ systemic measures such as failsafes, so that the equipment incorporating Hitachi product does not cause bodily injury, fire or other
consequential damage due to operation of the Hitachi product.
5. This product is not designed to be radiation resistant.
6. No one is permitted to reproduce or duplicate, in any form, the whole or part of this document without
written approval from Hitachi.
7. Contact Hitachis sales office for any questions regarding this document or Hitachi semiconductor
products.
Hitachi, Ltd.
URL
NorthAmerica
: http:semiconductor.hitachi.com/
Europe
: http://www.hitachi-eu.com/hel/ecg
Asia (Singapore) : http://www.has.hitachi.com.sg/grp3/sicd/index.htm
Asia (Taiwan)
: http://www.hitachi.com.tw/E/Product/SICD_Frame.htm
Asia (HongKong) : http://www.hitachi.com.hk/eng/bo/grp3/index.htm
Japan
: http://www.hitachi.co.jp/Sicd/indx.htm
For further information write to:
Hitachi Semiconductor
(America) Inc.
179 East Tasman Drive,
San Jose,CA 95134
Tel: <1> (408) 433-1990
Fax: <1>(408) 433-0223
60