Escolar Documentos
Profissional Documentos
Cultura Documentos
Based Systems
P R I N C I P L E S A N D A P P L I C AT I O N S O F M I C R O C O N T R O L L E R S
LECTURE #1
BY
SANIRA LASANTHA
ICBT KANDY CAMPUS
ACKNOWLEDGEMENT
Aims
Understanding of the applications of microcontroller based systems
Developing skills required to design, write and test software and
interface such systems.
Learning Outcomes
1. Analyse a system's requirements specification and select
appropriate computer systems and interfaces for subsequent
implementation.
2. Demonstrate a structured, modular, top-down approach to
software development in a hardware oriented environment.
3. Design, implement and test systems, written in a high level
programming language such as 'C' using appropriate
programmable interface devices from an initial specification
through to validation.
Learning Outcomes
1. Analyse a system's requirements specification and select
appropriate computer systems and interfaces for subsequent
implementation.
2. Demonstrate a structured, modular, top-down approach to
software development in a hardware oriented environment.
3. Design, implement and test systems, written in a high level
programming language such as 'C' using appropriate
programmable interface devices from an initial specification
through to validation.
Assessment Criteria
2 Take home assignments
Practical reports
(detailed report should be submitted for each and every practical)
Text Book(s)
Primary Textbook
Title:
Quintessential PIC Microcontroller,
TheAuthor:Sid Katzen (University of Ulster, United Kingdom)
ISBN:
185233942X
Format:
Paperback
Release:
Pages:
Publisher:
Distributor(s):
Date:08/30/2005
567
Springer-Verlag New York Inc
Springer-Verlag New York Inc
Text Book(s)
Secondary Textbook
Title:
Designing Embedded Systems with PIC Microcontrollers: Principles
and Applications
Author:
ISBN:
Format:
Release:
Pages:
Publisher:
What is an embedded
system?
An embedded system is a special-purpose computer system designed to
perform one or a few dedicated functions, often with real-time computing
constraints.
Embedded System
A system whose principal function is not computational, but which is
controlled by a computer embedded within it.
Refrigerator example
Microprocessor vs
Microcontroller
Microprocessor requires additional circuitry to
function which are connected via the buses. (Ex: A
soundcard connected to the PCI slot must be used to
output sound)
Memory Cont
In order for the CPU to execute the program stored memory it should
fetch it.
Contains
0x01
0x45 a=1
0x02
0x67 a++
0x03
0x23 display a
ALU
Bus Architecture
Electronic signals travel through wires, and there are
many connections between various components of the
computer, particularly between the CPU and the rest.
To minimize the number of connections, the wires ("data
paths") are shared among many devices and signals can
propagate between selected devices and then the
selection change.
Both the program and data share the memory of the system.
Internal Architecture
of a Von Neumann computer
DATA BUS
INPUT
DEVICE
I/O
PORTS
CONTROL
BUS
OUTPUT
DEVICE
CENTRAL
PROCESSING
UNIT (CPU)
ADDRESS BUS
Memory
CPU
I/O
Data / Control / Address buses
CONTROL
BUS
MEMORY
(RAM/ROM)
Buses Cont
A group of data paths (wires) shared between a number
of devices is known as a "Bus". In a computer, there are
three main groups
Address bus
Data bus
Control bus
Address Bus
Address Bus: This group of wires carries the address
information. It is unidirectional going from CPU to Memory
or I/O. For Microcontrollers this is typically 16 bits wide,
giving an address range of 65,536 locations.
Data Bus
This group of wires carries the data information and is bi
directional.
Control bus
This group of wires carries the control and status
information. It can be unidirectional or bidirectional. The
width of the bus varies with different computers.
Memory read
To read a byte of data from a memory location, the CPU sends out
the memory address of the desired byte on the address bus.
Next sends out a memory read signal, on the control bus.
Then the data byte form memory travels along the data bus to the
CPU
Harvard Computer
Architecture
Harvard Computer
Architecture Cont
The Harvard architecture is an adaptation of the standard von
Neumann structure, that separates the shared memory into
entirely separate Program and Data stores.
The diagram shows two physically distinct buses used to carry
information to the CPU from these disjoint memories.
Each memory has its own Address bus and thus there is no
interaction between a Program cell and a Data cells address. The
two memories are said to lie in separate memory spaces.
Microcontroller families
Microcontroller family
Atmel
AT91SAM7, AT91SAM9,
Intel
Motorola
Microchip (PIC)
12FXXX, 16FXXX,18FXXX
Microcontrollers used in
Mobiles
Mobile
Microcontroller
Nokia N97
ARM11
Nexperia PNX4008
LG KC1
Marvell PXA320
Processor features
Microcontroller
Bits
Speed
Instruction set
Features
ARM11
64-bit
532-665
MHz
RISC
Power Management
4 cores
Enhanced for video
processing
Nexperia
PNX4008
32-bit
208 MHz
RISC
2D/3D Graphics
Accelerator
Integrated DSP
Marvell PXA320
32-bit
Up to
820MHz
RISC
Power Management
Supported
Hardware video
acceleration.