Esd Module-3 Updated
Esd Module-3 Updated
MODULE - 3
ARCHITECTURE OF SPECIAL PURPOSE
COMPUTING SYSTEM
Page 2
Page 3
MODULE - 3 Page 4
MICROCONTROLLER ARCHITECTURE
CLASSIFICATION OF MICROOCNTROLLERS
MODULE - 3 Page 5
MICROCONTROLLER ARCHITECTURE
CLASSIFICATION OF MICROOCNTROLLERS
q MEMORY ARCHITECTURE:
MODULE - 3 Page 6
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 Page 7
MICROCONTROLLER ARCHITECTURE
CLASSIFICATION OF MICROOCNTROLLERS
q 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 Page 8
MICROCONTROLLER ARCHITECTURE
CLASSIFICATION OF MICROOCNTROLLERS
q 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 Page 9
MICROCONTROLLER ARCHITECTURE
CLASSIFICATION OF MICROOCNTROLLERS
q 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 Page 10
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 CSE3006 – EMBEDDED SYSTEM DESIGN 14
PIC – Architecture (16F877A)
MODULE - 3 19
20
EMBEDDED MEMORY
MEMEORY ORGANISATION
MODULE - 3 37
EMBEDDED MEMORY
MEMEORY ORGANISATION
q System Space – Exception Vectors
MODULE - 3 23
EMBEDDED MEMORY
MEMORY CLASSIFICATION
SRAM
RAM
DRAM
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
Handheld devices
37
Selecting The Right Processor
q µ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
q DSP are majorly used for high computation intensive applications such as
image processing, communication devices, voice to text converter etc.,
MODULE - 3 CSE3006 – EMBEDDED SYSTEM DESIGN 38
PROCESSOR SELECTION CRITERIA
q 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)
q POS Hand Held spot Billing Machine (SBM) is a GPRS Enabled machine.
The device is compact and lightweight(less than 500grms).
q The machine is equipped with technology which serves as a Hand Held
computer.
q The device is WEB/USB enabled which helps the operator to get instant
bill remotely and update transactions back to the server.
Block Diagram
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
Nested Vector Interrupt
MODULE - 3 42
PROCESSOR SELECTION CRITERIA
Case study-1: Handheld Device
MODULE - 3 42
PROCESSOR SELECTION CRITERIA
Case study-1: Handheld Device
q It is built for life out in the field, integrates Corning Gorilla glass for display,
able to handle drops, bumps, spills, dust, vibration.
q Android 10.0 OS
q 8GB ROM + 1 GB RAM(16GB+2GB Optional)
q 4'' high resolution(480*800) IPS TFT display
q 8MP AF Camera with LED flash
q 2G,3G,4G ,WIFI,Bluetooth connection
q IP 65 Sealing
q 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
q 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 Page 66
PROCESSOR SELECTION CRITERIA
Case study-1: Handheld Device
Processor
MODULE - 3 Page 67
PROCESSOR SELECTION CRITERIA
Case study-1: Handheld Device
Processor
MODULE - 3 Page 68
PROCESSOR SELECTION CRITERIA
Case study-2: Digital Camera
q DSP - is the brain of the camera and is responsible for performing all the
computations needed to process and compress the image.
MODULE - 3 Page 69
PROCESSOR SELECTION CRITERIA
Case study-2: Digital Camera
MODULE - 3 Page 70
PROCESSOR SELECTION CRITERIA
Case study-2: Digital Camera
MODULE - 3 Page 71
PROCESSOR SELECTION CRITERIA
Case study-2: Digital Camera
q On most DSCs, the user has the ability to view the image to be captured
on the LCD display.
q The compressed images are stored in Flash memory for later use.
q Most DSC systems also provide an NTSC/PAL video signal to view the
captured images (also the preview images) on a TV monitor.
q The current DSCs also provide ways to connect to the external PC or
printer through an RS-232 or a USB port.
MODULE - 3 Page 72
PROCESSOR SELECTION CRITERIA
Case study-2: Digital Camera
Image Pipeline
MODULE - 3 Page 73
PROCESSOR SELECTION CRITERIA
Case study-2: Digital Camera
Image Pipeline
q 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.
q All these processing stages are collectively called the “image pipeline.”
q Most of these tasks are multiply-accumulate (MAC) intensive operations.
q 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 Page 74
PROCESSOR SELECTION CRITERIA
Case study-2: Digital Camera
MODULE - 3 Page 75
PROCESSOR SELECTION CRITERIA
Case study-2: Digital Camera
MODULE - 3 Page 76
PROCESSOR SELECTION CRITERIA
Case study-2: Digital Camera
MODULE - 3 Page 77
PROCESSOR SELECTION CRITERIA
Case study-2: Digital Camera
MODULE - 3 Page 78
PROCESSOR SELECTION CRITERIA
Case study-2: Digital Camera
MODULE - 3 Page 79
PROCESSOR SELECTION CRITERIA
Case study-2: Digital Camera
MODULE - 3 Page 80
PROCESSOR SELECTION CRITERIA
Case study-3: ATM
MODULE - 3 Page 81
PROCESSOR SELECTION CRITERIA
Case study-3: ATM
MODULE - 3 Page 82
PROCESSOR SELECTION CRITERIA
Case study-3: ATM
ATM – Harware
q CPU (to control the user interface and transaction devices)
q Magnetic and/or Chip card reader (to identify the customer)
q PIN Pad (similar in layout to a Touch tone or Calculator keypad), often
manufactured as part of a secure enclosure.
q Secure cryptoprocessor, generally within a secure enclosure.
q Display (used by the customer for performing the transaction)
q Function key buttons (usually close to the display) or a Touchscreen (used
to select the various aspects of the transaction)
q Record Printer (to provide the customer with a record of their transaction)
q Vault (to store the parts of the machinery requiring restricted access)
q Housing (for aesthetics and to attach signage to)
MODULE - 3 Page 83
PROCESSOR SELECTION CRITERIA
Case study-3: ATM
ATM – Vaults
MODULE - 3 Page 84
PROCESSOR SELECTION CRITERIA
Case study-3: ATM
ATM – Networking
q The internet service provider (ISP) also plays an important role in the ATMs.
q This provides communication between ATM and host processors.
q When the transaction is made, the details are input by the cardholder.
q This information is passed on to the host processor by the ATM.
q The host processor checks these details with an authorized bank.
q If the details are matched, the host processor sends the approval code to the machine
so that the cash can be transferred.)
MODULE - 3 Page 85
PROCESSOR SELECTION CRITERIA
Special Purpose Processor
MODULE - 3 Page 86
Page 87
Page 88
Page 89
Page 90
Page 91
Page 92
Page 93
Page 94
Page 95
Page 96
Page 97
Page 98
Page 99
Page 100
Page 101
Page 102
Page 103
Page 104
Page 105
Page 106
Page 107
Page 108
GOALS OF DATA COMPRESSION IN EMBEDDED SYSTEM
Page 109
BLOCK DIAGRAM FOR COMPRESSOR
1..m packed
1..n input output
symbols symbols
input data compressor output
Page 110
HUFFMAN CODING
Page 111
HUFFMAN EXAMPLE
character P
a .45
b .24
c .11
d .08
e .07
f .05
Page 112
EXAMPLE HUFFMAN CODE
Page 113
REQUIREMENTS
Page 114
BUILDING A SPECIFICATION
Page 115
DATA-COMPRESSOR CLASS
data-compressor
buffer: data-buffer
table: symbol-table
current-bit: integer
encode(): boolean,
data-buffer
flush()
new-symbol-table()
Page 116
DATA-COMPRESSOR BEHAVIORS
Page 117
AUXILIARY CLASSES
data-buffer symbol-table
databuf[databuflen] : symbols[nsymbols] :
character data-buffer
len : integer len : integer
Page 118
AUXILIARY CLASS ROLES
Page 119
CLASS RELATIONSHIPS
data-compressor
1
1
1 1
data-buffer symbol-table
Page 120
ENCODE BEHAVIOR
F
add to buffer return false
Page 121
INSERT BEHAVIOR
pack into
T this buffer
input
symbol update
fills buffer?
length
F
pack bottom bits
into this buffer,
top bits into
overflow buffer
PROGRAM DESIGN
symbol table
compare