SlideShare a Scribd company logo
EMBEDDED SYSTEM BASICS
POWERED BY
RANA ALI
Interface Analog voltage
• Interfacing ACS 712 current sensor
• Measuring current and give voltage output
ACS712 relation between Current on
Output voltage
Driving ACS 712 formula
Input current Output voltage ADC value
-30 A 0 V 0
0 A 2.5 V 512
+30 A 5 V 1023
Y = MX + B
And
M = (y2-y1) / (x2 – x1)
M = ( 1023 – 0 ) / (30 – (-30))
M = 1023 / 60
M = 17.05
Y = MX + B
Y = 17.05X + 512
X = (Y – 512) / 17.05
FPGA block diagram
Logic Block
Logic flow in FPGA
FPGA ASIC difference
FPGA Application
Difference between Microprocessor
and FPGA
cryptography
How cryptography work
Network application
FPGA SoC
FPGA SoC
Assignment: Write difference between the
following
• Hardcore FPGA
• Softcore FPGA
Protocol
• UART
• JTAG
• I2C
• SPI
• CAN
Serial vs Parallel Communication
Serial vs Parallel Communication
UART
UART vs USART
UART Working
Serial Communication in Arduino UNO
and Mega
Data Transmission Type
• (a) Simplex
• (b) Half Duplex
• (c) Full Duplex
RS232 UART
UART GSM Interface
UART GPS Interface
JTAG
• JTAG is a Testing protocol
• It use to design and test board after
manufacturing
• It is on-chip instrument for digital Simulation
Joint Test Action Group
JTAG Pins
Daisy-chained JTAG (IEEE 1149.1)
The connector pins are
• TDI (Test Data In)
• TDO (Test Data Out)
• TCK (Test Clock)
• TMS (Test Mode Select)
• TRST (Test Reset) optional.
• Test reset signal is not shown in the image.
JTAG
Daisy-chained JTAG
JTAG Application
JTAG AVR
JTAG FPGA
JTAG Mobile Phone
I2C Protocol
• I²C (Inter-Integrated Circuit) design by Phllips
• It is typically used for attaching lower-speed
peripheral ICs to processors
and microcontrollers in short-distance, intra-
board communication
• Some other vendor use same protocol by name
TWI (Two Wire Interface) or TWSI (Two-Wire
Serial Interface)
I2C Protocol
• I²C uses only two bidirectional open-
drain lines, Serial Data Line (SDA) and Serial
Clock Line (SCL), pulled up with resistors.
Typical voltages used are +5 V or +3.3 V
• It has adress space of 7-bit mean it interface
128 devices
• I²C bus speeds are the 100 kbit/s
I2C Interface
I2C Working
I2C in Arduino
I2C devices
SPI
(Serial Peripheral Interface)
• The Serial Peripheral Interface bus (SPI) is a
synchronous serial communication interface
specification used for short distance
communication.
• SPI devices communicate in full duplex mode.
• The interface was developed by Motorola.
• Typical applications include Secure Digital cards
and LCD.
SPI working
The SPI bus specifies five logic signals:
SCLK: Serial Clock (output from master)
MOSI: Master Output Slave Input, or
Master Out Slave In
(data output from master).
MISO: Master Input Slave Output, or
Master In Slave Out
(data output from slave).
SS: Slave Select
(often active low, output from master).
EMBEDDED SYSTEM BASICS
SPI Animation
Independent slave configuration
• In the independent
slave configuration,
there is an
independent chip
select line for each
slave
Daisy chain configuration
• Only 4 wires are
user to interface
many device
• Sometime use in
place of JTAG
SPI Application
• Sensors: temperature, pressure, ADC, touch
screens, video game controllers
• Control devices: audio codecs, digital
potentiometers, DAC
• Camera lenses: Canon EF lens mount
• Communications: Ethernet
• Memory: flash and EEPROM
• Real-time clocks
• LCD, sometimes even for managing image data
• Any MMC or SD card (including SDIO variant[5])
SPI Example
• SCP1000 Barometric Pressure sensor
SPI Arduino
CAN Bus
• Controller Area Network (CAN bus)
• It is a vehicle bus standard designed to allow
microcontrollers and devices to communicate
with each other in applications without a host
computer
CAN
• The modern automobile may have as many as 70
Electronic Control Units (ECU)
• Typically the biggest processor is the Engine Control
Unit.
• Some of these form independent subsystems, but
communications among others are essential.
Transmission electric power steering
airbags audio systems
antilock power windows
Braking/ABS doors
cruise control mirror adjustment
battery and recharging systems for hybrid/electric cars
CAN Bus
Before CAN Bus: Multi-wire Bus
•Electronic/engine Control Module (ECM)
• Body Control Module (BCM)
CAN Bus
CAN Device
CAN Bus Architecture
CAN Bus Application
CAN Bus Application
Comparing UART, I2C and SPI
• Data Transmission Type
Simplex, Half Duplex and Full Duplex
• Synchronous or Asynchronous
• Master/Slave or Independent
• Applications
Verilog Design Methodologies
Top-down Design Methodology
Bottom-up Design Methodology
Verilog Modules
A module is the basic building block in Verilog
Module Syntax
module <module_name> (<module_terminal_list>);
...
<module internals>
...
...
endmodule
Bottom-up Design Methodology
Example
d Clk Q
0 0 Q0
0 1 0
1 0 Q0
1 1 1
Bottom-up Design Methodology
Example
Bottom-up Design Methodology
Example
Verilog Simulation
Simulink programming
a = 0;
b = 0;
#100; //delay of 100 unit time
a = 0;
b = 1;
#100; //delay of 100 unit time
a = 1;
b = 0;
#100; //delay of 100 unit time
a = 1;
b = 1;
#100; //delay of 100 unit time
Verilog FPGA
Verilog is both a behavioral and a structural
Model(Switch level, Gate level and Dataflow ).
Internals of each module can be defined at four
levels of abstraction, depending on the needs of
the design
• Behavioral or algorithmic level
• Dataflow level
• Gate level
• Switch level
Switch level Modeling
Design using nmos and pmos logics
• pmos (out,data,control);
• cmos (w, datain, ncontrol, pcontrol);
• nmos (w, datain, ncontrol);
• pmos (w, datain, pcontrol);
Gate level Modeling
• Gates provide a much closer one to one mapping
between the actual circuit and the network
model
• Use in Small circuit design
• The and/or gates available in Verilog are shown
below.
and or xor nand nor xnor
• and a1(OUT, IN1, IN2);
• nand na1(OUT, IN1, IN2);
• or or1(OUT, IN1, IN2);
• nor nor1(OUT, IN1, IN2);
Dataflow Modeling
• assign out = in1 & in2;
• assign #10 out = in1 & in2;
// Delay in a continuous assign
Behavioral Modeling
• Design at this level resembles C programming more
than it resembles digital circuit design.
module clock_gen (output reg clock);
Initial //Initialize clock at time zero
clock = 1'b0;
always
#10 clock = ~clock; //Toggle clock every half-cycle
//time period = 20
initial
#1000 $finish; //Finish at 1000 unit clock
endmodule
EMBEDDED SYSTEM BASICS
Behavioral Modeling
• initial : initial blocks execute only once at time
zero (start execution at time zero).
• always : always blocks loop to execute over and
over again; in other words, as the name suggests,
it executes always.
module initial_example();
reg clk,reset,enable,data;
initial
begin
clk = 0;
reset = 0;
enable = 0;
data = 0;
end
endmodule
module always_example();
reg clk,reset,enable,q_in,data;
always @ (posedge clk)
if (reset)
begin
data <= 0;
end
else if (enable)
begin
data <= q_in;
end
endmodule
Blocking vs. Non-blocking
Assignments
Blocking vs. Non-blocking
Assignments
Blocking vs. Non-blocking
Assignments Example
Blocking vs. Non-blocking
Assignments Example

More Related Content

PPTX
Microcontroller(18CS44) module 1
Swetha A
 
PPTX
ARM Microcontroller and Embedded Systems (17EC62) – ARM – 32 bit Microcontrol...
Shrishail Bhat
 
PDF
Embedded Systems (18EC62) - ARM - 32-Bit Microcontroller (Module 1)
Shrishail Bhat
 
PDF
Radio_Frequency_Identification_RFID_Based_Car_Park.pdf
Manju Badiger
 
PPTX
Module 1 - ARM 32 Bit Microcontroller
Amogha Bandrikalli
 
PDF
Embedded Systems (18EC62) - ARM Cortex-M3 Instruction Set and Programming (Mo...
Shrishail Bhat
 
PDF
Embedded Systems (18EC62) – Embedded System Design Concepts (Module 4)
Shrishail Bhat
 
PPSX
LECT 1: ARM PROCESSORS
Dr.YNM
 
Microcontroller(18CS44) module 1
Swetha A
 
ARM Microcontroller and Embedded Systems (17EC62) – ARM – 32 bit Microcontrol...
Shrishail Bhat
 
Embedded Systems (18EC62) - ARM - 32-Bit Microcontroller (Module 1)
Shrishail Bhat
 
Radio_Frequency_Identification_RFID_Based_Car_Park.pdf
Manju Badiger
 
Module 1 - ARM 32 Bit Microcontroller
Amogha Bandrikalli
 
Embedded Systems (18EC62) - ARM Cortex-M3 Instruction Set and Programming (Mo...
Shrishail Bhat
 
Embedded Systems (18EC62) – Embedded System Design Concepts (Module 4)
Shrishail Bhat
 
LECT 1: ARM PROCESSORS
Dr.YNM
 

What's hot (20)

PDF
Unit 4
tamilnesaner
 
PDF
Lecture 1 - Introduction to embedded system and Robotics
Vajira Thambawita
 
PPT
Embedded systemsc
idris kamaruddin
 
PPTX
Presentation for EEE engineers on Microcontroller by Dilip Kumar Roy
Dilip Kumar Ckt
 
PDF
Embedded system (Chapter 2) part A
Ikhwan_Fakrudin
 
PPSX
Lect 4 ARM PROCESSOR ARCHITECTURE
Dr.YNM
 
PDF
Introduction to embedded computing and arm processors
Siva Kumar
 
PPTX
Microprocessors basics
Dr.YNM
 
PDF
ARM CORTEX M3 PPT
Gaurav Verma
 
PPTX
Unit vi (2)
Siva Nageswararao
 
PDF
pic 18
Vishnu C Sathi
 
PDF
Unit 3 mpmc
tamilnesaner
 
PPTX
PIC-18 Microcontroller
ASHISH RANJAN
 
PDF
Pic18f458
Girish Bellenavar
 
PDF
Performance Comparison Between x86 and ARM Assembly
Manasa K
 
PPT
pic architecture
gojan college
 
PPTX
Arm programmer's model
v Kalairajan
 
PDF
PIC microcontroller review
Mohsen Sarakbi
 
Unit 4
tamilnesaner
 
Lecture 1 - Introduction to embedded system and Robotics
Vajira Thambawita
 
Embedded systemsc
idris kamaruddin
 
Presentation for EEE engineers on Microcontroller by Dilip Kumar Roy
Dilip Kumar Ckt
 
Embedded system (Chapter 2) part A
Ikhwan_Fakrudin
 
Lect 4 ARM PROCESSOR ARCHITECTURE
Dr.YNM
 
Introduction to embedded computing and arm processors
Siva Kumar
 
Microprocessors basics
Dr.YNM
 
ARM CORTEX M3 PPT
Gaurav Verma
 
Unit vi (2)
Siva Nageswararao
 
Unit 3 mpmc
tamilnesaner
 
PIC-18 Microcontroller
ASHISH RANJAN
 
Performance Comparison Between x86 and ARM Assembly
Manasa K
 
pic architecture
gojan college
 
Arm programmer's model
v Kalairajan
 
PIC microcontroller review
Mohsen Sarakbi
 
Ad

Similar to EMBEDDED SYSTEM BASICS (20)

PDF
IEEE Paper A SystemC AMS Model of an I2C Bus Controller
Dweapons Art
 
PPTX
Real Time System Validation using Hardware in Loop (HIL) Digital Platform
SHIMI S L
 
PPT
ARDUINO AND ITS PIN CONFIGURATION
soma saikiran
 
PPTX
underground cable fault location using aruino,gsm&gps
Mohd Sohail
 
PPTX
Automatic Power Factor Correction Using Arduino Uno
VineetKumar508
 
PPTX
Arduino Programming Familiarization
Amit Kumer Podder
 
PDF
Intro to IO-Link
Neil Farrow, P.E.
 
PDF
Galil rio catalog
Electromate
 
PPTX
Parth xyz
ParthBabariya15
 
PDF
OPAL-RT RT13 Conference: Rapid control prototyping solutions for power electr...
OPAL-RT TECHNOLOGIES
 
PPTX
I2C EEPROM SIMULATION IN VERILOG-12.pptx
sudheerkurakula1218
 
PPTX
Peripherals and interfacing
RAMPRAKASHT1
 
PPTX
Overview of Microcontroller and ATMega32 microcontroller
Rup Chowdhury
 
PPTX
Badal sharma
badaldausa
 
PPT
ELECTRICAL ENGINEERING PROJECT
vasav2204
 
PPT
electrical engineering project
vasav2204
 
PPT
FIRSTFare 2012 Overview of Electronics
Oregon FIRST Robotics
 
PPT
An Overview on Programmable System on Chip: PSoC-5
Premier Farnell
 
PPTX
Microcontroller from basic_to_advanced
Imran Sheikh
 
PPTX
Communication_Protocols[2][1].pptx on protocoals
AshishDogra34
 
IEEE Paper A SystemC AMS Model of an I2C Bus Controller
Dweapons Art
 
Real Time System Validation using Hardware in Loop (HIL) Digital Platform
SHIMI S L
 
ARDUINO AND ITS PIN CONFIGURATION
soma saikiran
 
underground cable fault location using aruino,gsm&gps
Mohd Sohail
 
Automatic Power Factor Correction Using Arduino Uno
VineetKumar508
 
Arduino Programming Familiarization
Amit Kumer Podder
 
Intro to IO-Link
Neil Farrow, P.E.
 
Galil rio catalog
Electromate
 
Parth xyz
ParthBabariya15
 
OPAL-RT RT13 Conference: Rapid control prototyping solutions for power electr...
OPAL-RT TECHNOLOGIES
 
I2C EEPROM SIMULATION IN VERILOG-12.pptx
sudheerkurakula1218
 
Peripherals and interfacing
RAMPRAKASHT1
 
Overview of Microcontroller and ATMega32 microcontroller
Rup Chowdhury
 
Badal sharma
badaldausa
 
ELECTRICAL ENGINEERING PROJECT
vasav2204
 
electrical engineering project
vasav2204
 
FIRSTFare 2012 Overview of Electronics
Oregon FIRST Robotics
 
An Overview on Programmable System on Chip: PSoC-5
Premier Farnell
 
Microcontroller from basic_to_advanced
Imran Sheikh
 
Communication_Protocols[2][1].pptx on protocoals
AshishDogra34
 
Ad

Recently uploaded (20)

PDF
Unit I Part II.pdf : Security Fundamentals
Dr. Madhuri Jawale
 
PPTX
Module2 Data Base Design- ER and NF.pptx
gomathisankariv2
 
PPTX
MT Chapter 1.pptx- Magnetic particle testing
ABCAnyBodyCanRelax
 
PPTX
IoT_Smart_Agriculture_Presentations.pptx
poojakumari696707
 
PPTX
22PCOAM21 Session 2 Understanding Data Source.pptx
Guru Nanak Technical Institutions
 
PPTX
Information Retrieval and Extraction - Module 7
premSankar19
 
PDF
Natural_Language_processing_Unit_I_notes.pdf
sanguleumeshit
 
PPTX
FUNDAMENTALS OF ELECTRIC VEHICLES UNIT-1
MikkiliSuresh
 
PDF
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
PDF
Construction of a Thermal Vacuum Chamber for Environment Test of Triple CubeS...
2208441
 
PDF
All chapters of Strength of materials.ppt
girmabiniyam1234
 
PDF
Advanced LangChain & RAG: Building a Financial AI Assistant with Real-Time Data
Soufiane Sejjari
 
PDF
EVS+PRESENTATIONS EVS+PRESENTATIONS like
saiyedaqib429
 
PDF
Zero Carbon Building Performance standard
BassemOsman1
 
PPTX
business incubation centre aaaaaaaaaaaaaa
hodeeesite4
 
PDF
Machine Learning All topics Covers In This Single Slides
AmritTiwari19
 
PDF
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
PDF
FLEX-LNG-Company-Presentation-Nov-2017.pdf
jbloggzs
 
PDF
settlement FOR FOUNDATION ENGINEERS.pdf
Endalkazene
 
PDF
LEAP-1B presedntation xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
hatem173148
 
Unit I Part II.pdf : Security Fundamentals
Dr. Madhuri Jawale
 
Module2 Data Base Design- ER and NF.pptx
gomathisankariv2
 
MT Chapter 1.pptx- Magnetic particle testing
ABCAnyBodyCanRelax
 
IoT_Smart_Agriculture_Presentations.pptx
poojakumari696707
 
22PCOAM21 Session 2 Understanding Data Source.pptx
Guru Nanak Technical Institutions
 
Information Retrieval and Extraction - Module 7
premSankar19
 
Natural_Language_processing_Unit_I_notes.pdf
sanguleumeshit
 
FUNDAMENTALS OF ELECTRIC VEHICLES UNIT-1
MikkiliSuresh
 
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
Construction of a Thermal Vacuum Chamber for Environment Test of Triple CubeS...
2208441
 
All chapters of Strength of materials.ppt
girmabiniyam1234
 
Advanced LangChain & RAG: Building a Financial AI Assistant with Real-Time Data
Soufiane Sejjari
 
EVS+PRESENTATIONS EVS+PRESENTATIONS like
saiyedaqib429
 
Zero Carbon Building Performance standard
BassemOsman1
 
business incubation centre aaaaaaaaaaaaaa
hodeeesite4
 
Machine Learning All topics Covers In This Single Slides
AmritTiwari19
 
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
FLEX-LNG-Company-Presentation-Nov-2017.pdf
jbloggzs
 
settlement FOR FOUNDATION ENGINEERS.pdf
Endalkazene
 
LEAP-1B presedntation xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
hatem173148
 

EMBEDDED SYSTEM BASICS