Esd Module 3
Esd Module 3
MODULE - 3 3
MICROCONTROLLER ARCHITECTURE
CLASSIFICATION OF MICROOCNTROLLERS
MEMORY ARCHITECTURE:
MODULE - 3 5
MICROCONTROLLER ARCHITECTURE
HARVARD VS VON-NEUMANN
MICROCONTROLLER
MICROCONTROLLER
PHERIPHERALS
PHERIPHERALS
Input Output
Input Output CPU
Devices CPU Devices
Devices Devices
MEMORY
(Program + Data)
Program Data
Memory Memory
MODULE - 3 6
MICROCONTROLLER ARCHITECTURE
CLASSIFICATION OF MICROOCNTROLLERS
INSTRUCTION SET:
− CISC: Complex Instruction Set Computer
− Allow single (complex) instructions to perform numerous low-
level (simple) operations like a load from memory, arithmetic
operation, store into memory with multiple clock cycle
− MUL A, B : get the value of A and B from registers, compute
multiplication by repeated addition and store results back to
registers
Ex: Motorola 68000 (68K), 8051
MODULE - 3 8
MICROCONTROLLER ARCHITECTURE
CLASSIFICATION OF MICROOCNTROLLERS
INSTRUCTION SET:
− RISC: Reduced Instruction set Computer
− reduce the instruction execution complexity by having
several simple instructions which achieve low-level operation
within a single clock cycle
− LDR for loading, ADD with loop count for multiplication then
STR for storing operations
Ex: AVR, PIC, ARM
MODULE - 3 9
MICROCONTROLLER ARCHITECTURE
CLASSIFICATION OF MICROOCNTROLLERS
FAMILIES/ARCHITECTURE:
− MCS51: A microcontroller (MCU) series developed by Intel and optimized for
embedded control applications
− PIC: A family of microcontrollers made by Microchip Technology and used
in a wide variety of embedded systems
− AVR: A family of microcontrollers developed by Atmel (acquired by
Microchip in 2016) and majorly used by hobbyist and educational
embedded applications
− ARM: By combining the ARM microprocessor with RAM, ROM and other
peripherals in one single chip, ARM microcontrollers are made (LPC 11U24)
− OTHERS: MIPS, PowerPC, RISC-V, Motorola etc.,
MODULE - 3 11
MICROCONTROLLER ARCHITECTURE
MCS51- Features (8051)
Instruction set Architecture : CISC
Data bus size : 8-bit
Address bus size : 16-bit
Program memory (ROM) : 4 KB
Data memory (RAM) : 128 bytes
General purpose registers : 32 (each 8-bit in size)
Program counter : 16-bit (PC)
Data pointer : 16-bit (DPTR)
Input/output ports : 4 (each 8-bit in size)
Timers : 2 (T0 & T1)
Interrupts : 5 (3 internal + 2 external)
Serial port : 1 (8-bit & 9-bit mode)
MODULE - 3 12
8051- Architecture
MODULE - 3 13
MICROCONTROLLER ARCHITECTURE
PIC – Features (16F877A)
Instruction set Architecture : RISC
Data bus size : 8-bit
Address bus size : 14-bit
Program memory (ROM) : 8 KB
Data memory (RAM) : 368 bytes
Data memory (EEPROM) : 258 bytes
Input/output ports : 5 (A, B, C, D, E)
Timers : 3 (Timer0, 1 & 2)
Interrupts : 15
ADC modules (10-bit) : 8 channels
PWM modules :2
Analog comparators :2
Serial communication : MSSP, USART
Parallel communication : PSP
MODULE - 3 14
PIC – Architecture (16F877A)
MODULE - 3 15
MICROCONTROLLER ARCHITECTURE
AVR - Features (ATmega328P)
Instruction set Architecture : RISC
Data bus size : 8-bit
Address bus size : 16-bit
Program memory (ROM) : 32 KB
Data memory (RAM) : 2 KB
Data memory (EEPROM) : 1 KB
Input/output ports : 3 (B, C, D)
General purpose registers : 32 (each 8-bit in size)
Timers : 3 (Timer0, 1 & 2)
Interrupts : 26 (2 External)
ADC modules (10-bit) : 6 channels
PWM modules :6
Analog comparators :1
Watchdog timer :1
Serial communication : SPI, USART, TWI(I2C)
MODULE - 3 16
AVR ATmega328P - Architecture
MODULE - 3 17
MICROCONTROLLER ARCHITECTURE
ARM - Features (Cortex-M0)
Instruction set Architecture : RISC
Data bus size : 32-bit
Address bus size : 32-bit
Program memory (ROM) : 32 KB
Data memory (RAM) : 10 KB
Data memory (EEPROM) : 4 KB
Boot ROM : 16 KB
GPIO pins : 54
General purpose registers : 32
Timers :4
Nested Vectored Interrupt : 24
ADC modules (10-bit) : 8 channels
Windowed Watchdog timer :1
Integrated oscillators : 3 (system, Internal RC, Watchdog oscillator)
Serial communication : USB 2.0, SSP, USART, I2C
MODULE - 3 18
ARM LPC 11U24 - Architecture
MODULE - 3 19
20
EMBEDDED MEMORY
MEMEORY ORGANISATION
MODULE - 3 37
EMBEDDED MEMORY
MEMEORY ORGANISATION
System Space – Exception Vectors
MODULE - 3 23
EMBEDDED MEMORY
MEMORY CLASSIFICATION
MASKED ROM
EPROM
EEPROM
HYBRID FLASH
NVRAM
MODULE - 3 25
EMBEDDED MEMORY
CHARACTERISTICS OF VARIOUS EMBEDDED MEMORY DEVICES
Type Volatile? Writeable? Erase Size Max Erase Cycles Cost Speed
SRAM Yes Yes Byte Unlimited Expensive Fast
MODULE - 3 34
37
Selecting The Right Processor
MODULE - 3 40
Selecting The Right Processor
MODULE - 3 41
Selecting The Right Processor
MODULE - 3 42
PROCESSOR SELECTION CRITERIA
µP are offered in 4 to 64-bit size with distinct features like cost, speed, no.
of CPU core, address & data line are used in simple toys to network router
DSP are majorly used for high computation intensive applications such as
image processing, communication devices, voice to text converter etc.,
MODULE - 3 38
PROCESSOR SELECTION CRITERIA
Sequence of analysis to be made selecting an appropriate processor for
embedded system applications as follows,
1. Application requirement analysis: understand the purpose of
application and arrive specific requirement
2. Processor Architecture analysis: MCS51, ARM, PIC, PowerPC, MIPS etc.,
3. Peripheral set analysis: Includes on-chip (RAM, ROM ,I/O Ports, ADC)
and specialized processing units (FPU, MMU, DMA)
POS Hand Held spot Billing Machine (SBM) is a GPRS Enabled machine.
The device is compact and lightweight(less than 500grms).
The machine is equipped with technology which serves as a Hand Held
computer.
The device is WEB/USB enabled which helps the operator to get instant
bill remotely and update transactions back to the server.
MODULE - 3 42
PROCESSOR SELECTION CRITERIA
Case study-1: Handheld Device
MODULE - 3 42
PROCESSOR SELECTION CRITERIA
Case study-1: Handheld Device
MODULE - 3 42
PROCESSOR SELECTION CRITERIA
Case study-1: Handheld Device
Block Diagram
MODULE - 3 42
PROCESSOR SELECTION CRITERIA
Case study-1: Handheld Device
MODULE - 3 42
PROCESSOR SELECTION CRITERIA
Case study-1: Handheld Device
Specification
Processor : ARM 32-bit Cortex-M3 CPU(120 Mhz max)with Adaptive real-time accelerator (ART Accelerator),
MPU,150DMIPS/1.25DMIPS/MHz(Dhrystone 2.1)capable of In-System Programming.
On The Fly Programming(Can be done in the field using laptop)for Upgrading the units through
Serial/USB Ports.
Choice of Program Memory Capacity of 512K/1024K bytes.
Memory : 8 MB of Non-volatile data memory is provided with the units data retention is minimum 10 years
with out any power being applied.Expandable to 16 MB
Optional - It also has micro SD card slat for large memory backup.
Real Time Clock : In-built Real time clock with battery backup.
Key-Board : A 35 key multi function key board is provided on the front panel.
LC Display : 132*64 pixels graphical LCD display with back light provided for user interaction. It has various
graphical icons for indication of battery status, signal status etc.
MODULE - 3 42
PROCESSOR SELECTION CRITERIA
Case study-1: Handheld Device
Specification
Printer : High Speed 24 Column Impact Printer With 2.7 Lines/Sec,is Provided as
Standard fitment.
Paper Roll : 57.5mm+/-0.5mm,60mm dia Paper Roll Fitment.
Communication : a) RS232C Ports-1 Nos(Option of second port)with flexible baud rates.
b) RS232C Ports-1 Nos(Option of second port)with flexible baud rates.
c) Optional IR or IRDA or Both IR or IRDA Port for Communication with electricity meters.
d) Built-in GSM/GPRS modem optional.
e) Optional GPS.
Smart Card Interface : Optional Contact & Contact less(MIFARE)Smart Card Interface.
Batteries : The units are powered by 7.4v 2600 mAH LI-ION Rechargeable Battery pack.
Battery Charger : External Universal voltage AC/DC 9.7V-2Amp Adaptor provided.
Mechanical Dimension : Width-102.00,Length-276.00,Height-82.00.
Weight : Weight-655grams~(without paper roll).
MODULE - 3 42
PROCESSOR SELECTION CRITERIA
Case study-1: Handheld Device
Processor
MODULE - 3 42
PROCESSOR SELECTION CRITERIA
Case study-1: Handheld Device
Processor
MODULE - 3 42
PROCESSOR SELECTION CRITERIA
Case study-1: Handheld Device
Processor
MODULE - 3 42
PROCESSOR SELECTION CRITERIA
Case study-1: Handheld Device
MODULE - 3 42
PROCESSOR SELECTION CRITERIA
Case study-1: Handheld Device
MODULE - 3 42
PROCESSOR SELECTION CRITERIA
Case study-1: Handheld Device
It is built for life out in the field, integrates Corning Gorilla glass for display,
able to handle drops, bumps, spills, dust, vibration.
MODULE - 3 42
PROCESSOR SELECTION CRITERIA
Case study-1: Handheld Device
Android 10.0 OS
8GB ROM + 1 GB RAM(16GB+2GB Optional)
4'' high resolution(480*800) IPS TFT display
8MP AF Camera with LED flash
2G,3G,4G ,WIFI,Bluetooth connection
IP 65 Sealing
2D Zebra SE4710 barcode scanner
MODULE - 3 42
PROCESSOR SELECTION CRITERIA
Case study-1: Handheld Device
Specification
MODULE - 3 42
PROCESSOR SELECTION CRITERIA
Case study-1: Handheld Device
Processor
The Cortex-A53 processor has one to four cores, each with an L1 memory
system and a single shared L2 cache. It can be combined with other
Cortex-A CPUs in a big.LITTLE configuration.
MODULE - 3 42
PROCESSOR SELECTION CRITERIA
Case study-1: Handheld Device
Processor
MODULE - 3 42
PROCESSOR SELECTION CRITERIA
Case study-1: Handheld Device
Processor
MODULE - 3 42
PROCESSOR SELECTION CRITERIA
Case study-2: Digital Camera
DSP - is the brain of the camera and is responsible for performing all the
computations needed to process and compress the image.
MODULE - 3 42
PROCESSOR SELECTION CRITERIA
Case study-2: Digital Camera
MODULE - 3 42
PROCESSOR SELECTION CRITERIA
Case study-2: Digital Camera
MODULE - 3 42
PROCESSOR SELECTION CRITERIA
Case study-2: Digital Camera
On most DSCs, the user has the ability to view the image to be captured
on the LCD display.
The compressed images are stored in Flash memory for later use.
Most DSC systems also provide an NTSC/PAL video signal to view the
captured images (also the preview images) on a TV monitor.
The current DSCs also provide ways to connect to the external PC or
printer through an RS-232 or a USB port.
MODULE - 3 42
PROCESSOR SELECTION CRITERIA
Case study-2: Digital Camera
Image Pipeline
MODULE - 3 42
PROCESSOR SELECTION CRITERIA
Case study-2: Digital Camera
Image Pipeline
The Colour Filtered Array (CFA) data needs to undergo significant amount
of image processing before the image can be finally presented in a
usable format for compression.
All these processing stages are collectively called the “image pipeline.”
Most of these tasks are multiply-accumulate (MAC) intensive operations.
The TMS320C54x DSP is well suited to perform these tasks efficiently and
generate a high-quality image that is close to the image quality offered
by traditional film from the raw CCD data.
MODULE - 3 42
PROCESSOR SELECTION CRITERIA
Case study-2: Digital Camera
MODULE - 3 42
PROCESSOR SELECTION CRITERIA
Case study-2: Digital Camera
MODULE - 3 42
PROCESSOR SELECTION CRITERIA
Case study-2: Digital Camera
MODULE - 3 42
PROCESSOR SELECTION CRITERIA
Case study-2: Digital Camera
MODULE - 3 42
PROCESSOR SELECTION CRITERIA
Case study-2: Digital Camera
MODULE - 3 42
PROCESSOR SELECTION CRITERIA
Case study-2: Digital Camera
MODULE - 3 42
PROCESSOR SELECTION CRITERIA
Case study-3: ATM
MODULE - 3 43
PROCESSOR SELECTION CRITERIA
Case study-3: ATM
MODULE - 3 43
PROCESSOR SELECTION CRITERIA
Case study-3: ATM
ATM – Harware
CPU (to control the user interface and transaction devices)
Magnetic and/or Chip card reader (to identify the customer)
PIN Pad (similar in layout to a Touch tone or Calculator keypad), often
manufactured as part of a secure enclosure.
Secure cryptoprocessor, generally within a secure enclosure.
Display (used by the customer for performing the transaction)
Function key buttons (usually close to the display) or a Touchscreen (used
to select the various aspects of the transaction)
Record Printer (to provide the customer with a record of their transaction)
Vault (to store the parts of the machinery requiring restricted access)
Housing (for aesthetics and to attach signage to)
MODULE - 3 43
PROCESSOR SELECTION CRITERIA
Case study-3: ATM
ATM – Vaults
ATM – Networking
The internet service provider (ISP) also plays an important role in the ATMs.
This provides communication between ATM and host processors.
When the transaction is made, the details are input by the cardholder.
This information is passed on to the host processor by the ATM.
The host processor checks these details with an authorized bank.
If the details are matched, the host processor sends the approval code to the machine
so that the cash can be transferred.)
Offsite ATM
These machines are arranged on a separate basis, which means that the bank has a place where there is only an ATM
machine then this becomes an offsite ATM. This can be done to make sure that the bank reaches out to more
geographical locations to utilize its services by the people even when there is no branch of the bank within the region. So
these machines will operate outside of the bank locations.
Cash Dispenser
These machines allow simply balance inquiry, mini statement & cash withdrawals..
Mobile ATM
These machines move in the locations for the users because COVID 19 has led to the rush within the several Mobile
ATMs.
Green Label
These types of ATMs are used especially for agricultural transactions.
MODULE - 3 CSE3006 – EMBEDDED SYSTEM DESIGN 43
PROCESSOR SELECTION CRITERIA
Types of ATM
Orange Label
These are mainly used for share transactions.
Yellow Label
These ATMs are used for an online purchase by providing an E-Commerce facility
Pink Label
These ATMs are used especially for women. These ATMs are observed by protectors to make sure that only women are
accessing or not so that women waiting in long queues can be reduced.
• As per 2019 records, the total ATM machines located are 222,318
• The highest number of ATMs used in Maharashtra, India.
• For SBI bank, the highest ATM machines were installed in India are 59,521.
• The first talking ATM in India is located in Ahmedabad
• Highest cash withdrawal limit in an ATM is 20k to 1 lack depending on the bank.