8051 ETK USER MANUAL MICROCONTROLLER TRAINING AND DEVELOPMENT KIT
8051 ETK USER MANUAL
MICROCONTROLLER TRAINING AND DEVELOPMENT KIT
2
CONTENTS
1. THE 8051ETK-01 TRAINING AND DEVELOPMENT KIT………….3 2. PACKAGE CONTENTS………………………………………………..4 3. FEATURES AND SPECIFICATIONS…………………………………5 4. SAFETY GUIDELINES…………………………………………………6 5. 8051ETK-01 BOARD LAYOUT………………………………………..7 6. HARDWARE DETAILS OF 8051ETK-01……………………………..8
a. POWER MODULE………………………………………………..9 b. RESET CIRCUIT…………………………………………………10 c. DISPLAY MODULE……………………………………………...11 (i) LED ARRAY………………………………………………...11 (ii) 7-SEGMENT DISPLAY……………………………………...12 (iii) LCD DISPLAY………………………………………………...13 d. A/ D CONVERSION MODULE………………………………....15 (i) SENSOR AND ANALOGUE INPUT CIRCUIT……….....15 (ii) ADCO8O4…………………………………………………...17 e. OUTPUT CONTROL DEVICES……………………………….19 (i) TRIAC (AC SWITCH)……………………………………...19 (ii) DARLINGTON TRANSISTOR (DC SWITCH)…………..20 (iii) RELAY (AC / DC SWITCH)………………………………..20 f. ANALOGUE COMPARATOR………………………………….21 g. EXTERNAL INTERRUPT AND EVENT SWITCHES……….21 h. SERIAL COMMUNICATION…………………………………...22 j. BUZZER………………………………………………………….23
7. 8051 PROGRAMMER………………………………………………...25 8. SOFTWARE…………………………………………………………...26
a. KEIL COMPILER…………………………………………………..26 b. EZ-DOWNLOADER……………………………………………….26
3
8051ETK-01 TRAINING AND DEVELOPMENT KIT
The Intel MCS-51 series of microcontrollers is widely recognized as a standard for incorporation into wide range of products from automatic washing ma-chines, vending machines, digital weighing machines, welding machines, mi-crowave ovens and robot control cards to programmable logic controllers (PLCs). Their simplicity makes them ideal for situations where it is necessary to quickly set up a control system. The 8051 microcontroller is versatile and easily programmable. It finds extensive applications in automation because of its sim-ple architecture and built in I/O capabilities. The use of this controller consid-erably reduces the chip count.
8051 Evaluation and Training Kit (8051ETK-01) is based on AT89C51 and is designed specifically for studying the functionality of MCS-51 microcontrollers through experimentation. It is a dynamic learning platform, specifically de-signed keeping in view the requirements of both small scale and large scale projects. 8051ETK-01 is a multi-purpose development kit and is used for imple-menting prototypes for evaluation. The 8051ETK-01 is aimed to train a wide range of users from beginners to technicians, students, hardware designers and experienced engineers. Using 8051ETK-01 just about anyone can easily implement a prototype for evaluation.
8051ETK-01 is also designed with features which make it ideal as a first step educational tool, as well as an advanced and powerful development platform. The manual contains a start-up guide and a walk-through of the major modules and components of the kit and their functionalities. It also contains comprehen-sive block diagrams and figures of the kit, safety precautions for using the kit and maximum and minimum power ratings. Sample codes, tutorials, lectures and datasheets of all the components used are given in the 8051ETK-01 CD. The 8051ETK-01 kit also includes 8051 Programmer for burning Hex file into the microcontroller. The EZ-Downloader is the software of programmer which is also available on the CD supplied with the kit.
It is hoped that the user will have as much pleasure using the kit as we had designing it!
“The Design Team”
4
PACKAGE CONTENTS
The complete kit contains the following items
• 8051ETK-01 Training and Development Board. • 8051 Programmer. • User Manual. • Serial Cable. • AC Adapter. • HD44780 20 × 2 Line LCD. • Data Cable for LCD • 8051ETK-01 CD
• Keil µVision2 Software - Full Version (4K). • E-Z Downloader Software. • Sample Codes in C and Assembly language. • Lectures on 8051 Microcontroller. • Computer Based Tutorials for use of Keil µVision2 Software. • Datasheets of ICs used.
5
FEATURES AND SPECIFICATIONS
The salient features of the 8051ETK-01 board are as under:-
• On Board Regulated Power Supply
• 8-bit A/D Module for Real Time Data Acquisition
• RS232 Serial Interface
• Expandable (can be interfaced with other devices and hardware) and
flexible
• Output Devices includes:
ο 8 x LEDs
ο 4 x Seven Segment Displays
ο 2 x 20 Line LCD
ο 3 x status LEDs
ο Power Supply
ο Condition monitoring
ο Relay status
ο 1 x Triac (for AC load)
ο 1 x Darlington ( for DC load)
ο 1x DPDT 12 V DC Relay
ο Buzzer
ο ZIF Socket for Microcontroller
ο 5 x Momentary Switches
ο Prototype Area ( Plated Through Hole on 0.1” x 0.1” Grid )
All ICs mounted on bases
6
SAFETY GUIDELINES
This section contains notices intended to ensure personal safety, as well as to
protect the products and connected equipment against damage.
• Always use the recommended power supply or power ratings.
• Do not remove any component while the power is switched on.
• Do not remove the microcontroller from the programmer during the burn-
ing process. Doing so may end up in damaging the controller perma-
nently.
• While mounting the microcontroller on the ZIF sockets (of both Develop-
ment board and Programmer), keep in mind the correct direction of the
microcontroller.
• While testing any of the output displays (LED array, 7-segment or LCD),
select the jumpers according to the guidelines (given in corresponding
section) for correct functionality.
• Avoid continuous non-multiplexed glow of LEDs or 7-Segment Display
due to power rating constraints of on board regulators etc
• While plugging the LCD cable, keep in mind the correct direction of the
cable.
• Do not adjust the pot knobs without going through the details of their
working. Doing so may disturb the resolution of ADC.
• Do not touch the heat sinks, they may singe
7
8051ETK-01 BOARD LAYOUT
8
HARDWARE DETAILS OF 8051ETK-01
In 8051ETK-01 board, all the four ports of the microcontroller are fully
used and yet are flexible for external / specific use by the user. For this
purpose, P0, P1, and P2 have been provided with 2x4 headers for external
use. The headers are identified by Port 0, Port 1 and Port 2 on the board.
The layout of the headers is shown in the FIG 1.
As P0 of the microcontroller needs external pull up resistors, a resistor
pack RP2 of (8x4.7K) is connected with Port 0.
P2 on the 8051ETK-01 board is so connected that its output/ control sig-
nals can be either activated or deactivated. For this purpose, Port 2 of the
microcontroller is connected for controlling the on-board devices through
an 8 x DIP switch SW2 as shown in the schematic of FIG 2. The devices
can be isolated from the Port if the switches are at off position.
9
HARDWARE DETAILS OF 8051ETK-01
Hardware of the 8051ETK-01 board has been divided into various modules
which are explained as follow.
a. POWER MODULE
The kit is supplied with an AC Adapter of the following electrical ratings and is the main source of Power Supply:
Input Voltage : 220 VAC Output Voltage : 16 VDC Output Current : 800 mA
The output of the adapter is connected to the AC / DC IN connector on
the board, which has the capability to get AC as well as DC input volt-
age. In case of AC input, the AC voltage is converted to DC through a
bridge rectifier “B" and filter circuit comprising of capacitors C2, C3 and
C4. If adapter is not available, DC input (16 - 18V) can also be applied to
the DC IN connector on the board through a bench-top power supply.
The voltage is then passed through on-board voltage regulators 7812
and 7805 for 12V and 5V DC respectively. These voltages are used for
proper functioning of the board.
PWR LED ( FIG 3b )will lit if board supply is proper. The schematic of
power supply circuit is shown in FIG-4.
Power Enable / disable Jumpers (12V, 5V, GND), shown in FIG 3a are
provided as a safety precaution, fault tracking and for external power
supply (if needed). When starting up 8051ETK-01 for the first time re-
move all the three jumpers and check the voltages between 12V & GND
jumper and 5V & GND jumper respectively, using a multimeter. Now to
start-up 8051ETK-01 insert all the three jumpers again and switch ON
10
HARDWARE DETAILS OF 8051ETK-01
power supply. Removing a single jumper will disable 8051ETK-01 as current
will not be delivered to the board.
If for a particular project, user feels that on-board regulator’s ratings are in-
sufficient then these regulators can be bypassed and external supply of suf-
ficient rating can be connected to these jumpers as shown in FIG 3 (a).
b. RESET CIRCUIT The reset input is the RST pin, which is input to a Schmitt trigger. The re-
set is accomplished by holding the RST pin high for at least two machine
cycles, while the oscillator is running.
12V
■ ■
FIG 3: (a) Power Supply Jumpers
5V (Vcc)
■ ■
GND
■ ■
R1
V cc
PWR LED
(b) Power Indicator LED
FIG 1: Power Module
12V
1 3
2
V GND IN VOUT
7805
+
1 3 2
V VOUT GND IN 7812
1 2
AC/DC
VCC IN DC IN 12V IN
AC
AC
+
AC2
AC
- -
B + +
1 2 DC IN
S
D1 1N4004
1 2
1 2 5V
12V
VCC 1 2 GND C4
GND
FIG 4: Power Supply Circuit
C3 C2
-
11
HARDWARE DETAILS OF 8051ETK-01
An automatic reset can be obtained when Vcc is turned on by connecting
the RST pin to VCC through a 10µF capacitor (C14) and to ground through
an 8.2 k resistor (R7) providing the Vcc rise time does not exceed 10 ms.
For manually resetting the controller in 8051ETK-01 board, the yellow RST
push button is available on the board. The Power ON Reset and Manual
Reset circuits are shown in FIG 5.
c. DISPLAY MODULE
In 8051ETK-01 board, Port 0 of the microcontroller is connected to three
different type of displays i.e. LED Array, 7-Segment Display (SSD) and
Liquid Crystal Display (LCD). Each one can be enabled through respective
jumpers on the board.
(i). LED ARRAY
8 x LEDs named P0.0, P0.1, P0.2, P0.3, P0.4, P0.5, P0.6, P0.7 are
connected as active high for controlling from Port 0 of the microcon-
troller through ULN2803 IC. ULN2803 is an 8-bit, 50V, 500mA, TTL-
C14
R7
VCC
RST
R8
VCC
RESET
FIG 5: Reset Circuit
9
mC
12
HARDWARE DETAILS OF 8051ETK-01
input, NPN Darlington driver. The IC ULN2803 is used for driving high current LEDs. In order to select LEDs out of other display devices i.e. SSD and LCD, the jumper < LED 7-SEG > should be fixed on left as
(ii). 7-SEGMENT DISPLAY
4 Digit, Common Anode SSD is available on the board. These digits are
named DIG1 (MSD), DIG2, DIG3 & DIG4 (LSD). The data bus (7-
Segments) of the display is active high and is connected to Port 0 of the
microcontroller through ULN2803 as shown in the FIG 7 and FIG 8.
■ ■
< LED 7-SEG >
VCCP0.0P0.1P0.2P0.3P0.4P0.5P0.6P0.7
dp g f e d c b a
1 2 3
FIG 6: LED Array
IN1
COM10 OUT 18U5A
IN2
COM10 OUT 17U5B
IN3
COM10 OUT 16U5C
IN4
COM10 OUT 15U5D
IN5
COM10 OUT 14U5E
IN6
COM10 OUT 13U5F
IN7
COM10 OUT 12U5G
IN8
COM10 OUT 11U5H
P1.0P1.1P1.2P1.3P1.4P1.5P1.6P1.7RESETP3.0/RXDP3.1/TXDP3.2/INT0P3.3/INT1P3.4/T0P3.5/T1P3.6/WRP3.7/RDXTAL1XTAL2GND
Vcc 40
P0.0 39
P0.1 38
P0.2 37
P0.3 36
P0.4 35
P0.5 34
P0.6 33
P0.7 32
EA 31
ALE 30
PSEN 29
P2.7 28
P2.6 27
P2.5 26
P2.4 25
P2.3 24
P2.2 23
P2.1 22
P2.0 21
U4
VCC
abcdefgdpR21
R20R19R18R17R16R15R14
FIG 7: Port 0 Connections with ULN2803
13
HARDWARE DETAILS OF 8051ETK-01
4 Digits, i.e. DIG1, DIG2, DIG3 and DIG4 of SSD are active low and are
connected to P2.4, P2.5, P2.6 and P2.7 respectively through transistor
switches Q1, Q2, Q3 & Q4 respectively. In order to select the SSD the
jumper < LED 7-SEG > should be fixed as
Table 1
■ ■
a b f
c g
d e
VCC a b c d e f g dp dp
DIG4
a b f
c g
d e
VCC a b c d e f g dp dp
DIG3
a b f c
g d e
VCC a b c d e f g dp dp
DIG2
R31
VCC
a b c d e f g dp
DS1/RS DS3/WR DS2/EN DS4 Q1 Q2 Q3 Q4
1 2 3
R32 R33 R34
a b f
c g
d e
VCC a b c d e f g dp dp
DIG1
< LEDs 7-Seg >
a b c d e f g dp
a b c d e f g dp
a b c d e f g dp
FIG 8: Seven Segment Displays with transistor switches
7-SEGs of SSD Port Pins Digits Port Pins
a P0.0 DIG1 P2.4 b P0.1 DIG2 P2.5 c P0.2 DIG3 P2.6 d P0.3 DIG4 P2.7 e P0.4 f P0.5 g P0.6 dp P0.7
14
HARDWARE DETAILS OF 8051ETK-01
(iii). LCD DISPLAY.
Provision has also been kept to attach a 20 x 2 line or 16 x 2 line LCD
on the board through 8x2 header connector named LCD Port with rib-
bon / data cable, provided with the kit. The data bus (D0 ~ D7) of the
LCD displays is connected to Port 0 of the microcontroller as given in
Table-2. The control signals of LCD i.e. RS, EN & WR of LCD are con-
nected to P2.7, P2.6 & P2.5 pins respectively. In order to enable the
LCD, the jumpers LCD VCC > and LCD GND > should be fixed as
Table 2
■ ■ ■
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
LCD Port
D0 D1 D3 D5 D7
D2 D4 D6
VCC
DS3/WR DS1/RS DS2/EN
1 2 3 LCD VCC >
1 2 3 LCD GND >
FIG 9: LCD Port with Enable / Disable jumpers
LCD DATA BUS PORT PINS
LCD CON-TROL SIG-
NALS PORT PINS
D0 P0.0 RS P2.7 D1 P0.1 EN P2.6 D2 P0.2 WR P2.5 D3 P0.3 D4 P0.4 D5 P0.5 D6 P0.6 D7 P0.7
15
HARDWARE DETAILS OF 8051ETK-01 d. ADC MODULE
8051ETK-01 has an 8-bit A/D Module for real time data acquisition. The
core of this module is 8-bit A/D Chip ADC0804 (U3) on the board.
The other major components of the module are LM35 temperature sensor
(for analogue input voltage) and LM324 op-amp (for current and voltage
amplification).
(i). SENSOR AND ANALOGUE INPUT CIRCUIT
Analog IN is a 3-pin terminal on the board and is readily compatible for
analogue input voltage through LM35 temperature sensor. The LM35
series are precision integrated-circuit temperature sensors, whose out-
put voltage is linearly proportional to the Celsius (Centigrade) tempera-
ture. The output of the temperature sensor is linear with slope 10mV/
ºC.
The output of LM35 is to be compatible with input of the ADC. For this
purpose the output of LM35 is required to be amplified. This amplifica-
tion is done through LM324 (U2). LM 324 is a quad op-amp having four
independent, high gain op-amps. Connection diagram is shown. The
voltage from LM35 is amplified 5 times after a buffer (section A of the
LM324), gain of the amplifier (section B of the LM324) can be adjusted
FIG 10: LM35 Temperature Sensor
16
HARDWARE DETAILS OF 8051ETK-01
through the adjustment pot “Gain” which amplifies the maximum output
of LM35 up to 5V which corresponds to 100ºC. It means that total gain of
the amplifier required will be equal to 5 because the output of LM35 is
1V at 100 ºC. Since the amplifier is wired in non-inverting configuration
so the gain is expressed as:
If Rin = 10 k , then for Gain of 5, Rf must be equal to 40k. In 8051ETK-01, Rin = R5 = 10k and a 50k pot (Gain) is adjusted to have 40k feedback resistance (Rf )
415
15
1
=−=
+=
+==
in
f
in
f
in
f
in
o
RR
RR
RR
VVGain
Analog IN
2 3 1
4 11
U2A
5 6 7
4 11
U2
RR
R
Gain
12V
12V
ADC IN
Vi1 2 3
VCC
R+ C
+ _
FIG 11: Analogue input and Amplification circuit
17
HARDWARE DETAILS OF 8051ETK-01
(ii) ADC0804 The ADC0804 is an 8-bit, CMOS, successive approximation analog to digital converter, which has a 0-5V analogue input voltage range. It can be easily interfaced to most microprocessors and microcontrollers. It gives an 8-bit digital output with conversion time <100micro-seconds. The 8-bit Digital output from ADC is connected to the Port 0 of the micro-controller. The control signals of ADC i.e. WR (Start Conversion), INTR (End of Conversion) and RD (Output Enable) are connected to P3.7, P3.6 and to GND respectively. The functions of these control signals are explained below.
1. WR (Start Conversion): This control signal is input to the ADC from
the microcontroller. ADC starts conversion when it receives a low
pulse on this pin.
2. RD (Output Enable): This is also an input signal to the ADC. When
an active low pulse is received on it, the converted digital data
stored in the internal buffers of the ADC is latched on the output
pins (DB0-DB7) of the ADC. RD pin has been hardwired to ground
on the 8051ETK-01 development board.
3. NTR (End of Conversion): This is an output signal from the ADC.
At the end of conversion of a particular analog voltage sample to
the digital, the INTR pin makes a high-to-low transition.
Reference voltage Adjustment The resolution of ADC depends on the reference voltage VREF of the
ADC. If VREF = 5.12 V, then Resolution = 5.12 / 28 = 5.12 / 512 = 20mV.
For maximum application flexibility, these A/Ds have been designed to ac-
commodate a 5.12V, 2.56V or an adjusted voltage reference. Notice that
18
HARDWARE DETAILS OF 8051ETK-01
the reference voltage for the IC is either 1/2 of the voltage which is ap-
plied to the Vcc supply pin, or is equal to the voltage which is externally
forced at the VREF/2 pin. This allows for a pseudo-ratio metric voltage
reference using, for the V+ supply, a 5V reference voltage. Alternatively,
a voltage less than 2.56V can be applied to the VREF/2 input. The inter-
nal gain to the VREF/2 input is 2 to allow this factor of 2reduction in the
reference voltage.
< ADC ENB >
XTAL
C15
C16
VccR
EF20
Vin(-)7 lsbDB0 18DB1 17
Vin(+)6 DB2 16DB3 15DB4 14
A-GND8 DB5 13DB6 12
msbDB7 11Vref/29
INTR 5
CLK-R19 CS 1RD 2
CLK-IN4 WR 3
U3
R6
C6
VCC
ADC IN
RESETRXDTXD
P1.01P1.12P1.23P1.34P1.45P1.56P1.67P1.78RESET9P3.0/RXD10P3.1/TXD11P3.2/ INT012P3.3/ INT113P3.4/T014P3.5/T115P3.6/WR16P3.7/RD17XTAL118XTAL219GND20
Vcc 40P0.0 39P0.1 38P0.2 37P0.3 36P0.4 35P0.5 34P0.6 33P0.7 32
EA 31ALE 30
PSEN 29P2.7 28P2.6 27P2.5 26P2.4 25P2.3 24P2.2 23P2.1 22P2.0 21
U4
INT0INT1T0T1
12345678Port 1
1 2 3
<1.28 2.56>
1 2 3
2.56V1.28V
VREF
FIG 12: ADC0804 interface with microcontroller
C8
R1
Z1
1.28V C8
R1
Z2
2.56V 5.12V
R1
Z3
VREF 12V VCC VCC 1.28V 2.56V
FIG 13: VREF VREF / 2 adjustments
19
HARDWARE DETAILS OF 8051ETK-01
e. OUTPUT CONTROL DEVICES
These are three output control devices connected to the port 2 of the mi-
crocontroller. This will give experience of controlling / activating DC, AC
and Ac / Dc loads. The control devices are Triac, Darlington and Relay.
The connected load must not exceed the voltage/current rating of the de-
vices. The schematics, of these control devices and its brief description is
given in the succeeding paragraph
(i). TRIAC (AC SWITCH)
FIG 14: LCD Port with Enable / Disable jumpers
4N25
MOC3041
HOT TRIG
DAR
EXT PWR
R25 P2.1
P2.0
VCC
P2.0
4N25 Q5
P2.2 R24
12V
P2.
P2.1
Triac
TRIG
R2HOT PHASE
LOAD
1 2 3
AC Load
FIG 15: Triac Connections with optocoupler and load connector
20
HARDWARE DETAILS OF 8051ETK-01
(ii). Darlington Transistor (Dc switch) (iii) Relay (AC/DC Switch)
DAR R2
1 2 3
DC Load Darlington
EXT
R2
FIG 16: Darlington Connections with optocoupler and load connector
R22
Re-lay
1 2 3
Relay A
1 2 3
Relay B
D2
Q5
R23
12V
Q5
FIG 17: Relay Connections with optocoupler and load connector
21
HARDWARE DETAILS OF 8051ETK-01
f. Analogue Comparator
One of the four op-amps available in LM324 IC is used as analogue com-
parator in 8051ETK-01 board.
The two pin jumper Comparator above the RST switch can be used for
analogue inputs to the comparator. The right pin is negative while the left
pin is positive input terminal as shown. The output of the comparator can
be read through P2.3 with appropriate jumper settings. When the jumper
< Copm LED> is set at left, the port will be connected to the comparator
output whose status will be readable through software.
When the jumper < Copm LED> is set at right, the port will be con-
nected to the red status LED P2.3 as per schematic 13©
g. External Interrupts and Event Switches
External interrupt and even counter features of the microcontroller can
be simulated through push button INT0, INT1, T0, and T1 on the
8051ETK-01 board.
9 10 8
4 11
U2C LM324
COMP (P2.3)
1 2
Comparator 12V
Z4
R26
VCC
LED
P2.3P2.3
< Comp LED >
1 2 3
LED COMP
FIG 18: (a) Analogue Comparator (b) Selection jumper (c) Status LED
22
HARDWARE DETAILS OF 8051ETK-01
Pressing these buttons (while external interrupt/event enabled in the software) causes an interrupt (or counts an event) by providing a low pulse on the respective pin. The schematic is show. The two pin jumpers (Ext INT0, Ext INT1, Ext Event 0, Ext Event 1) provided with each button can be used for taking these interrupts/events form actual system / running project.
h. SERIAL COMMUNICATION MODULE
89c51 has a full duplex serial port. It is also a received buffer, meaning it
can commence reception of a second byte before a previously received
byte has been read from a register. The serial port receive and transmit
registers are both accessed at special function register SBUF.
Writing to SBUF load the transmit registers, and the reading SBUF ac-
cesses a physically separate receive register.
As 89c51 microcontroller operates at TTL level (0-5V) but RS-232 stan-
dard in PCs is not TTL compatible. Its logic levels are -3 ~ -25 V for logic
1 and +3 ~ +25 V for logic 0. The data rate is not too high and as the
Ext INT0
1 2 1 2 Ext INT1
1 2
Ext Event0
1 2 Ext Event1
T1 T0 INT1 INT0 INT0
INT1 T0
T1
RP1
VCC
FIG 19: (a) Push Buttons (b) Jumpers for External connections
23
HARDWARE DETAILS OF 8051ETK-01
the cable length increases, the capacity and DC loading effect reduce the
noise margin to an unacceptable level. To overcome this short coming
and to communicate with non-TTL level (pc serial port) a voltage level in-
terpreter is needed. This interpretation is done through standard trans-
ceiver IC’s like MAX232.
The MAX232 (transceiver) accepts TTL level inputs and converts these
two RS 232 output voltage level and also performs the opposite conver-
sion.
On board RS 232 based serial interface has been provided so that serial
interfacing with PC is established for communication between the board
and PC. Pins P3.0 (TXD) are used for this propose and schematic of this
circuit is shown in Fig.20.
j. BUZZER
In 8051ETK-01 board, BUZZER is connected to P3.5 of the microcontrol-
ler for giving alarms and generating tones of different frequencies de-
pending on the application. . It is connected in active low configuration
1 6 2 7 3 8 4 9 5
TXD RXD
1 8 3 4 5
6
7
2
10 9
15
16
U1
C1
C1
C1
C1
RS232
VCC
FIG 20: DB9 Connector and MAX232 IC
24
HARDWARE DETAILS OF 8051ETK-01
i.e. it sounds by writing “0 “to the port pin in software or by pressing push button T1 which results in completing the circuit by connecting the negative terminal of the buzzer to Ground. The schematic of the buzzer circuit on 8051ETK-01 board is shown in Fig-21 .
+
-
R10
T1
BUZZER
VCC
FIG 21: Buzzer Interface
25
8051ETK-01 PROGRAMMER
The 8051ETK-01 Programmer included in the Kit is used to burn hex files
into the microcontroller. It has the same ZIF socket as the 8051ETK-01
Development Board and care must be taken to insert the controller in the
right direction into the ZIF socket. The programmer is supplied with
8051ETK-01 Downloader software and the AC adapter. The AC adapter
provided is used to power up the Programmer. An LED on the programmer
board blinks when the programmer is powered up to indicate it is active.
The same LED glows blue and red alternately with greater intensity while a
hex file is being burnt into the controller. At the end of the programming the
LED resumes its blinking status.
AT 89C51
A
AT 89C51
AT 89C51
FIG 22: (a) Master Controller Inserted, showing the Direction of Target Controller
(b) Target Controller inserted in the right Direction in the ZIF socket
26
SOFTWARE
a) Keil Compiler
Keil µVision2 is an Integrated Development Environment specifically
designed to make it easier to get started with application development.
It is a GUI platform designed for writing, compiling and simulating MCS-
51 based microcontroller applications. Codes can either be written in C
language or assembly language. The software includes debugging
modules which help the user test applications. Users can simulate
UART, I/O ports, interrupts and timers etc. The 8051ETK-01 CD con-
tains Keil µVision2 software and computer based tutorials.
b. EZ-Downloader (EZDL V4.1)
EZ-Downloader software burns the generated hex file into the microcontrol-ler. It has the following functionalities: 1.Reads hex file
2.Erases the previous hex code from the microcontroller
3.Writes the hex file into the target microcontroller
4.Verifies the signature bytes on the microcontroller
5.To Lock & Fast Verify, Check manually the Lock & Fast Verify options
shown in the window
FIG 23: Snapshot of EZ-Downloader software