Beruflich Dokumente
Kultur Dokumente
Amr Mokhtar
Agenda
• Introduction
• I/O ports: LED, Switch and Relay
• Keypad
• 7-Seg. Display
• LCD Display
• DC Motor
• Stepper Motor
• Sensors
• RS-232
• I2C
• Plant
• Process
• Sensor
• Actuator
• Controller
Copyright © 2009 Embedded ٤
Systems Committee
Microcontroller Peripherals
• Power - Vcc, GND, AVcc, Aref, AGND
• Reset - RESET
• Crystal - XTAL1, XTAL2
• I/O Port - PA[7;0], PB[7:0], PC[7:0], …
• External interrupts - INT0, INT1, …
• Timer sources - T0, T1, …
Reset Circuit
Oscillator Circuit
fly-back diode
Row outputs
Row enables
&
Charging eq. discharging eq.
MC14490 Hex Contact Bounce Eliminator Chip
MAX6816-MAX6818 Switch Debouncers
• Using software a
b
PA.0
PA.1
c PA.2
d PA.3
e PA.4
f PA.5
g PA.6
dp PA.7
Digit Seg. h Seg. g Seg. f Seg. e Seg. d Seg. c Seg. b Seg. a HEX
0 1 1 0 0 0 0 0 0 C0
1 0 0 0 0 0 1 1 0 06
2 1 0 1 0 0 1 0 0 A4
3 1 0 1 1 0 0 0 0 B0
4 1 0 0 1 1 0 0 1 99
motor
• Differential encoder
– How to determine direction of rotation ?
§ A pair of LEDs is used having a 90°
phase difference between them
TX RX
MCU Device
RX TX
• MAX232 is used
education@escommittee.com