SlideShare a Scribd company logo
Microcontroller Lab.
Eng.Khaled Tamizi
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 1
PPU IUT Cachan
Mechanical Department
Mechatronic
1 Microcontroller overview
Microcontroller in an industrial system
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 2
PTC Khadoury IUT Cachan
1.1 Industrial automation systems overview
1.2 Microcontroller architecture
1 Microcontroller overview
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 3
1.3 The pedagogical robot
1.4 Digital Inputs/Outputs
1.5 Embedded C Language
1.1 Industrial automation systems overview
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 4
1.1 Industrial automation systems overview
Energy
Commands Pre-
actuators
Actuators
Energy
other
microcontrollers
other systems
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 5
User
Operative part
Informations
Command
Part
Sensors
Human-
Machine
Interface Interface
Energy
Commands Pre-
Actuators
Actuators
Energy Actuators
Electric
Actuators :
Motors
other
microcontrollers
other systems
1.1 Industrial automation systems overview
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 6
Command
Part
User
Operative part
Informations
Sensors
Human-
Machine
Interface Interface
Command
Part
Pneumatic
or hydraulic
actuators :
cylinders
Energy
Commands Pre-
Actuators
Actuators
Energy
1.1 Industrial automation systems overview
other
microcontrollers
other systems
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 7
User
Operative part
Informations
Sensors
Human-
Machine
Interface Interface
Command
Part
Energy
Commands Pre-
Actuators
Actuators
Energy
Pre-Actuators
Motor
drives / inverters
1.1 Industrial automation systems overview
other
microcontrollers
other systems
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 8
User
Operative part
Informations
Sensors
Human-
Machine
Interface Interface
Command
Part
electropneumatic
or electrohydraulic valves
Energy
Commands Pre-
Actuators
Actuators
Energy
1.1 Industrial automation systems overview
other
microcontrollers
other systems
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 9
User
Operative part
Informations
Sensors
Human-
Machine
Interface Interface
Command
Part
Energy
Commands Pre-
Actuators
Actuators
Energy
other
microcontrollers
other systems
Sensors
optical detectorinductive detector
contact
detector
1.1 Industrial automation systems overview
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 10
User
Operative part
Informations
Sensors
Human-
Machine
Interface Interface
Command
Part
optical detectorinductive detector
Optical encoder
(for motor axes)
detector
Camera
Energy
Commands Pre-
Actuators
Actuators
Energy
1.1 Industrial automation systems overview
other
microcontrollers
other systems
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 11
User
Operative part
Informations
Sensors
Human-
Machine
Interface Interface
Command
Part
Energy
Commands Pre-
Actuators
Actuators
Energy
other
microcontrollers
other systems
Human-Machine Interface
1.1 Industrial automation systems overview
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 12
User
Operative part
Informations
Sensors
Human-
Machine
Interface Interface
Command
Part
Touch screens
Lights and buttons
1.1 Industrial automation systems overview
Which device for command part ?
Few systems : for example Factory Automation
Low development cost
Quick and safe development
PLC
(programmable logic controller)
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 13
Many systems : for example Automotive Brake system
Cheap and small device
(programmable logic controller)
Microcontroller
1.1 Industrial automation systems overview
Microcontroller applications
Automotive : safety, comfort, motor control…
Embedded control : inverter, PLC (!), hover, wash machine
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 14
Automotive : safety, comfort, motor control…
Multimedia devices : phones, PDA, …
1.2 Microcontroller architecture
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 15
Commands
1.2 Microcontroller architecture
Output
communication
peripherals
Central
Processing
Unit
(CPU)
other
command
parts
Program
memory
(Flash)
Data
memory
(RAM)
Databus
control signals
control signals
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 16
information
Output
peripherals
inputs
peripherals
User
Commands
User
information
internal
peripherals
Databus
control signals
control signals
control signals
control signals
Commands
Output
Central
Processing
Unit
(CPU) Digital
Outputs
communication
peripheralsother
command
parts
Program
memory
(Flash)
Data
memory
(RAM)
Databus
1.2 Microcontroller architecture
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 17
Information
User
Commands
User
Information
Output
peripherals
Input
peripherals
Internal
peripherals
Digital
Inputs
Fast
counting
Inputs
Timers
Internal
clock
PWM Outputs
(Pulse Width
Modulation)
Analog to
digital
converter
Databus
Commands
1.2 Microcontroller architecture
Output
communication
peripherals
Central
Processing
Unit
(CPU)
other
command
parts
Program
memory
(Flash)
Data
memory
(RAM)
Databus
control signals
control signals
CPU
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 18
information
Output
peripherals
inputs
peripherals
User
Commands
User
information
internal
peripherals
Databus
control signals
control signals
control signals
control signals
Commands
1.2 Microcontroller architecture
Output
communication
peripherals
Central
Processing
Unit
(CPU)
other
command
parts
Program
memory
(Flash)
Data
memory
(RAM)
Databus
control signals
control signals
CPU
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 19
information
Output
peripherals
inputs
peripherals
User
Commands
User
information
internal
peripherals
Databus
control signals
control signals
control signals
control signals
Commands
1.2 Microcontroller architecture
Output
communication
peripherals
Central
Processing
Unit
(CPU)
other
command
parts
Program
memory
(Flash)
Data
memory
(RAM)
Databus
control signals
control signals
Program
Memory
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 20
information
Output
peripherals
inputs
peripherals
User
Commands
User
information
internal
peripherals
Databus
control signals
control signals
control signals
control signals
Commands
1.2 Microcontroller architecture
Output
communication
peripherals
Central
Processing
Unit
(CPU)
other
command
parts
Data
memory
(RAM)
Databus
control signals
control signals
Program
Memory
Program
memory
(Flash)
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 21
information
Output
peripherals
inputs
peripherals
User
Commands
User
information
internal
peripherals
Databus
control signals
control signals
control signals
control signals
Commands
1.2 Microcontroller architecture
Output
communication
peripherals
Central
Processing
Unit
(CPU)
other
command
parts
Program
memory
(Flash)
Data
memory
(RAM)
Databus
control signals
control signals
Data
Memory
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 22
information
Output
peripherals
inputs
peripherals
User
Commands
User
information
internal
peripherals
Databus
control signals
control signals
control signals
control signals
Commands
1.2 Microcontroller architecture
Output
communication
peripherals
Central
Processing
Unit
(CPU)
other
command
parts
Databus
control signals
Data
Memory
Program
memory
(Flash)
Data
memory
(RAM)
control signals
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 23
information
Output
peripherals
inputs
peripherals
User
Commands
User
information
internal
peripherals
Databus
control signals
control signals
control signals
control signals
Commands
1.2 Microcontroller architecture
Output
communication
peripherals
Central
Processing
Unit
(CPU)
other
command
parts
Program
memory
(Flash)
Data
memory
(RAM)
Databus
control signals
control signals
Data
bus
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 24
information
Output
peripherals
inputs
peripherals
User
Commands
User
information
internal
peripherals
Databus
control signals
control signals
control signals
control signals
Commands
1.2 Microcontroller architecture
Output
communication
peripherals
Central
Processing
Unit
(CPU)
other
command
parts
Databus
control signals
Data
bus
Program
memory
(Flash)
Data
memory
(RAM)
control signals
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 25
information
Output
peripherals
inputs
peripherals
User
Commands
User
information
internal
peripherals
Databus
control signals
control signals
control signals
control signals
1.2 Microcontroller architecture
semiconductors manufacturers
8 bits microcontrollers
- Microchip
- Freescale (ex. Motorola)
- Cypress (µC and PSoC)
- Nec, Toshiba, ST, Philips,…
16 bits microcontrollers
- Renesas (ex. Mitsubishi / Hitachi)
5%
37%
27%
31%
4 bits 8 bits
16 bits 32 bits
2004 : 12 Milliards $
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 26
- Renesas (ex. Mitsubishi / Hitachi)
- Microchip (µC and Digital Signal Controller)
- Infineon (ex. Siemens)
- Atmel, Freescale, Intel, Texas Instruments, Toshiba…
32 bits microcontrollers
- Atmel (Arm core)
- Infineon (TriCore : Risc, Cisc & DSP)
- Freescale (Arm, PowerPC or Coldfire 68000 core)
- Renesas, Nec, Texas Instruments, Toshiba…
source IC Insights
1.3 The pedagogical robot
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 27
1.3 The pedagogical robot
1.3 The pedagogical robot
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 28
1.3 The pedagogical robot
Pulse width
modulation
control
dataUltrasonic
Lead
battery
Microcontroller
Synoptic
Optical
sensors
Analog and digital
sensors data
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 29
dataUltrasonic
sensor
Microcontroller
board
Power
electronic board
Optical
encoders
Line
Obstacle
Angular positions
Buttons LCD
jack &
Commands
Energy
I2C
PWM
Outputs
Digital
communication
peripherals
1.3 The pedagogical robot
Chopper
+ Motors
ultrasonic
telemeter
UART
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 30
LCD
Display
jack &
buttons
line info
Micro-
controller
Digital
Input
Analog to
digital
converter
Digital
outputs
Fast
counting
Inputs
Analog to
digital
converter
Infrared
sensors
Motors
encoders
position
info
Potentio-
meter
1.3 The pedagogical robot
Speed &
position
control
The robot
follows
the line
The robot
starts and
stops
Obstacle
detection
Shortcut
detection
THE
RACE
AnalogtoDigitalConverter
BasicStateMachine
Developmenttools
DigitalInputs/Outputs
Timers/Counters
PulseWidthModulation
CommunicationPeripherals
Interrupts
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 31
AnalogtoDigitalConverter
BasicStateMachine
Developmenttools
DigitalInputs/Outputs
Timers/Counters
PulseWidthModulation
CommunicationPeripherals
Interrupts
1.4 Digital inputs / outputs
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 32
1.4 Digital inputs / outputs
communication
peripherals
Databus
control signals
Program
memory
(Flash)
Data
memory
(RAM)
control signals
Central
Processing
Unit
(CPU)
Output
control signals
VCC = 5V
Example of device plugged on a digital input : a pushbutton
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 33
internal
peripherals
Databus
control signals
control signals
control signals
Output
peripherals
inputs
peripherals
control signals
control signals
VCC = 5V
GND
4,7kOhms
BPx
5 V
i=0 A
VR=0 VVR=5 V
i=1 mA
0 V
pushbutton pressed : logic level 0
pushbutton not pressed : logic level 1
RB3
1.4 Digital inputs / outputs
VCC = 5V
Central
Processing
Unit
(CPU)
Other
peripherals
Example of device plugged on a digital input : a pushbutton
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 34
8-bitdatabus
Enable
reading PORTB
VCC = 5V
GND
4,7kOhms
BPx
RB3
Tri-state buffer
1.4 Digital inputs / outputs
communication
peripherals
Databus
control signals
Program
memory
(Flash)
Data
memory
(RAM)
control signals
Central
Processing
Unit
(CPU)
control signals
Example of device plugged on a digital output : a led
RA6Output 01
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 35
internal
peripherals
Databus
control signals
control signals
control signals
inputs
peripherals
control signals
control signals
GND
Logic level 0 : the led is OFF
Logic level 1 : the led is ON
RA6Output
peripherals
680Ohms
0
VA6=0V
i = 0 mA
1
VA6=5V
i = 6 mA
1.4 Digital inputs / outputs
Central
Processing
Unit
(CPU)
Other
peripherals
Example of device plugged on a digital output : a led
RA6
latch
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 36
8-bitdatabus
writing on
PORTA
GND
RA6
680Ohms
1.4 Digital inputs / outputs
communication
peripherals
Databus
control signals
Program
memory
(Flash)
Data
memory
(RAM)
control signals
Central
Processing
Unit
(CPU)
Example of device plugged on digital in/outputs : LCD display
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 37
internal
peripherals
Databus
control signals
control signals
Input / Output
peripherals
control signals
Parallel Port
4
RD0-RD3
1.4 Digital inputs / outputs
Central
Processing
Unit
(CPU)
Other
peripherals
latch Tri-state
buffer
Example of device plugged on digital in/outputs : LCD display
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 38
8-bitdatabus
writing on
PORTD
reading
PORTD
Tri-state
buffer
RD0
En
En
selecting
input or
output mode
1.4 Digital inputs / outputs
Generic Input / output pin schematic
Tri-state buffer
to select input
or output mode
selecting
output latch
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 39
selecting
mode circuit
Tri-state buffer
for input reading
2nd step, configure RB3 as an input
TRISB x x x 1 x x xx
1.4 Digital inputs / outputs
How to program input reading
(for example the state of a pushbutton bp0 plugged on RB3)
1st step, define a variable to store the state of the pushbutton
char bp0;
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 40
RB3 is configured as an input
char bp0;
TRISB = TRISB | 0b00001000;
3rd step, read the value of RB3
and store it in bp0
bp0 = PORTBbits.RB3;
or
bp0 = PORTB & 0b00001000;
1st step, configure RA6 as an output
TRISA 0 x x x x x xx
1.4 Digital inputs / outputs
How to program output writing
(for example switching on a led plugged on RA6)
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 41
RA6 is configured as an output
TRISA = TRISA & 0b10111111;
2nd step, write a value of RA6
PORTAbits.RA6 = 1;
or
PORTA = PORTA | 0b01000000;
1st step, configure RA6 as an output
TRISA 0 x x x x x xx
1.4 Digital inputs / outputs
How to program output writing
(for example switching off a led plugged on RA6)
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 42
RA6 is configured as an output
TRISA = TRISA & 0b10111111;
2nd step, write a value of RA6
PORTAbits.RA6 = 0;
or
PORTA = PORTA & 0b10111111;
1.5 Embedded program flow chart
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 43
Peripherals configuration
variables definition and initialization
1.5 Flow chart
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 44
Inputs reading
Treatment
Outputs writing
Variables definition and initializations
peripherirals configuration
while (1) {
Inputs reading
main(){
1.5 Flow chart
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 45
Inputs reading
treatments
Outputs writing
}
}

More Related Content

What's hot

Pic18f458
Pic18f458Pic18f458
Ee6008 mcbsd notes
Ee6008 mcbsd notesEe6008 mcbsd notes
Ee6008 mcbsd notes
vlkumashankardeekshi th
 
PIC microcontroller review
PIC microcontroller reviewPIC microcontroller review
PIC microcontroller review
Mohsen Sarakbi
 
Microchip's PIC Micro Controller
Microchip's PIC Micro ControllerMicrochip's PIC Micro Controller
Microchip's PIC Micro Controller
Midhu S V Unnithan
 
Tutorial dec0604(print24) Programming a PIC
Tutorial dec0604(print24) Programming a PICTutorial dec0604(print24) Programming a PIC
Tutorial dec0604(print24) Programming a PIC
Muhammad Khan
 
pic architecture
pic architecturepic architecture
pic architecture
gojan college
 
Introduction to pic microcontroller
Introduction to pic microcontrollerIntroduction to pic microcontroller
Introduction to pic microcontroller
RAMPRAKASHT1
 
Unit 4
Unit 4Unit 4
Unit 4
tamilnesaner
 
Embedded systemsc
Embedded systemscEmbedded systemsc
Embedded systemsc
idris kamaruddin
 
Chp4 introduction to the pic microcontroller copy
Chp4 introduction to the pic microcontroller   copyChp4 introduction to the pic microcontroller   copy
Chp4 introduction to the pic microcontroller copy
mkazree
 
PIC 16F877 micro controller by Gaurav raikar
PIC 16F877 micro controller by Gaurav raikarPIC 16F877 micro controller by Gaurav raikar
PIC 16F877 micro controller by Gaurav raikar
GauravRaikar3
 
Pic microcontroller [autosaved] [autosaved]
Pic microcontroller [autosaved] [autosaved]Pic microcontroller [autosaved] [autosaved]
Pic microcontroller [autosaved] [autosaved]
gauravholani
 
PIC Introduction and explained in detailed
PIC Introduction and explained in detailedPIC Introduction and explained in detailed
PIC Introduction and explained in detailed
Ankita Tiwari
 
Unit III ARM Interface and ARM Programming
Unit III ARM Interface and ARM Programming Unit III ARM Interface and ARM Programming
Unit III ARM Interface and ARM Programming
Dr. Pankaj Zope
 
Atmel and pic microcontroller
Atmel and pic microcontrollerAtmel and pic microcontroller
Atmel and pic microcontroller
Tearsome Llantada
 
Presentation
PresentationPresentation
8051 microcontrollers
8051 microcontrollers8051 microcontrollers
8051 microcontrollers
Chih-Hsiang Tang
 
computer architecture 4
computer architecture 4 computer architecture 4
computer architecture 4
Dr.Umadevi V
 
Computer architecture 3
Computer architecture 3Computer architecture 3
Computer architecture 3
Dr.Umadevi V
 
Unit 3 mpmc
Unit 3 mpmcUnit 3 mpmc
Unit 3 mpmc
tamilnesaner
 

What's hot (20)

Pic18f458
Pic18f458Pic18f458
Pic18f458
 
Ee6008 mcbsd notes
Ee6008 mcbsd notesEe6008 mcbsd notes
Ee6008 mcbsd notes
 
PIC microcontroller review
PIC microcontroller reviewPIC microcontroller review
PIC microcontroller review
 
Microchip's PIC Micro Controller
Microchip's PIC Micro ControllerMicrochip's PIC Micro Controller
Microchip's PIC Micro Controller
 
Tutorial dec0604(print24) Programming a PIC
Tutorial dec0604(print24) Programming a PICTutorial dec0604(print24) Programming a PIC
Tutorial dec0604(print24) Programming a PIC
 
pic architecture
pic architecturepic architecture
pic architecture
 
Introduction to pic microcontroller
Introduction to pic microcontrollerIntroduction to pic microcontroller
Introduction to pic microcontroller
 
Unit 4
Unit 4Unit 4
Unit 4
 
Embedded systemsc
Embedded systemscEmbedded systemsc
Embedded systemsc
 
Chp4 introduction to the pic microcontroller copy
Chp4 introduction to the pic microcontroller   copyChp4 introduction to the pic microcontroller   copy
Chp4 introduction to the pic microcontroller copy
 
PIC 16F877 micro controller by Gaurav raikar
PIC 16F877 micro controller by Gaurav raikarPIC 16F877 micro controller by Gaurav raikar
PIC 16F877 micro controller by Gaurav raikar
 
Pic microcontroller [autosaved] [autosaved]
Pic microcontroller [autosaved] [autosaved]Pic microcontroller [autosaved] [autosaved]
Pic microcontroller [autosaved] [autosaved]
 
PIC Introduction and explained in detailed
PIC Introduction and explained in detailedPIC Introduction and explained in detailed
PIC Introduction and explained in detailed
 
Unit III ARM Interface and ARM Programming
Unit III ARM Interface and ARM Programming Unit III ARM Interface and ARM Programming
Unit III ARM Interface and ARM Programming
 
Atmel and pic microcontroller
Atmel and pic microcontrollerAtmel and pic microcontroller
Atmel and pic microcontroller
 
Presentation
PresentationPresentation
Presentation
 
8051 microcontrollers
8051 microcontrollers8051 microcontrollers
8051 microcontrollers
 
computer architecture 4
computer architecture 4 computer architecture 4
computer architecture 4
 
Computer architecture 3
Computer architecture 3Computer architecture 3
Computer architecture 3
 
Unit 3 mpmc
Unit 3 mpmcUnit 3 mpmc
Unit 3 mpmc
 

Viewers also liked

Lecture 2 timers, pwm, state machine IN PIC
Lecture 2   timers, pwm, state machine IN PIC Lecture 2   timers, pwm, state machine IN PIC
Lecture 2 timers, pwm, state machine IN PIC
أشرف أمجد الشريف
 
Single phase im-lecture_10_1
Single phase im-lecture_10_1Single phase im-lecture_10_1
Single phase im-lecture_10_1
أشرف أمجد الشريف
 
pic 18
pic 18pic 18
Lecture 4 i2 c bus & interrupts
Lecture 4   i2 c bus & interruptsLecture 4   i2 c bus & interrupts
Lecture 4 i2 c bus & interrupts
أشرف أمجد الشريف
 
Lecture 3a analog to digital converter
Lecture 3a   analog to digital converterLecture 3a   analog to digital converter
Lecture 3a analog to digital converter
أشرف أمجد الشريف
 
Renesas RX23T Inverter Kit - Deep dive
Renesas RX23T Inverter Kit - Deep diveRenesas RX23T Inverter Kit - Deep dive
Renesas RX23T Inverter Kit - Deep dive
Renesas Electronics Corporation
 
Micro controller
Micro controllerMicro controller
Micro controller
محمدعبد الحى
 
The 8051 microcontroler based embedded systems
The 8051 microcontroler based embedded systemsThe 8051 microcontroler based embedded systems
The 8051 microcontroler based embedded systems
manishpatel_79
 
Embedded system (Chapter 2) part A
Embedded system (Chapter 2) part AEmbedded system (Chapter 2) part A
Embedded system (Chapter 2) part A
Ikhwan_Fakrudin
 
Embedded system (Chapter 1)
Embedded system (Chapter 1)Embedded system (Chapter 1)
Embedded system (Chapter 1)
Ikhwan_Fakrudin
 
Singletypes
SingletypesSingletypes
Singletypes
Ramesh Babu
 
Braking performance 4
Braking  performance 4Braking  performance 4
Braking performance 4
أشرف أمجد الشريف
 
The Uses of Nanosensors: From Smart Dust to Nano “Mother Ships”
The Uses of Nanosensors: From Smart Dust to Nano “Mother Ships”The Uses of Nanosensors: From Smart Dust to Nano “Mother Ships”
The Uses of Nanosensors: From Smart Dust to Nano “Mother Ships”
أشرف أمجد الشريف
 
Being a business assistant with element14 in krakow
Being a business assistant with element14 in krakowBeing a business assistant with element14 in krakow
Being a business assistant with element14 in krakow
Premier Farnell
 
Single phase i.m.
Single phase i.m.Single phase i.m.
Single phase i.m.
patel andil
 
Hydrolic Fluid purpose & properties (chapter 2)
Hydrolic Fluid purpose & properties (chapter 2)Hydrolic Fluid purpose & properties (chapter 2)
Hydrolic Fluid purpose & properties (chapter 2)
أشرف أمجد الشريف
 
Introduction to Microcontroller
Introduction to MicrocontrollerIntroduction to Microcontroller
Introduction to Microcontroller
Pantech ProLabs India Pvt Ltd
 
Hydraulic pumps performance and Characteristics
Hydraulic pumps performance and CharacteristicsHydraulic pumps performance and Characteristics
Hydraulic pumps performance and Characteristics
أشرف أمجد الشريف
 
VEHICLE ROLLOVER ANALYSIS
VEHICLE ROLLOVER ANALYSISVEHICLE ROLLOVER ANALYSIS
VEHICLE ROLLOVER ANALYSIS
أشرف أمجد الشريف
 
SINGLE PHASE INDUCTION MOTOR
SINGLE PHASE INDUCTION MOTORSINGLE PHASE INDUCTION MOTOR
SINGLE PHASE INDUCTION MOTOR
SUSMIT SARKAR
 

Viewers also liked (20)

Lecture 2 timers, pwm, state machine IN PIC
Lecture 2   timers, pwm, state machine IN PIC Lecture 2   timers, pwm, state machine IN PIC
Lecture 2 timers, pwm, state machine IN PIC
 
Single phase im-lecture_10_1
Single phase im-lecture_10_1Single phase im-lecture_10_1
Single phase im-lecture_10_1
 
pic 18
pic 18pic 18
pic 18
 
Lecture 4 i2 c bus & interrupts
Lecture 4   i2 c bus & interruptsLecture 4   i2 c bus & interrupts
Lecture 4 i2 c bus & interrupts
 
Lecture 3a analog to digital converter
Lecture 3a   analog to digital converterLecture 3a   analog to digital converter
Lecture 3a analog to digital converter
 
Renesas RX23T Inverter Kit - Deep dive
Renesas RX23T Inverter Kit - Deep diveRenesas RX23T Inverter Kit - Deep dive
Renesas RX23T Inverter Kit - Deep dive
 
Micro controller
Micro controllerMicro controller
Micro controller
 
The 8051 microcontroler based embedded systems
The 8051 microcontroler based embedded systemsThe 8051 microcontroler based embedded systems
The 8051 microcontroler based embedded systems
 
Embedded system (Chapter 2) part A
Embedded system (Chapter 2) part AEmbedded system (Chapter 2) part A
Embedded system (Chapter 2) part A
 
Embedded system (Chapter 1)
Embedded system (Chapter 1)Embedded system (Chapter 1)
Embedded system (Chapter 1)
 
Singletypes
SingletypesSingletypes
Singletypes
 
Braking performance 4
Braking  performance 4Braking  performance 4
Braking performance 4
 
The Uses of Nanosensors: From Smart Dust to Nano “Mother Ships”
The Uses of Nanosensors: From Smart Dust to Nano “Mother Ships”The Uses of Nanosensors: From Smart Dust to Nano “Mother Ships”
The Uses of Nanosensors: From Smart Dust to Nano “Mother Ships”
 
Being a business assistant with element14 in krakow
Being a business assistant with element14 in krakowBeing a business assistant with element14 in krakow
Being a business assistant with element14 in krakow
 
Single phase i.m.
Single phase i.m.Single phase i.m.
Single phase i.m.
 
Hydrolic Fluid purpose & properties (chapter 2)
Hydrolic Fluid purpose & properties (chapter 2)Hydrolic Fluid purpose & properties (chapter 2)
Hydrolic Fluid purpose & properties (chapter 2)
 
Introduction to Microcontroller
Introduction to MicrocontrollerIntroduction to Microcontroller
Introduction to Microcontroller
 
Hydraulic pumps performance and Characteristics
Hydraulic pumps performance and CharacteristicsHydraulic pumps performance and Characteristics
Hydraulic pumps performance and Characteristics
 
VEHICLE ROLLOVER ANALYSIS
VEHICLE ROLLOVER ANALYSISVEHICLE ROLLOVER ANALYSIS
VEHICLE ROLLOVER ANALYSIS
 
SINGLE PHASE INDUCTION MOTOR
SINGLE PHASE INDUCTION MOTORSINGLE PHASE INDUCTION MOTOR
SINGLE PHASE INDUCTION MOTOR
 

Similar to Lecture 1 microcontroller overview

Lecture1 microcontrolleroverview-afdhalmesin2008usk
Lecture1 microcontrolleroverview-afdhalmesin2008uskLecture1 microcontrolleroverview-afdhalmesin2008usk
Lecture1 microcontrolleroverview-afdhalmesin2008usk
afdhal teknik
 
automation plc - scada
automation plc - scadaautomation plc - scada
automation plc - scada
Saif Akhtar
 
INDUSTRIAL AUTOMATION ( SHUBHAM KURDIYA)
INDUSTRIAL AUTOMATION ( SHUBHAM KURDIYA)INDUSTRIAL AUTOMATION ( SHUBHAM KURDIYA)
INDUSTRIAL AUTOMATION ( SHUBHAM KURDIYA)
Řőmĕő Šhűbhąm
 
Plc 7 my saminar plc
Plc 7  my saminar plcPlc 7  my saminar plc
Plc 7 my saminar plc
Rameez Raja
 
PLC SCADA report Paras Singhal
PLC SCADA report Paras SinghalPLC SCADA report Paras Singhal
PLC SCADA report Paras Singhal
PARAS SINGHAL
 
PLC AND SCADA
PLC AND SCADA PLC AND SCADA
PLC AND SCADA
Ashutosh kumar
 
Automation PLC & SCADA
Automation PLC & SCADA Automation PLC & SCADA
Automation PLC & SCADA
NITISH SINGH
 
Power point presentation on Industrial Automation
Power point presentation on Industrial AutomationPower point presentation on Industrial Automation
Power point presentation on Industrial Automation
JaiPrakash337
 
Feasible Interfacing and Programming of Industrial Control Technology Unit wi...
Feasible Interfacing and Programming of Industrial Control Technology Unit wi...Feasible Interfacing and Programming of Industrial Control Technology Unit wi...
Feasible Interfacing and Programming of Industrial Control Technology Unit wi...
theijes
 
PLC programmable logic controller (MSME)
PLC programmable logic controller (MSME) PLC programmable logic controller (MSME)
PLC programmable logic controller (MSME)
ankit kaim
 
A study on PLC basic
A study on PLC basicA study on PLC basic
A study on PLC basic
Md. Shoheluzzaman
 
Ekeeda - Mechatronics Engineering - Introduction to Mechatronics
Ekeeda - Mechatronics Engineering - Introduction to MechatronicsEkeeda - Mechatronics Engineering - Introduction to Mechatronics
Ekeeda - Mechatronics Engineering - Introduction to Mechatronics
EkeedaPvtLtd
 
1 introduction to plc and its programming-1
1 introduction to plc and its programming-11 introduction to plc and its programming-1
1 introduction to plc and its programming-1
VishalGupta969
 
plc scada
 plc scada plc scada
plc scada
Ayush Gautam
 
dokumen.tips_industrial-automation-ppt.ppt
dokumen.tips_industrial-automation-ppt.pptdokumen.tips_industrial-automation-ppt.ppt
dokumen.tips_industrial-automation-ppt.ppt
ssuser8d8124
 
Automation systems
Automation systemsAutomation systems
Automation systems
Nishanth Antan
 
The solution selling kits of PC-based Automation_20160404_Eric Lo
The solution selling kits of PC-based Automation_20160404_Eric LoThe solution selling kits of PC-based Automation_20160404_Eric Lo
The solution selling kits of PC-based Automation_20160404_Eric Lo
Eric Lo
 
Programmable Logic Controllers
Programmable Logic ControllersProgrammable Logic Controllers
Programmable Logic Controllers
Anchit Walia
 
Ankit singh rana plc
Ankit singh rana plc Ankit singh rana plc
Ankit singh rana plc
ankits4r3
 
Plc presentation
Plc presentationPlc presentation
Plc presentation
Akshay Modi
 

Similar to Lecture 1 microcontroller overview (20)

Lecture1 microcontrolleroverview-afdhalmesin2008usk
Lecture1 microcontrolleroverview-afdhalmesin2008uskLecture1 microcontrolleroverview-afdhalmesin2008usk
Lecture1 microcontrolleroverview-afdhalmesin2008usk
 
automation plc - scada
automation plc - scadaautomation plc - scada
automation plc - scada
 
INDUSTRIAL AUTOMATION ( SHUBHAM KURDIYA)
INDUSTRIAL AUTOMATION ( SHUBHAM KURDIYA)INDUSTRIAL AUTOMATION ( SHUBHAM KURDIYA)
INDUSTRIAL AUTOMATION ( SHUBHAM KURDIYA)
 
Plc 7 my saminar plc
Plc 7  my saminar plcPlc 7  my saminar plc
Plc 7 my saminar plc
 
PLC SCADA report Paras Singhal
PLC SCADA report Paras SinghalPLC SCADA report Paras Singhal
PLC SCADA report Paras Singhal
 
PLC AND SCADA
PLC AND SCADA PLC AND SCADA
PLC AND SCADA
 
Automation PLC & SCADA
Automation PLC & SCADA Automation PLC & SCADA
Automation PLC & SCADA
 
Power point presentation on Industrial Automation
Power point presentation on Industrial AutomationPower point presentation on Industrial Automation
Power point presentation on Industrial Automation
 
Feasible Interfacing and Programming of Industrial Control Technology Unit wi...
Feasible Interfacing and Programming of Industrial Control Technology Unit wi...Feasible Interfacing and Programming of Industrial Control Technology Unit wi...
Feasible Interfacing and Programming of Industrial Control Technology Unit wi...
 
PLC programmable logic controller (MSME)
PLC programmable logic controller (MSME) PLC programmable logic controller (MSME)
PLC programmable logic controller (MSME)
 
A study on PLC basic
A study on PLC basicA study on PLC basic
A study on PLC basic
 
Ekeeda - Mechatronics Engineering - Introduction to Mechatronics
Ekeeda - Mechatronics Engineering - Introduction to MechatronicsEkeeda - Mechatronics Engineering - Introduction to Mechatronics
Ekeeda - Mechatronics Engineering - Introduction to Mechatronics
 
1 introduction to plc and its programming-1
1 introduction to plc and its programming-11 introduction to plc and its programming-1
1 introduction to plc and its programming-1
 
plc scada
 plc scada plc scada
plc scada
 
dokumen.tips_industrial-automation-ppt.ppt
dokumen.tips_industrial-automation-ppt.pptdokumen.tips_industrial-automation-ppt.ppt
dokumen.tips_industrial-automation-ppt.ppt
 
Automation systems
Automation systemsAutomation systems
Automation systems
 
The solution selling kits of PC-based Automation_20160404_Eric Lo
The solution selling kits of PC-based Automation_20160404_Eric LoThe solution selling kits of PC-based Automation_20160404_Eric Lo
The solution selling kits of PC-based Automation_20160404_Eric Lo
 
Programmable Logic Controllers
Programmable Logic ControllersProgrammable Logic Controllers
Programmable Logic Controllers
 
Ankit singh rana plc
Ankit singh rana plc Ankit singh rana plc
Ankit singh rana plc
 
Plc presentation
Plc presentationPlc presentation
Plc presentation
 

Recently uploaded

Creative Web Design Company in Singapore
Creative Web Design Company in SingaporeCreative Web Design Company in Singapore
Creative Web Design Company in Singapore
techboxsqauremedia
 
Evgen Osmak: Methods of key project parameters estimation: from the shaman-in...
Evgen Osmak: Methods of key project parameters estimation: from the shaman-in...Evgen Osmak: Methods of key project parameters estimation: from the shaman-in...
Evgen Osmak: Methods of key project parameters estimation: from the shaman-in...
Lviv Startup Club
 
一比一原版新西兰奥塔哥大学毕业证(otago毕业证)如何办理
一比一原版新西兰奥塔哥大学毕业证(otago毕业证)如何办理一比一原版新西兰奥塔哥大学毕业证(otago毕业证)如何办理
一比一原版新西兰奥塔哥大学毕业证(otago毕业证)如何办理
taqyea
 
Best Forex Brokers Comparison in INDIA 2024
Best Forex Brokers Comparison in INDIA 2024Best Forex Brokers Comparison in INDIA 2024
Best Forex Brokers Comparison in INDIA 2024
Top Forex Brokers Review
 
ikea_woodgreen_petscharity_cat-alogue_digital.pdf
ikea_woodgreen_petscharity_cat-alogue_digital.pdfikea_woodgreen_petscharity_cat-alogue_digital.pdf
ikea_woodgreen_petscharity_cat-alogue_digital.pdf
agatadrynko
 
Observation Lab PowerPoint Assignment for TEM 431
Observation Lab PowerPoint Assignment for TEM 431Observation Lab PowerPoint Assignment for TEM 431
Observation Lab PowerPoint Assignment for TEM 431
ecamare2
 
Business storytelling: key ingredients to a story
Business storytelling: key ingredients to a storyBusiness storytelling: key ingredients to a story
Business storytelling: key ingredients to a story
Alexandra Fulford
 
2022 Vintage Roman Numerals Men Rings
2022 Vintage Roman  Numerals  Men  Rings2022 Vintage Roman  Numerals  Men  Rings
2022 Vintage Roman Numerals Men Rings
aragme
 
Zodiac Signs and Food Preferences_ What Your Sign Says About Your Taste
Zodiac Signs and Food Preferences_ What Your Sign Says About Your TasteZodiac Signs and Food Preferences_ What Your Sign Says About Your Taste
Zodiac Signs and Food Preferences_ What Your Sign Says About Your Taste
my Pandit
 
Anny Serafina Love - Letter of Recommendation by Kellen Harkins, MS.
Anny Serafina Love - Letter of Recommendation by Kellen Harkins, MS.Anny Serafina Love - Letter of Recommendation by Kellen Harkins, MS.
Anny Serafina Love - Letter of Recommendation by Kellen Harkins, MS.
AnnySerafinaLove
 
Organizational Change Leadership Agile Tour Geneve 2024
Organizational Change Leadership Agile Tour Geneve 2024Organizational Change Leadership Agile Tour Geneve 2024
Organizational Change Leadership Agile Tour Geneve 2024
Kirill Klimov
 
Call 8867766396 Satta Matka Dpboss Matka Guessing Satta batta Matka 420 Satta...
Call 8867766396 Satta Matka Dpboss Matka Guessing Satta batta Matka 420 Satta...Call 8867766396 Satta Matka Dpboss Matka Guessing Satta batta Matka 420 Satta...
Call 8867766396 Satta Matka Dpboss Matka Guessing Satta batta Matka 420 Satta...
bosssp10
 
Authentically Social Presented by Corey Perlman
Authentically Social Presented by Corey PerlmanAuthentically Social Presented by Corey Perlman
Authentically Social Presented by Corey Perlman
Corey Perlman, Social Media Speaker and Consultant
 
buy old yahoo accounts buy yahoo accounts
buy old yahoo accounts buy yahoo accountsbuy old yahoo accounts buy yahoo accounts
buy old yahoo accounts buy yahoo accounts
Susan Laney
 
Best practices for project execution and delivery
Best practices for project execution and deliveryBest practices for project execution and delivery
Best practices for project execution and delivery
CLIVE MINCHIN
 
Building Your Employer Brand with Social Media
Building Your Employer Brand with Social MediaBuilding Your Employer Brand with Social Media
Building Your Employer Brand with Social Media
LuanWise
 
Income Tax exemption for Start up : Section 80 IAC
Income Tax  exemption for Start up : Section 80 IACIncome Tax  exemption for Start up : Section 80 IAC
Income Tax exemption for Start up : Section 80 IAC
CA Dr. Prithvi Ranjan Parhi
 
Understanding User Needs and Satisfying Them
Understanding User Needs and Satisfying ThemUnderstanding User Needs and Satisfying Them
Understanding User Needs and Satisfying Them
Aggregage
 
Mastering B2B Payments Webinar from BlueSnap
Mastering B2B Payments Webinar from BlueSnapMastering B2B Payments Webinar from BlueSnap
Mastering B2B Payments Webinar from BlueSnap
Norma Mushkat Gaffin
 
The Evolution and Impact of OTT Platforms: A Deep Dive into the Future of Ent...
The Evolution and Impact of OTT Platforms: A Deep Dive into the Future of Ent...The Evolution and Impact of OTT Platforms: A Deep Dive into the Future of Ent...
The Evolution and Impact of OTT Platforms: A Deep Dive into the Future of Ent...
ABHILASH DUTTA
 

Recently uploaded (20)

Creative Web Design Company in Singapore
Creative Web Design Company in SingaporeCreative Web Design Company in Singapore
Creative Web Design Company in Singapore
 
Evgen Osmak: Methods of key project parameters estimation: from the shaman-in...
Evgen Osmak: Methods of key project parameters estimation: from the shaman-in...Evgen Osmak: Methods of key project parameters estimation: from the shaman-in...
Evgen Osmak: Methods of key project parameters estimation: from the shaman-in...
 
一比一原版新西兰奥塔哥大学毕业证(otago毕业证)如何办理
一比一原版新西兰奥塔哥大学毕业证(otago毕业证)如何办理一比一原版新西兰奥塔哥大学毕业证(otago毕业证)如何办理
一比一原版新西兰奥塔哥大学毕业证(otago毕业证)如何办理
 
Best Forex Brokers Comparison in INDIA 2024
Best Forex Brokers Comparison in INDIA 2024Best Forex Brokers Comparison in INDIA 2024
Best Forex Brokers Comparison in INDIA 2024
 
ikea_woodgreen_petscharity_cat-alogue_digital.pdf
ikea_woodgreen_petscharity_cat-alogue_digital.pdfikea_woodgreen_petscharity_cat-alogue_digital.pdf
ikea_woodgreen_petscharity_cat-alogue_digital.pdf
 
Observation Lab PowerPoint Assignment for TEM 431
Observation Lab PowerPoint Assignment for TEM 431Observation Lab PowerPoint Assignment for TEM 431
Observation Lab PowerPoint Assignment for TEM 431
 
Business storytelling: key ingredients to a story
Business storytelling: key ingredients to a storyBusiness storytelling: key ingredients to a story
Business storytelling: key ingredients to a story
 
2022 Vintage Roman Numerals Men Rings
2022 Vintage Roman  Numerals  Men  Rings2022 Vintage Roman  Numerals  Men  Rings
2022 Vintage Roman Numerals Men Rings
 
Zodiac Signs and Food Preferences_ What Your Sign Says About Your Taste
Zodiac Signs and Food Preferences_ What Your Sign Says About Your TasteZodiac Signs and Food Preferences_ What Your Sign Says About Your Taste
Zodiac Signs and Food Preferences_ What Your Sign Says About Your Taste
 
Anny Serafina Love - Letter of Recommendation by Kellen Harkins, MS.
Anny Serafina Love - Letter of Recommendation by Kellen Harkins, MS.Anny Serafina Love - Letter of Recommendation by Kellen Harkins, MS.
Anny Serafina Love - Letter of Recommendation by Kellen Harkins, MS.
 
Organizational Change Leadership Agile Tour Geneve 2024
Organizational Change Leadership Agile Tour Geneve 2024Organizational Change Leadership Agile Tour Geneve 2024
Organizational Change Leadership Agile Tour Geneve 2024
 
Call 8867766396 Satta Matka Dpboss Matka Guessing Satta batta Matka 420 Satta...
Call 8867766396 Satta Matka Dpboss Matka Guessing Satta batta Matka 420 Satta...Call 8867766396 Satta Matka Dpboss Matka Guessing Satta batta Matka 420 Satta...
Call 8867766396 Satta Matka Dpboss Matka Guessing Satta batta Matka 420 Satta...
 
Authentically Social Presented by Corey Perlman
Authentically Social Presented by Corey PerlmanAuthentically Social Presented by Corey Perlman
Authentically Social Presented by Corey Perlman
 
buy old yahoo accounts buy yahoo accounts
buy old yahoo accounts buy yahoo accountsbuy old yahoo accounts buy yahoo accounts
buy old yahoo accounts buy yahoo accounts
 
Best practices for project execution and delivery
Best practices for project execution and deliveryBest practices for project execution and delivery
Best practices for project execution and delivery
 
Building Your Employer Brand with Social Media
Building Your Employer Brand with Social MediaBuilding Your Employer Brand with Social Media
Building Your Employer Brand with Social Media
 
Income Tax exemption for Start up : Section 80 IAC
Income Tax  exemption for Start up : Section 80 IACIncome Tax  exemption for Start up : Section 80 IAC
Income Tax exemption for Start up : Section 80 IAC
 
Understanding User Needs and Satisfying Them
Understanding User Needs and Satisfying ThemUnderstanding User Needs and Satisfying Them
Understanding User Needs and Satisfying Them
 
Mastering B2B Payments Webinar from BlueSnap
Mastering B2B Payments Webinar from BlueSnapMastering B2B Payments Webinar from BlueSnap
Mastering B2B Payments Webinar from BlueSnap
 
The Evolution and Impact of OTT Platforms: A Deep Dive into the Future of Ent...
The Evolution and Impact of OTT Platforms: A Deep Dive into the Future of Ent...The Evolution and Impact of OTT Platforms: A Deep Dive into the Future of Ent...
The Evolution and Impact of OTT Platforms: A Deep Dive into the Future of Ent...
 

Lecture 1 microcontroller overview

  • 1. Microcontroller Lab. Eng.Khaled Tamizi Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 1 PPU IUT Cachan Mechanical Department Mechatronic
  • 2. 1 Microcontroller overview Microcontroller in an industrial system Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 2 PTC Khadoury IUT Cachan
  • 3. 1.1 Industrial automation systems overview 1.2 Microcontroller architecture 1 Microcontroller overview Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 3 1.3 The pedagogical robot 1.4 Digital Inputs/Outputs 1.5 Embedded C Language
  • 4. 1.1 Industrial automation systems overview Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 4
  • 5. 1.1 Industrial automation systems overview Energy Commands Pre- actuators Actuators Energy other microcontrollers other systems Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 5 User Operative part Informations Command Part Sensors Human- Machine Interface Interface
  • 6. Energy Commands Pre- Actuators Actuators Energy Actuators Electric Actuators : Motors other microcontrollers other systems 1.1 Industrial automation systems overview Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 6 Command Part User Operative part Informations Sensors Human- Machine Interface Interface Command Part Pneumatic or hydraulic actuators : cylinders
  • 7. Energy Commands Pre- Actuators Actuators Energy 1.1 Industrial automation systems overview other microcontrollers other systems Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 7 User Operative part Informations Sensors Human- Machine Interface Interface Command Part
  • 8. Energy Commands Pre- Actuators Actuators Energy Pre-Actuators Motor drives / inverters 1.1 Industrial automation systems overview other microcontrollers other systems Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 8 User Operative part Informations Sensors Human- Machine Interface Interface Command Part electropneumatic or electrohydraulic valves
  • 9. Energy Commands Pre- Actuators Actuators Energy 1.1 Industrial automation systems overview other microcontrollers other systems Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 9 User Operative part Informations Sensors Human- Machine Interface Interface Command Part
  • 10. Energy Commands Pre- Actuators Actuators Energy other microcontrollers other systems Sensors optical detectorinductive detector contact detector 1.1 Industrial automation systems overview Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 10 User Operative part Informations Sensors Human- Machine Interface Interface Command Part optical detectorinductive detector Optical encoder (for motor axes) detector Camera
  • 11. Energy Commands Pre- Actuators Actuators Energy 1.1 Industrial automation systems overview other microcontrollers other systems Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 11 User Operative part Informations Sensors Human- Machine Interface Interface Command Part
  • 12. Energy Commands Pre- Actuators Actuators Energy other microcontrollers other systems Human-Machine Interface 1.1 Industrial automation systems overview Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 12 User Operative part Informations Sensors Human- Machine Interface Interface Command Part Touch screens Lights and buttons
  • 13. 1.1 Industrial automation systems overview Which device for command part ? Few systems : for example Factory Automation Low development cost Quick and safe development PLC (programmable logic controller) Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 13 Many systems : for example Automotive Brake system Cheap and small device (programmable logic controller) Microcontroller
  • 14. 1.1 Industrial automation systems overview Microcontroller applications Automotive : safety, comfort, motor control… Embedded control : inverter, PLC (!), hover, wash machine Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 14 Automotive : safety, comfort, motor control… Multimedia devices : phones, PDA, …
  • 15. 1.2 Microcontroller architecture Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 15
  • 16. Commands 1.2 Microcontroller architecture Output communication peripherals Central Processing Unit (CPU) other command parts Program memory (Flash) Data memory (RAM) Databus control signals control signals Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 16 information Output peripherals inputs peripherals User Commands User information internal peripherals Databus control signals control signals control signals control signals
  • 17. Commands Output Central Processing Unit (CPU) Digital Outputs communication peripheralsother command parts Program memory (Flash) Data memory (RAM) Databus 1.2 Microcontroller architecture Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 17 Information User Commands User Information Output peripherals Input peripherals Internal peripherals Digital Inputs Fast counting Inputs Timers Internal clock PWM Outputs (Pulse Width Modulation) Analog to digital converter Databus
  • 18. Commands 1.2 Microcontroller architecture Output communication peripherals Central Processing Unit (CPU) other command parts Program memory (Flash) Data memory (RAM) Databus control signals control signals CPU Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 18 information Output peripherals inputs peripherals User Commands User information internal peripherals Databus control signals control signals control signals control signals
  • 19. Commands 1.2 Microcontroller architecture Output communication peripherals Central Processing Unit (CPU) other command parts Program memory (Flash) Data memory (RAM) Databus control signals control signals CPU Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 19 information Output peripherals inputs peripherals User Commands User information internal peripherals Databus control signals control signals control signals control signals
  • 20. Commands 1.2 Microcontroller architecture Output communication peripherals Central Processing Unit (CPU) other command parts Program memory (Flash) Data memory (RAM) Databus control signals control signals Program Memory Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 20 information Output peripherals inputs peripherals User Commands User information internal peripherals Databus control signals control signals control signals control signals
  • 21. Commands 1.2 Microcontroller architecture Output communication peripherals Central Processing Unit (CPU) other command parts Data memory (RAM) Databus control signals control signals Program Memory Program memory (Flash) Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 21 information Output peripherals inputs peripherals User Commands User information internal peripherals Databus control signals control signals control signals control signals
  • 22. Commands 1.2 Microcontroller architecture Output communication peripherals Central Processing Unit (CPU) other command parts Program memory (Flash) Data memory (RAM) Databus control signals control signals Data Memory Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 22 information Output peripherals inputs peripherals User Commands User information internal peripherals Databus control signals control signals control signals control signals
  • 23. Commands 1.2 Microcontroller architecture Output communication peripherals Central Processing Unit (CPU) other command parts Databus control signals Data Memory Program memory (Flash) Data memory (RAM) control signals Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 23 information Output peripherals inputs peripherals User Commands User information internal peripherals Databus control signals control signals control signals control signals
  • 24. Commands 1.2 Microcontroller architecture Output communication peripherals Central Processing Unit (CPU) other command parts Program memory (Flash) Data memory (RAM) Databus control signals control signals Data bus Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 24 information Output peripherals inputs peripherals User Commands User information internal peripherals Databus control signals control signals control signals control signals
  • 25. Commands 1.2 Microcontroller architecture Output communication peripherals Central Processing Unit (CPU) other command parts Databus control signals Data bus Program memory (Flash) Data memory (RAM) control signals Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 25 information Output peripherals inputs peripherals User Commands User information internal peripherals Databus control signals control signals control signals control signals
  • 26. 1.2 Microcontroller architecture semiconductors manufacturers 8 bits microcontrollers - Microchip - Freescale (ex. Motorola) - Cypress (µC and PSoC) - Nec, Toshiba, ST, Philips,… 16 bits microcontrollers - Renesas (ex. Mitsubishi / Hitachi) 5% 37% 27% 31% 4 bits 8 bits 16 bits 32 bits 2004 : 12 Milliards $ Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 26 - Renesas (ex. Mitsubishi / Hitachi) - Microchip (µC and Digital Signal Controller) - Infineon (ex. Siemens) - Atmel, Freescale, Intel, Texas Instruments, Toshiba… 32 bits microcontrollers - Atmel (Arm core) - Infineon (TriCore : Risc, Cisc & DSP) - Freescale (Arm, PowerPC or Coldfire 68000 core) - Renesas, Nec, Texas Instruments, Toshiba… source IC Insights
  • 27. 1.3 The pedagogical robot Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 27 1.3 The pedagogical robot
  • 28. 1.3 The pedagogical robot Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 28
  • 29. 1.3 The pedagogical robot Pulse width modulation control dataUltrasonic Lead battery Microcontroller Synoptic Optical sensors Analog and digital sensors data Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 29 dataUltrasonic sensor Microcontroller board Power electronic board Optical encoders Line Obstacle Angular positions Buttons LCD
  • 30. jack & Commands Energy I2C PWM Outputs Digital communication peripherals 1.3 The pedagogical robot Chopper + Motors ultrasonic telemeter UART Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 30 LCD Display jack & buttons line info Micro- controller Digital Input Analog to digital converter Digital outputs Fast counting Inputs Analog to digital converter Infrared sensors Motors encoders position info Potentio- meter
  • 31. 1.3 The pedagogical robot Speed & position control The robot follows the line The robot starts and stops Obstacle detection Shortcut detection THE RACE AnalogtoDigitalConverter BasicStateMachine Developmenttools DigitalInputs/Outputs Timers/Counters PulseWidthModulation CommunicationPeripherals Interrupts Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 31 AnalogtoDigitalConverter BasicStateMachine Developmenttools DigitalInputs/Outputs Timers/Counters PulseWidthModulation CommunicationPeripherals Interrupts
  • 32. 1.4 Digital inputs / outputs Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 32
  • 33. 1.4 Digital inputs / outputs communication peripherals Databus control signals Program memory (Flash) Data memory (RAM) control signals Central Processing Unit (CPU) Output control signals VCC = 5V Example of device plugged on a digital input : a pushbutton Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 33 internal peripherals Databus control signals control signals control signals Output peripherals inputs peripherals control signals control signals VCC = 5V GND 4,7kOhms BPx 5 V i=0 A VR=0 VVR=5 V i=1 mA 0 V pushbutton pressed : logic level 0 pushbutton not pressed : logic level 1 RB3
  • 34. 1.4 Digital inputs / outputs VCC = 5V Central Processing Unit (CPU) Other peripherals Example of device plugged on a digital input : a pushbutton Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 34 8-bitdatabus Enable reading PORTB VCC = 5V GND 4,7kOhms BPx RB3 Tri-state buffer
  • 35. 1.4 Digital inputs / outputs communication peripherals Databus control signals Program memory (Flash) Data memory (RAM) control signals Central Processing Unit (CPU) control signals Example of device plugged on a digital output : a led RA6Output 01 Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 35 internal peripherals Databus control signals control signals control signals inputs peripherals control signals control signals GND Logic level 0 : the led is OFF Logic level 1 : the led is ON RA6Output peripherals 680Ohms 0 VA6=0V i = 0 mA 1 VA6=5V i = 6 mA
  • 36. 1.4 Digital inputs / outputs Central Processing Unit (CPU) Other peripherals Example of device plugged on a digital output : a led RA6 latch Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 36 8-bitdatabus writing on PORTA GND RA6 680Ohms
  • 37. 1.4 Digital inputs / outputs communication peripherals Databus control signals Program memory (Flash) Data memory (RAM) control signals Central Processing Unit (CPU) Example of device plugged on digital in/outputs : LCD display Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 37 internal peripherals Databus control signals control signals Input / Output peripherals control signals Parallel Port 4 RD0-RD3
  • 38. 1.4 Digital inputs / outputs Central Processing Unit (CPU) Other peripherals latch Tri-state buffer Example of device plugged on digital in/outputs : LCD display Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 38 8-bitdatabus writing on PORTD reading PORTD Tri-state buffer RD0 En En selecting input or output mode
  • 39. 1.4 Digital inputs / outputs Generic Input / output pin schematic Tri-state buffer to select input or output mode selecting output latch Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 39 selecting mode circuit Tri-state buffer for input reading
  • 40. 2nd step, configure RB3 as an input TRISB x x x 1 x x xx 1.4 Digital inputs / outputs How to program input reading (for example the state of a pushbutton bp0 plugged on RB3) 1st step, define a variable to store the state of the pushbutton char bp0; Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 40 RB3 is configured as an input char bp0; TRISB = TRISB | 0b00001000; 3rd step, read the value of RB3 and store it in bp0 bp0 = PORTBbits.RB3; or bp0 = PORTB & 0b00001000;
  • 41. 1st step, configure RA6 as an output TRISA 0 x x x x x xx 1.4 Digital inputs / outputs How to program output writing (for example switching on a led plugged on RA6) Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 41 RA6 is configured as an output TRISA = TRISA & 0b10111111; 2nd step, write a value of RA6 PORTAbits.RA6 = 1; or PORTA = PORTA | 0b01000000;
  • 42. 1st step, configure RA6 as an output TRISA 0 x x x x x xx 1.4 Digital inputs / outputs How to program output writing (for example switching off a led plugged on RA6) Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 42 RA6 is configured as an output TRISA = TRISA & 0b10111111; 2nd step, write a value of RA6 PORTAbits.RA6 = 0; or PORTA = PORTA & 0b10111111;
  • 43. 1.5 Embedded program flow chart Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 43
  • 44. Peripherals configuration variables definition and initialization 1.5 Flow chart Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 44 Inputs reading Treatment Outputs writing
  • 45. Variables definition and initializations peripherirals configuration while (1) { Inputs reading main(){ 1.5 Flow chart Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 45 Inputs reading treatments Outputs writing } }