Osnovi digitalne elektronike

Slides:



Advertisements
Similar presentations
Embedded Computer ( Sisteme incorporate ) MPU vs. CPU / Alternative Texas Instrument, Freescale, ARM RISC and CISC approaches Single Chip Design System.
Advertisements

Travis Reed Todd Hummel Kwan-Truc. Concept USB 1.1 SPI b.
Microprocessor or Microcontroller Not just a case of “you say tomarto and I say tomayto” M. Smith, ECE University of Calgary, Canada.
The 8051 Microcontroller Architecture
ASPPRATECH.
ECE 448: Spring 12 Lab 4 – Part 2 Finite State Machines Basys2 FPGA Board.
Microcontroller: Introduction
Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
Embedded System Spring, 2011 Lecture 3: The PIC Microcontrollers Eng. Wazen M. Shbair.
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
Indian Institute of Technology Hyderabad PC CONTROLLED BOT D. HARISH KUMAR CE12B1005 N. ABHINAND SAI CS12B1027 G.NITiSH EE12B1008.
PIC microcontrollers. PIC microcontrollers come in a wide range of packages from small chips with only 8 pins and 512 words of memory all the way up to.
1 © Unitec New Zealand Embedded Hardware ETEC 6416 Date: - 10 Aug,2011.
 Purpose of our project  Get real world experience in ASIC digital design  Use same tools as industry engineers  Get practical experience in microprocessor.
CS-280 Dr. Mark L. Hornick 1 Parts of a GP Computer (Microcomputer) Contains separate Microprocessor chip Memory/Memory controller MB control chips Peripheral.
Technology Date 10/17/00, Page 1 Technology s PROFIBUS Technology Chips - Modules - Development Kits.
An Introduction Chapter Chapter 1 Introduction2 Computer Systems  Programmable machines  Hardware + Software (program) HardwareProgram.
COMPUTER SYSTEM ARCHITECTURE By Sohaib.  The digital computer is a digital system that performs various computational tasks.  The word digital implies.
1 3-General Purpose Processors: Altera Nios II 2 Altera Nios II processor A 32-bit soft core processor from Altera Comes in three cores: Fast, Standard,
1 SERIAL PORT INTERFACE FOR MICROCONTROLLER EMBEDDED INTO INTEGRATED POWER METER Mr. Borisav Jovanović, Prof.dr Predrag Petković, Prof.dr. Milunka Damnjanović,
Microcontroller based system design Asst. Prof. Dr. Alper ŞİŞMAN.
Typical Microcontroller Purposes
Microprocessors A practical approach Subjects Goals for this module Results Subjects of the module Plans Questions.
Micro processor and Micro Controllers
Microcontroller Presented by Hasnain Heickal (07), Sabbir Ahmed(08) and Zakia Afroze Abedin(19)
Microprocessors For a microprocessor to give a working microcomputer system, which can be used for control tasks, additional chips are necessary, e.g.
ATtiny23131 A SEMINAR ON AVR MICROCONTROLLER ATtiny2313.
Hardverski orijentisani kursevi na SI svrha: formalna i akademska: ETF master diploma MSc ECE akademska i praktična: efikasnije pisanje SW praktična: dizajn.
Slides created by: Professor Ian G. Harris Embedded Systems  Embedded systems are computer-based systems which are embedded inside another device (car,
Department of Electronic & Electrical Engineering Introduction to microcontrollers A microcontroller is a small computer on a single integrated circuit.
Submitted by:.  Project overview  Block diagram  Power supply  Microcontroller  MAX232 & DB9 Connector  Relay  Relay driver  Software requirements.
MICROCONTROLLER INTERFACING WITH STEPPER MOTOR MADE BY: Pruthvirajsinh Jadeja ( ) COLLEGE:DIET BRANCH:EC.
Networked Embedded Systems Sachin Katti EE107 Spring 2016 Lecture 3 Microcontrollers.
15: Microprocessor and microcontroller
CEng3361/18 CENG 336 INT. TO EMBEDDED SYSTEMS DEVELOPMENT Spring 2007 Recitation 01.
WATER LEVEL INDICATOR AND AUTOMATIC MOTOR SWITCHING SYSTEM
Lesson 1 PLC BASICS. PLC Definition  Programmable Logic Controllers are industrial computers that control machine and other applications.  PLC have.
Case Study #1 Microcontroller System. What is a microcontroller? A microcontroller can be considered a self-contained system with a processor, memory.
Introduction to Microcontroller Technology
EMBEDDED SYSTEM An embedded system is a special-purpose computer system and a combination of software and hardware designed to perform specific task. It.
IF I ONLY HAD A BRAIN THE MICROCONTROLLER
Embedded Microcontroller Systems
Microcontrollers, Basics Fundamentals of Designing with Microcontrollers 16 January 2012 Jonathan A. Titus.
ABSTRACT The controller continuously polls the temperature with certain regular time intervals and displays over the 7_segment display The temperature.
Microcontrollers & GPIO
Embedded Microcontroller Systems
SCADA for Remote Industrial Plant
PC Mouse operated Electrical Load Control Using VB Application
SUBMITTED BY EDGEFX TEAM
Microcontroller Based Digital Code Lock
DSC - fundamente MPU MCU DSP DSC Alternative Freescale
USING TV REMOTE AS A CORDLESS MOUSE FOR THE COMPUTER
DIGITAL CALCULATOR USING 8051
Project guide B. SUBBULAKSHMI M. E Assistant Professor C. A. R
The Arduino Microcontroller: Atmel AVR Atmega 328
Chapter 1: The 8051 Microcontrollers
ARDUINO     What is an Arduino? Features 14 Digital I/O pins 6 Analogue inputs 6 PWM pins USB serial 16MHz Clock speed 32KB Flash memory 2KB SRAM.
Introduction to Microprocessors and Microcontrollers
Lecture 3 - Instruction Set - Al
8051 Single Board Computer (SBC) Version 1.0

Osnovi digitalne elektronike
CSCI1600: Embedded and Real Time Software
CSCI1600: Embedded and Real Time Software
Manual Robotics ..
Arduino Workshop University of Jordan.
Arduino Workshop University of Jordan.
Wireless Embedded Systems
Introduction to arduino
Course Code 114 Introduction to Computer Science
Presentation transcript:

Osnovi digitalne elektronike 2+2+1 Dr Milan Ponjavić, vanr. prof. Dr Goran Savić, docent http://tnt.etf.bg.ac.rs/~si2ode/ Deo diskusije sa IT formuma “Potreban je samo jedan covek koji zna da osmisli i dokumentuje sistem do tancina, a posle 50 programera razvija software na osnovu specifikacija ovog arhitekte. Tako da je to sasvim normalno, a i nije nista IT specificno. Isto je i u masinstvu, npr u BMW-u - Chief Designer ima mnogo vecu platu od Fied Designera…”

Osnovi digitalne elektronike

Osnovi digitalne elektronike

Osnovi digitalne elektronike

Osnovi digitalne elektronike Embedded sistemi Pojam iz Industry 3.0 računarski sistem sa unapred predefinisanom funkcijom unutar složenijeg elektromehaničkog sistema (suprotno računaru opšte namene) Pored standardnih računarskih resursa postoji interakcija SW sa periferijama, senzorima i aktuatorima u sistemu ili objektu koji SW kontroliše

Osnovi digitalne elektronike Hardverski orijentisani kursevi na ETF-u svrha: formalna i akademska: ETF master diploma MSc ECE akademska i praktična: dizajn SW+HW praktična: dizajn računara i procesora (? ? ?) praktična: dizajn embedded sistema (£ € $)! … embedded sistem + komunikacija = smart sistem smart1+smart2+…cloud=IoT

Osnovi digitalne elektronike Koncepcija upravljačkih sistema Centralizovano merenje i kontrola industrijski PC PLC … Distribuirano merenje i kontrola (M2M) Mreža mikrokontrolera A microcontroller (sometimes abbreviated µC, uC or MCU) is a small computer on a single integrated circuit containing a processor core, memory, and PROGRAMMABLE input/output peripherals Input/output peripherals: analog, digital, mix-signal

Sistemsko projektovanje, primer: dizajn upravljačkog sistema A Simple Control Task: Industrial Heating (for C2H5OH production...) – periodically read temperature (analog input) – turn on/off heating according to temp. (1 digital output) – current temperature is displayed (4 digit display) – user can adjust temp, thresholds etc with buttons (4 bits) – serial interface to download temp. data for last 24 h (2 bit) ● >20 digital I/O lines, timer, serial interface, etc DUS keypad display RS - 232 temp o C On / Off

DUS kao mikroprocesorski sistem

Digital I/O Karakteristike grejača i povezivanje Elektromehaničko rele, osobine, alternative BJT u prekidačkom režimu Kalem i kondenzator u prekidačkom režimu Povezivanje na digitalni izlaz Kontrola grejača preko digitalnog izlaza:

7 Seg displays are 8 LED's (7 segments and DP) Basically there are two types of 7-Seg display's: - Common Cathode where all the segments share the same Cathode. - Common Anode where all Segments share the same Anode. Svetlosna indikacija preko digitalnog izlaza: LED dioda i LED displej povezivanje na digitalni izlaz direktno i baferisano povezivanje serijski

DIGITALNI ULAZI taster i prekidač normalno otvoren, normalno zatvoren aktivno stanje logicka nula, aktivno stanje logicka jedinica Podrhtavaje i eliminacija podrhtavanja ANALOGNI ULAZ Kondicioniranje signala sa senzora Zaštita ulaza multipleksiranje

Microprocessor Implementation – CPU 8088 – Clock generator 8284 – 4 x 74HC373 (digital I/O) – UART (serial I/O) 8250B – programmable timer 8254 – memory (SRAM, Flash, EEPROM)… ● requires ~10 chips (+ their connections) on PCB

Microcontroller Implementation Small computer on a single integrated circuit Simple CPU Clock generator Timers I/O ports Memory (RAM+ROM+FLASH) Optimized for interrupt driven controller applications Extensive analog and digital I/O. Microcontroller requirements: – CPU – at least 20 digital I/O lines – serial interface – timer – memory: SRAM, Flash..

Osnovi digitalne elektronike Microcontroller selection Part Number Cost Notes MSP430F2101 TI $1.17 Very powerful 16 bit microcontroller, with low cost development tools, Has an on board comparator which can be used to simulate an ADC, and a software UART. This is a great part! PIC16F630 Microchip $1.26 Decent processor and easy to use tools. 14 pin packages PIC16F676 $1.47 Similar to the PIC16F630, but with ADCs. PIC10F200 $0.61 Very cheep, and very small with 8 pin SOIC and 6 pin SOT-23 packages. AT89C2051 Atmel $1.05 20 pin package. ATTiny11L $0.35 8 pin package. Has low cost development tools.

Osnovi digitalne elektronike Logičko projektovanje i dizajn Specification + Modeling High-level modeling: Flow Charts FSM State Charts Data Flow Petri Nets UML VHDL, Verilog SpecC, SystemC, SystemVerilog

Osnovi digitalne elektronike Logičko projektovanje i dizajn, primer: šema za obradu binarnih signala // definicije i deklaracije #define Ulaz P3_1 #define Izlaz1 P3_2 #define Izlaz2 P3_3 bdata char ShReg;// bit adresib.bajt sbit Q4=ShReg^7; sbit Q3=ShReg^6; sbit Q2=ShReg^5; sbit Q1=ShReg^4; sbit Q0=ShReg^3; bit BitA ,Tmp; // deo C programa koji realizuje // jedan korak pomeranja Tmp=(BitA|Q3)&(Ulaz|Q0); ShReg >>=1;

Classical automata - Finite state machines (FSM) Provides a mathematical foundation for verifying system correctness, simulation, hardware/software partitioning, and synthesis Specification and modeling of control dominated applications such as a real-time, reactive control systems FSM Transducers Transducers generate output based on a given input and/or a state using actions Moore machine: output depends only on the state. The advantage of the Moore model is a simplification of the behavior. Mealy machine: output depends on input and state. The use of a Mealy FSM leads often to a reduction of the number of states.

Coke Machine Version 1.0 When turned on, the machine waits for money When a quarter is deposited, the machine waits for another quarter When a second quarter is deposited, the machine waits for a selection When the user presses “COKE,” “SPRITE” or “DIET COKE,” an appropriate item is dispensed When the user takes the bottle, the machine waits again Bottles can get stuck in the machine An automatic indicator will notify the system when a bottle is stuck When this occurs, the machine will not accept any money or issue any bottles until the bottle is cleared When the bottle is cleared, the machine will wait for money again

Ilustracija generisanja FSM iz flow-charta

UML Statechart Developed by Object Management Group (OMG). Extend the properties of Harel’s statecharts with some new features.

Osnovi digitalne elektronike Šta ćemo da radimo: I - praktična aplikacija

Hardverska arhitektura periferija Elementarno softversko konfigurisanje i eksploatacija

Osnovi digitalne elektronike

Osnovi digitalne elektronike

MCU HARDWARE RESOURCES Comparator -Input signal MUX +Input signal MUX