Академический Документы
Профессиональный Документы
Культура Документы
PRESENTATION ON EMBEDDED
SYSTEM
SUBMITTED
TO:
MR.RAJESH MALIK
H.O.D.(ECE)
SUBMITTED BY:
MANDEEP KUMAR
ROLL NO. 3410919
B.TECH 7TH SEM(ECE)
INTRODUCTION TO EMBEDDED
Embedded system means the processor is
SYSTEM
embedded into that application.
An
Interface
Software
AN EMBEDDED SYSTEM
Input
Sour
ce
Code
O
U
T
P
U
T
-----------------------Software
Hardware
INPUT
SOURCES
Sensors
RF signal
Analog/Digital
signals
Mouse
Keyboard
Keypads
Optocoupler
OUTPUT
DEVICES
LED
Seven
segment
display
Buzzer
LCD
Printer
Relay
Motor
EMBEDDED SYSTEM
HARDWARE
Embedded
hardware is used for processing of
&system
COMPONENTS
input to produce output in task specific fashion.
I/P Device/Interfacing
Devices/ Driver Circuits
Power
Supply
Reset
Circuit
Oscilla
tor
Timers/
Counters
Program
Memory
Interrupt
Controller
Processe
r
Parallel
Ports
Data
Memory
Serial
Ports
O/P Device/Interfacing
Devices/ Driver Circuits
Applicat
ion
Specific
Circuits
EMBEDDED SYSTEM
Embedded system
software is used for editing,
SOFTWARE
Java
Software
Assembly
language
Embedde
d C,
C++
CHARECTERISTICS OF
Energy
EMBEDDED
SYSTEM
MUST BE
DEPENDABLE
Reliable
Maintaina
ble
Available
Safety
Security
MUST BE
efficient.
EFFICIENT
Code-size
efficient.
Run-time
efficient.
Weight
efficient.
Cost efficient.
APPLICATIONS OF
Rocket and Satellite
MP3 Players
EMBEDDED
SYSTEM
control
Mobile Phones
GPS
Receivers
Printers
Medical Equipments
ATMs
Rocket and Satellite
control
Energy production
control
Energy
production
control
Air traffic control
Avionics and missiles
Automobiles
Television
House hold appliances
Air traffic control
EMBEDDED PRESENCE IN
Communica
INDUSTRY
tion
Lighting
Healthcare
Technology
MICROCONTROLLERS
A
64-bit.
MICROPROCESSORS
A
DIFFERENCE B/W
MICROPROCESSOR &
MICROCONTROLLER
Microprocessor
Microcontroller
1. Contains no on chip RAM, ROM, I/O,
TIMER, Serial port .
CPU
RAM
ROM
CPU
General
purpose
uP
RAM
ROM
Address Bus
I/O
TIMER
SERIAL
COM
PORT
I/O
TIMER
SERIAL
COM
PORT
PIC MICROCONTROLLER
PICis a family ofmodified Harvard architecture
microcontrollersmade byMicrochip Technology,
derived from the PIC1650originally developed by
General Instrument's Microelectronics Division. The
name PIC initially referred to "Peripheral Interface
Controller".
The
HARVARD
ARCHITECTU
RE
Uses two separate memory space for program and
instructions and data.`
Non-Volatile
(Flash)
Holds program
instructions
that tell CPU
what to do
Oscillator
PIC16 Core
Working
STATUS
OPTION
ALU
CPU
The Brains
Performs all instruction,
logic, and mathematical
processing
DATA
MEMORY
Volatile
(SRAM)
Holds data
under the
control of
instructions
14-BITS WIDE
Page 0
Stores
code)
Page 1
amount of Program
Memory is device specific
All
Page 2
Page 3
into pages
Page 0
0800h
0FFFh
Page 1
1000h
Opcode
17FFh
Page 2
1800h
1FFFh
Page 3
into BANKs
# of banks
is device dependent (4 banks max)
Data Memory
8-bits Wide
SFR
groups of Registers:
Special Function
Registers (SFR)
Control CPU and Peripheral
functions
General Purpose
Registers (GPR)
Store user defined variables
GPR
Special
Function
Registers
Note
Data
Memory
Addresse General
Purpose
Registers
s
07Fh
Bank
0
080h
Special
Function
Registers
100h Special
Function
Registers
180h Special
Function
Registers
General
Purpose
Registers
General
Purpose
Registers
General
Purpose
Registers
Accesses
Accesses
70h
7Fh
0FFh 70h 7Fh
Accesses
Accesses
70h
7Fh
17Fh 70h 7Fh
Accesses
Accesses
70h
7Fh
1FFh 70h 7Fh
Bank
1
Bank
2
Bank
3
128
Byte
s
Bank 1
Bank 2
Bank 3
000
INDF
INDF
080
INDF
INDF
100
INDF
INDF
180
INDF
INDF
001
TMR0
TMR0
081
OPTION_REG
OPTION_REG
101
TMR0
TMR0
181
OPTION_REG
OPTION_REG
002
PCL
PCL
082
PCL
PCL
102
PCL
PCL
182
PCL
PCL
003
STATUS
STATUS
083
STATUS
STATUS
103
STATUS
STATUS
183
STATUS
STATUS
004
FSR
FSR
084
FSR
FSR
104
FSR
FSR
184
FSR
FSR
005
PORTA
PORTA
085
TRISA
TRISA
105
006
PORTB
PORTB
086
TRISB
TRISB
106
007
PORTC
PORTC
087
TRISC
TRISC
107
187
008
PORTD
PORTD
088
TRISD
TRISD
108
188
009
PORTE
PORTE
089
TRISE
TRISE
109
189
00A
PCLATH
PCLATH
08A
PCLATH
PCLATH
10A
PCLATH
PCLATH
18A
PCLATH
PCLATH
00B
INTCON
INTCON
08B
INTCON
INTCON
10B
INTCON
INTCON
18B
INTCON
INTCON
00C
PIR1
PIR1
08C
PIE1
PIE1
10C
EEDATA
EEDATA
18C
EECON1
EECON1
00D
PIR2
PIR2
08D
PIE2
PIE2
10D
EEADR
EEADR
18D
EECON2
EECON2
185
PORTB
PORTB
186
TRISB
TRISB
STATUS REGISTER
bit 0
IRP
RP1
RP0
Reset Status
Bits
Power Down
TO
RP0
PD (SLEEP instr executed?)
Out
TO Time
(WDT Timeout?)
PD
DC
Zero
(Is the ALU Result 0s?)
STATUS REGISTER
bit 7
IRP
bit 0
RP1 RP0
Data Memory
bank select bit
(Indirect Addressing)
IRP
0
RP0
1
BANKS 0 & 1
BANKS 1 & 2
TO
PD
DC
Data Memory
bank select
bits
(Direct Addressing)
RP1
RP1
0
0
1
1
RP0
RP0
0
1
0
1
BANK0
BANK1
BANK2
BANK3
Byte
Byte Oriented
Oriented Operations
Operations
addwf
f,d
addwf
f,d Add
Add W
W and
and ff
andwf
f,d
andwf
f,d AND
AND W
W with
with ff
clrf
Clear
clrf ff
Clear ff
clrw
Clear
clrw -Clear W
W
comff,d
Complement
comff,d
Complement ff
decf
Decrement
decf f,d
f,d
Decrement ff
decfsz
f,d
decfsz
f,d Decrement
Decrement f,
f, Skip
Skip ifif 00
incf
Increment
incf f,d
f,d
Increment ff
incfsz
f,d
incfsz
f,d Increment
Increment f,
f, Skip
Skip ifif 00
iorwff,d
Inclusive
iorwff,d
Inclusive OR
OR W
W with
with ff
movff,d
Move
movff,d
Move ff
movwf
ff
Move
movwf
Move W
W to
to ff
nop
No
nop -No Operation
Operation
rlf
Rotate
rlf f,d
f,d
Rotate Left
Left ff through
through Carry
Carry
rrf
Rotate
rrf f,d
f,d
Rotate Right
Right ff through
through Carry
Carry
subwf
f,d
subwf
f,d Subtract
Subtract W
W from
from ff
swapf
f,d
swapf
f,d Swap
Swap nibbles
nibbles in
in ff
xorwf
f,d
xorwf
f,d Exclusive
Exclusive OR
OR W
W with
with ff
Bit
Bit Oriented
Oriented Operations
Operations
bcf
Bit
bcf f,b
f,b
Bit Clear
Clear ff
bsf
Bit
bsf f,b
f,b
Bit Set
Set ff
btfsc
Bit
btfscf,b
f,b
Bit Test
Test f,
f, Skip
Skip ifif Clear
Clear
btfss
Bit
btfssf,b
f,b
Bit Test
Test f,
f, Skip
Skip ifif Set
Set
Literal
Literal and
and Control
Control Operations
Operations
addlw
kk
Add
addlw
Add literal
literal and
and W
W
andlw
kk
AND
andlw
AND literal
literal with
with W
W
call
Call
Call subroutine
subroutine
call kk
Clear
clrwdt
-Clear Watchdog
Watchdog Timer
Timer
clrwdt
goto
Go
goto kk
Go to
to address
address
iorlw
Inclusive
iorlwkk
Inclusive OR
OR literal
literal with
with W
W
movlw
kk
Move
movlw
Move literal
literal to
to W
W
retfie
-Return
retfie
Return from
from interrupt
interrupt
retlwk
Return
retlwk
Return with
with literal
literal in
in W
W
return
-Return
return
Return from
from Subroutine
Subroutine
sleep
-Go
sleep
Go into
into standby
standby mode
mode
Subtract
sublw
kk
Subtract W
W from
from literal
literal
sublw
xorlw
kk
Exclusive
xorlw
Exclusive OR
OR literal
literal with
with W
W
I/O Ports
Timers (0, 1, 2)
Counters
Interrupts
Analog-to-Digital
Converter
USART
I2C and SPI Serial
Interface
Program
Interrupt
Program
PORTB Register
RB7
RB7 RB6
RB6 RB5
RB5 RB4
RB4 RB3
RB3 RB2
RB2 RB1
RB1 RB0
RB0
Data
Configures Data
Direction
PIC
ARCHITECTURE
ARCHITECTURE
PIC 16F877A EXPLANATION
having 40 pins.
Oscillator
contains 4 PORTS.
PORT A, PORT B, PORT C, PORT D.
PORT A is analog Port.
PORT B, PORT C, PORT D are digital ports and these
ports can
be treated as input port or output
port.
SOFTWARES USED
SOFTWARE
MPLAB
IDE (v8.10)
COMPILER
HI-TECH C compilers
Information gathered from a global view of the program,
can be used to provide better detection of potential errors
in the users code, and to better optimize the output.
HI-TECH C compilers can deliver denser code, improve
RAM utilization and reduce interrupt latency.
SIMULATOR
PROTEUS 7.7
Proteus
HOME AUTOMATION
USING GSM SYSTEM
Home
INTRODUCTION
OBJECTI
Home Automation savesVE
money by lowering your
BLOCK DIAGRAM
APPLICATIONS
Check up on the babysitter while at work, or your
home while on vacation, through an Internetconnected video camera.
Adjust the thermostat while you lie in bed, or from a
cell phone on your way home from work.
Heat the hot tub or turn on the oven on the way home
from work through the cell phone.
Eliminate the need to walk around the house turning
off lights before exiting the home or going to sleep,
turn off all house lights with the touch of a single
button.
Set a series of events for your morning routine,
designate the thermostat to warm the room, have
lights gradually increase intensity, ensure the coffee
begins brewing and the television turns on.
Reliability
ADVANTAGES
Convenience.
Very
easy installation.
Savings.
DISADVANTAGES
Equipment