Professional Documents
Culture Documents
EMBEDDED SYSTEM?
It is a microcontroller or microprocessor based system
to perform a dedicated task.
It
may be a subsystem - closely integrated with the
main(large) system – Car ignition control
Domestic appliances
Mobile phone units
Data switches
Satellites
Networking
Software development
System integration
Test strategies
HOW ARE EMBEDDED MICRO-CONTROLLER SYSTEMS
DIFFERENT?
External-Memory Microcontroller
Microprocessor
Operating System?
• Embedded Microcontroller
The
8051 is the original member of the Intel
MCS-51 family of Microcontrollers.
There are several varieties that differ slightly in
the available features.
MCS-51 VARIANTS
Feature 8051 8052 8751 8752 8031 8032
EPROM
On-Chip ROM 4K 8K 4k 8k 0K 0K
RAM (Bytes) 128 256 128 256 128 256
Timers 2 3 2 3 2 3
I/O Ports 4 4 4 4 2 2
Serial Port 1 1 1 1 1 1
Interrupt Sources 6 8 6 8 6 8
The 8031 requires external instruction memory.
It can be as large as 64K Bytes.
You lose 2 ports for interfacing to the external memory.
You can replace these by interfacing the chip to an I/O port
controller like the 8255 (Programmable Peripheral Interface).
MANUFACTURERS OF MCS-51 CLONES
Dallas Semiconductor
Uses NV-RAM. Programmable in-system.
As large as 32K of instruction memory.
Philips Corporation.
Large selection of 8051 based
microcontrollers.
Include features like A/D and D/A on chip.
EA / VPP
External Address
Program Voltage for EPROM based
versions of the 8051.
XTAL1 and XTAL2
Connections for clock crystal.
PSEN
“Program Store Enable”
Read signal for external program
memory
8051 MEMORY
MEMORY ARCHITECTURE
Two types of Computer Architecture: Von Neumann
Architecture and Harvard Architecture.
Cycle Time.
How soon after the previous access can the memory be
accessed again.
MEMORY – RAM
Allows both read and write operations.
Both operations are performed electrically.
Volatile.
Used for temporary storage only.
If the power is disconnected, the contents become
invalid.
Can be made non-volatile by using a battery for
backup power.
RAM TYPES
Dynamic RAM
Magnifying Glass(Lens)
Multimeter
Digital CRO
Logic Analyzer
Function Generator
HARDWARE TESTING TOOLS
Magnifying Glass(lens)
It is a visual inspection
tool.
Surface of target board can
be examined for dry
soldering, improper
soldering, track damage
etc..
Magnifying station may
incorporate multiple lens.
Main lens acts as visual
inspection tool.
Other small lens is used for
magnifying small area of
the board for thorough
inspection.
HARDWARE TESTING TOOLS
Multimeter
Mutimeter is used for
measuring various
electrical quantities.
Primary debugging tool for
physical contact based
hardware debugging.
Mainly used for checking
circuit continuity, signal
value, polarity, measuring
supply voltage.
Both analog and digital
versions are available.
Digital versions have
better readability and
accuracy.
HARDWARE TESTING TOOLS
Oscilloscope
CRO is used for waveform
capturing and analysis,
measurement of signal
strength etc.
SRG-2009
SOFTWARE DEVELOPMENT CYCLE IN KEIL
1) Create a project, select the target chip from the device
database, and configure the tool settings.
SRG-2009
ADD SOURCE FILE TO THE PROJECT
Once you have created your source file you can add this file to
your project.
For example, you can select the file group in the Project
Workspace – Files page and click with the right mouse key to
open a local menu. The option Add Files opens the standard
files dialog. Select the file MAIN.C you have just created.
SRG-2009
SET TOOL OPTIONS FOR TARGET
µVision lets you set options for your target hardware. The
dialog Options for Target opens via the toolbar icon or
via the Project - Options for Target menu item. In the
Target tab you specify all relevant parameters of your
target hardware and the on-chip components of the
device you have selected.
SRG-2009
SET TOOL OPTIONS FOR TARGET
The following table describes the options of the Target
dialog:
BUILD PROJECT AND CREATE A HEX FILE
You may translate all source files and line the application with a
click on the Build Target toolbar icon. When you build an
application with syntax errors, µVision will display errors and
warning messages in the Output Window – Build page.
A double click on a message line opens the source file on the
correct location in a µVision editor window.
BUILD PROJECT AND CREATE A HEX FILE
Once you have successfully generated your application you can start
debugging using the µVision Debugger.
After you have tested your application, it might be required to create an
Intel HEX file and to download the application software into the physical
device using a Flash programming utility.
µVision creates HEX files with each build process when Create HEX file
under Options for Target – Output is enabled.
SRG-2009
OUTPUT FILES
The Cx51 Compiler generates a number of output files
during compilation.