ME 515 Mechatronics. A microprocessor
|
|
- Juliana Watson
- 6 years ago
- Views:
Transcription
1 ME 515 Mechatronics Microcontroller Based Control of Mechanical Systems Asanga Ratnaweera Department of Faculty of Engineering University of Peradeniya Tel: (3627) A microprocessor Performs arithmetic and logic operations Receives digital input process according to stored program (variable) digital output Two main parts: arithmetic unit (AU) control unit (CU) 2 1
2 A microprocessor Arithmetic unit made up of: Arithmetic Logic Unit (ALU) arithmetic calculations + logic operations Accumulators (ACC) where arithmetic calculations are made Condition Code Register (CCR) set based on results of ALU; 4 common bits: Zero, Negative, Overflow, Carry 3 A microprocessor Control unit made up of: Memory Address Register (MAR) holds current address where µp is accessing Memory Data Register (MDR) holds instruction temporarily Program Counter (PC) holds next instruction address to be read from the program memory (flash memory). Generally the counter increments each time an instruction is executed Instruction Register (IR) The instruction at the address specified by the PC is read to this register. This operation is called a FETCH. Control Logic (CL) synchronisation 4 2
3 A microprocessor Instruction fletch cycle 5 Microcomputer system µp + memory + i/o chips = µcomputer system Memory devices store program, data I/O devices read input and/or display results Connected via buses. 3 types: Address (ex: 16-bit, unidirectional) Data (ex: 8-bit, bidirectional) Control (variable) e.g. Read, Write, Enable 6 3
4 Microcomputer system 8-bit data bus MPU ROM (program) RAM (data) PROGRAMMABLE I/O 16-bit address bus Control lines 7 Micro-controller Microcontrollers contain all of the functional sections (CPU, RAM, ROM, I/O, ports and timers) of a personal computer on a single integrated circuit. some people describe them as special purpose computers with several qualifying distinctions that separate them from other computers. Microcontrollers are "embedded" inside some other device (often a consumer product: kitchen appliances, TVs, VCRs, cameras, telephones) so that they can control the features or actions of the product. 8 4
5 Micro-controller 9 Building blocks of a microcontroller Memory unit Central Processing Unit Bus Input-output unit Serial communication Timer unit Watchdog Analog to Digital Converter 10 5
6 Building blocks: Input-output unit When working with ports, first of all it is necessary to choose which port we need to work with, and then to send data to, or take it from the port By selecting the appropriate register 11 Building blocks: Serial communication 12 6
7 Building blocks: Timer unit Timer unit can give information about time, duration, protocol etc. 13 Building blocks: Watchdog This timer watches over the normal operation of the microcontroller software. It must be regularly cleared by software. When it times out the microcontroller returns to the point in the program immediately after power on. This timer is used to recover program operation when the software has a defect (or bug). Even if the program is reinitialized the bug is still in the program. 14 7
8 Building blocks: Analog to Digital Converter Analog to Digital Converter is responsible for converting an information about some analog value to a binary number and for follow it through to a CPU block so that CPU block can further process it. Not available with all µp 15 Embedded Systems: General Block Diagram sensor sensor sensor Sensor conditioning Microcontroller (uc) Output interfaces actuator indicator 16 8
9 History in Brief 1959: first IC's 1971: µp Bit Intel (~2000 Tr.) 1972: µp Bit Intel (~5000 Tr.) 1974: µp Bit Intel (~6000 Tr.) 1974: µp Bit Motorola 1975: µp Z80 8Bit Zilog 1976: µp Bit Texas Instruments 1978: µp Bit Intel ( Tr) 1982: µp Bit Intel ( Tr.) 1985: µp Bit Intel ( Tr.) 1989: µp Bit Intel (106 Tr.) 1993: µp Bit Intel (5 106 Tr.) Common Microcontrollers Families There are several families of microprocessors are widely used in industrial control systems Zilog Z8 series Intel 8051 series ARM 32 bit microcontrollers MicroChip PIC microcontrollers 18 9
10 PIC Range of low end 8 bit microcontrollers. smallest have only 8 pins, largest 40 pins. Typical chip is an 18 pin one. Very cheap, you can pick them up at less than Rs.500 each. Targeted at consumer products, burglar alarms etc
11 PIC Microcontrollers The term PIC stands for Programmable Interface Controller. PIC microcontrollers have become very popular because Relatively cheap Small in size On chip memory Easy to program Reusable 21 PIC Microcontroller Architecture von Neumann architecture programs and data share a single memory area that is accessed over a common bus Harvard architecture separate memory areas and buses for data and programs von Neumann Architecture. Harvard Architecture. Note : PIC microcontroller follows Harvard design 22 11
12 PIC Microcontroller Characteristics CPUs 8-bit 16-bit Number of I/O pins: 4-70 Some chips have A/D converter and PWM Memory types and sizes: Flash; OTP; ROM 0.5k 256k 23 PIC Microcontrollers: Memory varieties Microchip produces field programmable microcontrollers in three basic varieties EPROM can be programmed electrically and erased, if needed, by a special ultraviolet light (window type) OTP can be programmed only once and is the least expensive of the three Flash can be both programmed and erased by electrical means 24 12
13 PIC Microcontrollers: Memory varieties Ex: 25 The PIC Family: Speed PICs require a clock to work. Can use crystals, clock oscillators, or even an RC circuit. Some PICs have a built in 4MHz RC clock Not very accurate, but requires no external components Instruction speed = 1/4 clock speed T cyc = 4 * T clk 13
14 The Minimum PIC System You need some kind of a clock: Internal 4MHz clock on some PICs, external RC, external crystal, or external clock oscillator. And you need some power: Most PICs can operate from 2.5V - 5.5V (see Data Sheets) New 16HVXX can directly use up to 14V (Great for direct 9V or 12V battery hook ups PIC Microcontrollers: Oscillator If the CPU is the brain of the system then the oscillator, or clock, is the heartbeat. It provides the critical timing functions for the rest of the chip. The original version of the 16F84 can operate at up to 4-MHz while the newer chip has a 20- MHz upper limit. This section of the PIC is extremely versatile. There are three principal ways to clock a PIC chip
15 PIC Microcontrollers: Oscillator cont.. There are three principal ways to clock a PIC chip. Crystal controlled oscillator 29 PIC Microcontrollers: Oscillator cont.. RC oscillator Note: Not as precise as Xtal oscillator 30 15
16 PIC Microcontrollers: Oscillator cont.. External clock Note: This is useful when the chip must be synchronized with other components or an entire system must be operated from a single clock source 31 PIC Microcontrollers: PIC 16F84A PIC16F84A belongs to a class of 8-bit microcontrollers of RISC architecture. Its general structure is shown below. Microcontrollers with Harvard stands for. architecture are also called "RISC microcontrollers". RISC - Reduced Instruction Set Computer 32 16
17 PIC Microcontrollers: PIC 16F84A 33 PIC Microcontrollers: PIC 16F84 Program memory (FLASH) for storing a written program. Since memory made in FLASH technology can be programmed and cleared more than once, it makes this microcontroller suitable for device development. EEPROM - data memory that needs to be saved when there is no supply. RAM - data memory used by a program during its execution. In RAM are stored all inter-results or temporary data during run-time
18 PIC Microcontrollers: PIC 16F84 PORTA and PORTB are physical connections between the microcontroller and the outside world. Port A has five, and port B has eight pins. FREE-RUN TIMER is an 8-bit register inside a microcontroller that works independently of the program. On every fourth clock of the oscillator it increments its value until it reaches the maximum (255), and then it starts counting over again from zero. CENTRAL PROCESSING UNIT The PIC has only 35 opcodes in its instruction set compared with more than 256 for a DEC Vax system6. 35 PIC 16F84 : Pin description PIC16F84 has a total of 18 pins
19 PIC 16F84 : Pin description Pin Identifier RA[0-4] RB[0-7] V ss, V dd OSC1,OSC2 MCLR Description 5 bits of bidirectional I/O Port A 8 bits of bidirectional I/O Port B Power supply ground reference (ss source, dd drain) Oscillator crystal inputs Master clear, active low 37 PIC 16F84 A : Features Only 35 single word instructions to learn All instructions single-cycle except for program branches which are two-cycle Operating speed: 4 MHz clock input, 200 ns instruction cycle 1024 words of program memory 68 bytes of Data RAM 64 bytes of Data EEPROM 14-bit wide instruction words 8-bit wide data bytes 38 19
20 PIC 16F84A : Features 15 Special Function Hardware registers Eight-level deep hardware stack Direct, indirect and relative addressing modes Four interrupt sources: External RB0/INT pin TMR0 timer overflow PORTB<7:4> interrupt-on-change Data EEPROM write complete 39 PIC 16F84A : Peripheral Features 13 I/O pins with individual direction control High current sink/source for direct LED drive 25 ma sink max. per pin 25 ma source max. per pin TMR0: 8-bit timer/counter with 8-bit programmable prescaler 40 20
21 PIC 16F84A: Program memory The figure below shows the register file map inside the PIC16F84A 41 PIC 16F84 : Registers cont Bank 1 is used to control the actual operation of the PIC for example to tell the PIC which bits of Port A are input and which are output. Bank 0 is used to manipulate the data. To change from Bank 0 to Bank 1 we tell the STAUS register. We do this by setting bit 5 of the STATUS register to 1. To switch back to Bank 0, we set bit 5 of the STATUS register to 0. The STATUS register is located at address 03h (the h means the number is in Hexadecimal)
22 PIC16F877A : Features 5/6 Programming pins 8 A/D channels 2 Oscillator Inputs 2 RS-232 inputs 33 I/O ports
23 45 PIC Programming Language that microcontroller and man use to communicate is called "assembly language". Programs written in assembly language must be translated into a "language of zeros and ones" in order for a microcontroller to understand it (hex file). "Assembly language" and "assembler" are two different notions. The first represents a set of rules used in writing a program for a microcontroller, the other is a program on the personal computer which translates assembly language into a language of zeros and ones. A program that is translated into "zeros" and "ones" is also called "machine language". There are commercial software which could convert a C or Basic code in to PIC assembly language 46 23
24 PIC programming : Assembler The assembler expects to find specific terms in three columns. First column: Labels Second column: opcodes and assembler directives Third Columns & more: operands The three columns are used in five ways. Header section Equates section Origin section Program section The end statement. 47 PIC programming : Assembler Labels A label is a mnemonic symbol assigned to an address. Ex : portb means port B whose real hexadecimal address is 0x06. Rules for defining labels Must be positioned in the first column Must begin with an alpha character May contain numeric, underscore or question mark May be up to 31 characters 48 24
25 PIC programming : Assembler Literals Literals are constants or numbers, usually hexadecimal numbers. Ex: Literal start movlw 0x00 Label Instruction 49 PIC programming : Assembler Header Assembler directive list radix p=16f84 hex 50 25
26 PIC programming : Assembler Header The information at the top of the source file is called a header. ;=========== pict1.asm=========== list p=16f84 radix hex ; first line defines the type of PIC to be used Second line says that the number system is hexadecimal 51 PIC programming : Assembler Equates Label This is an equates Hex address or number equ 52 26
27 PIC programming : Assembler Equates Equates are used to assign labels to addresses and names to numbers Hexadecimal address Ex: portb equ 0x06 Label Tells assembler this is an equate min equ 1 ; min =bit 1 flag equ 0x0c ; flag = file register 53 PIC programming : Assembler Origin Not used This is an origin Hex address org 54 27
28 PIC programming : Assembler Origin Usually origin statements used for three purposes. Defines where the program code starts org 0x000 To establish the reset vector org 0x1ff goto start To establish the start of an interupt service org 0x PIC programming : Assembler Program Label Instruction Literal or label org 56 28
29 PIC programming : Assembler End This is end end 57 PIC programming : Assembler Program format Standard header Equates Program End end 58 29
30 PIC programming : Assembler Assembler files All source code files must be saved with the file extension.asm. ex: pic_1.asm Assembler creates two from the source code.lst (assembler generated listing).hex (hexadecimal object code which can be downloaded to the chip) 59 PIC programming : Assembler The assembler program reads each text file line, ignores it if begins with a semicolon and steps through the three columns. Style list PIC16f84 radix hex portb equ 0x06 org 0x06 Start movlw 0x00 tris portb movewf portb circle goto circle end 60 30
31 PIC Programming The process of communication between a man and a microcontroller In order to do this we have to use a development system 61 Development Systems MPLAB C Compiler Assembly Simulate MPLAB SIM Program PRO MATE II PICSTART+ Edit Project MPLAB Emulate MPLAB-ICE PICMASTER ICEPIC 62 31
32 Development Systems MPLAB-ICE PICMASTER ICEPIC MPLAB-SIM PICSTART Plus PRO MATE II 63 Pin-1 Development Systems RS-232 Serial Interface PICSTART Plus DEVELOPMENT PROGRAMMER POWER ACTIVE 9V DC Input Power ON Programmer Active Upgrades done in MPLAB software - firmware upgrades occasionally required for new PICmicro sub-families Uses serial programming algorithms for all ICSP capable devices 40-Pin ZIF Socket to accommodate PICmicros from 8-8 to 40-pins. 68-pin PLCC can be programmed with an adapter 64 32
33 PIC16F84 8-bit RISC (35 instructions, pipelined) Program counter 13-bit (points to the current instruction, automatically incremented) Stack to support subroutines/interrupts can hold 8 levels of PC Memory Program memory (FLASH) 1024, 14-bit locations Data Memory RAM: 68, 8-bit locations EEPROM: 64, 8-bit locations (slow write access) 65 PIC programming : PIC16F84 instruction set PIC16F84 has 35 instruction in its instruction set Move or define data Note : k is a constant, f is the file register, d is destination-0 for w register and 1 for file register f Nothing 66 33
34 PIC programming : PIC16F84 instruction set PIC16F84 has 35 instruction in its instruction set Changing register content 67 PIC programming : PIC16F84 instruction set PIC16F84 has 35 instruction in its instruction set Control program flow 68 34
35 PIC programming : PIC16F84 instruction set PIC16F84 has 35 instruction in its instruction set Control Microcontroller 69 PIC programming : PIC16F84 instruction set PIC16F84 has 35 instruction in its instruction set Logic 70 35
36 PIC programming : PIC16F84 instruction set PIC16F84 has 35 instructions in its instruction set Arithmetic 71 Software: Programmers Model <- 12/14/16 bits -> Hardware Stack Stores addresses for subroutines Program Memory Burned in by programmer (can t change during execution). Stored instructions, addresses and literals (numbers). W Register (PCH) Program Counter-PCL <- 8 bits -> Status Special Purpose Registers I/O pin states, peripheral registers, etc. General Purpose Registers RAM or data memory. Variables are stored here. 36
37 Microcontroller Architecture 73 PIC16F84 : An Example Code Port configuration TRISA or TRISB are used to configure Port A and Port B respectively If a bit of TRSA is is high, corresponding pin of the Port A is configured as input, otherwise it is an output Ex: To configure pins 0 and 3 of Port A as outputs and 1 and 2 inputs BSF 03h,5 ;Go to Bank 1 MOVLW 06h ;Put (06h) into W MOVWF 85h ;Move onto TRISA BCF 03h,5 ;Come back to Bank 0 Note : see the memory map for the address, only the program section is shown 74 37
38 Software: Instruction Examples movlw 0xFF Move ( mov ) the number ( l for literal ) 0xFF - that s 256 in decimal- into the working register ( w ). In other words, load W with the value 0xFF. Software: Programmers Model <- 12/14/16 -> Program Memory (PCH) Hardware Stack Program Counter-PCL <- 8 bits -> Status Special Purpose Registers 0xFF W Register General Purpose Registers 38
39 Software: Instruction Examples PORTA 05h movwf PORTA Move ( mov ) the working register ( w ) into the file register ( f ) named PORTA. In other words, load the register called PORTA with whatever number is in the W register. Software: Programmers Model <- 12/14/16 -> Program Memory Value in W (PCH) Hardware Stack Program Counter-PCL <- 8 bits -> Status Special Purpose Registers PORTA W Register General Purpose Registers 39
40 Software: Instruction Examples movf PORTA, W Move ( mov ) the the value of the file register ( f ) named PORTA into the working register ( w ). In other words, load W with the whatever number is in PORTA. Software: Programmers Model <- 12/14/16 -> Program Memory (PCH) Hardware Stack Program Counter-PCL <- 8 bits -> Status Special Purpose Registers Value in PORTA PORTA W Register General Purpose Registers 40
41 Writing values to port A bcf 03h,5 ;Come back to Bank 0 Start movlw 02h ; Write 02h to the W register. In binary this is ; 00010, which puts a 1 on pin 2 while ; keeping ; the other pins to 0 movwf 05h ;Now move the contents of W (02h) oto the ;PortA, whose address is 05h movlw 00h ;Write 00h to the W register. This puts a 0 on ;all pins. movwf 05h ;Now move the contents of W (0h) onto the ;Port A whose address is 05h goto Start ;Go to where we say Start end 81 PIC16F84 : An Example Code STATUS equ 03h ;this assigns the word STATUS to the value of 03h, ;which is the address of the STATUS register. TRISA equ 85h ;This assigns the word TRISA to the value of 85h, ; which is the address of the Tri-State register for PortA PORTA equ 05h ;This assigns the word PORTA to 05h which is the ;address of Port A bsf 03h,5 ;Go to Bank 1 movlw 00h ;Put into W movwf 85h ;Move onto TRISA all pins set to output bcf 03h,5 ;Come back to Bank 0 Start movlw 02h ;Write 02h to the W register. In binary this is ;00010, which puts a 1 on pin 2 while keeping ;the other pins to 0 movwf PORTA ;Now move the contents of W (02h) onto the ;PortA, whose address is 05h movlw 00h ;Write 00h to the W register. This puts a 0 on ;all pins. movwf PORTA ;Now move the contents of W (0h) onto the Port A ; whose address is 05h 2 January 2007 goto end Start Asanga Ratnaweera, ;Go to where Department we say of Start 82 41
42 PIC16F84 : Hardware implementation 83 42
Lesson 14. Title of the Experiment: Introduction to Microcontroller (Activity number of the GCE Advanced Level practical Guide 27)
Lesson 14 Title of the Experiment: Introduction to Microcontroller (Activity number of the GCE Advanced Level practical Guide 27) Name and affiliation of the author: N W K Jayatissa Department of Physics,
More informationMicroProcessor. MicroProcessor. MicroProcessor. MicroProcessor
1 2 A microprocessor is a single, very-large-scale-integration (VLSI) chip that contains many digital circuits that perform arithmetic, logic, communication, and control functions. When a microprocessor
More informationEmbedded Systems. PIC16F84A Internal Architecture. Eng. Anis Nazer First Semester
Embedded Systems PIC16F84A Internal Architecture Eng. Anis Nazer First Semester 2017-2018 Review Computer system basic components? CPU? Memory? I/O? buses? Instruction? Program? Instruction set? CISC,
More informationDERTS Design Requirements (1): Microcontroller Architecture & Programming
Lecture (5) DERTS Design Requirements (1): Microcontroller Architecture & Programming Prof. Kasim M. Al-Aubidy Philadelphia University 1 Lecture Outline: Features of microcomputers and microcontrollers.
More informationMechatronics and Measurement. Lecturer:Dung-An Wang Lecture 6
Mechatronics and Measurement Lecturer:Dung-An Wang Lecture 6 Lecture outline Reading:Ch7 of text Today s lecture: Microcontroller 2 7.1 MICROPROCESSORS Hardware solution: consists of a selection of specific
More informationEmbedded Systems Lab Lab 1 Introduction to Microcontrollers Eng. Dalia A. Awad
Embedded Systems Lab Lab 1 Introduction to Microcontrollers Eng. Dalia A. Awad Objectives To be familiar with microcontrollers, PIC18F4550 microcontroller. Tools PIC18F4550 Microcontroller, MPLAB software,
More informationME 6405 Introduction to Mechatronics
ME 6405 Introduction to Mechatronics Fall 2006 Instructor: Professor Charles Ume Microchip PIC Manufacturer Information: Company: Website: http://www.microchip.com Reasons for success: Became the hobbyist's
More informationComputer Hardware Requirements for ERTSs: Microprocessors & Microcontrollers
Lecture (4) Computer Hardware Requirements for ERTSs: Microprocessors & Microcontrollers Prof. Kasim M. Al-Aubidy Philadelphia University-Jordan DERTS-MSc, 2015 Prof. Kasim Al-Aubidy 1 Lecture Outline:
More informationOutline. Micriprocessor vs Microcontroller Introduction to PIC MCU PIC16F877 Hardware:
HCMIU - DEE Subject: ERTS RISC MCU Architecture PIC16F877 Hardware 1 Outline Micriprocessor vs Microcontroller Introduction to PIC MCU PIC16F877 Hardware: Program Memory Data memory organization: banks,
More informationEmbedded System Design
ĐẠI HỌC QUỐC GIA TP.HỒ CHÍ MINH TRƯỜNG ĐẠI HỌC BÁCH KHOA KHOA ĐIỆN-ĐIỆN TỬ BỘ MÔN KỸ THUẬT ĐIỆN TỬ Embedded System Design : Microcontroller 1. Introduction to PIC microcontroller 2. PIC16F84 3. PIC16F877
More informationProfessor E. Ambikairajah UNSW Sydney
ELEC2117 Chapter 3a: PIC16F886 Instruction set Professor Eliathamby Ambikairajah Head of School of Electrical Engineering and Telecommunications, UNSW, Sydney 06 March 2017 Prof E Ambikairajah Instruction
More informationMicrocontrollers. Microcontroller
Microcontrollers Microcontroller A microprocessor on a single integrated circuit intended to operate as an embedded system. As well as a CPU, a microcontroller typically includes small amounts of RAM and
More informationDHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING. EE6008 Microcontroller based system design
Year: IV DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING EE6008 Microcontroller based system design Semester : VII UNIT I Introduction to PIC Microcontroller
More informationLaboratory: Introduction to Mechatronics. Instructor TA: Edgar Martinez Soberanes Lab 2. PIC and Programming
Laboratory: Introduction to Mechatronics Instructor TA: Edgar Martinez Soberanes (eem370@mail.usask.ca) 2015-01-12 Lab 2. PIC and Programming Lab Sessions Lab 1. Introduction Read manual and become familiar
More informationMicrocomputer Architecture and Programming
IUST-EE (Chapter 1) Microcomputer Architecture and Programming 1 Outline Basic Blocks of Microcomputer Typical Microcomputer Architecture The Single-Chip Microprocessor Microprocessor vs. Microcontroller
More informationLearning Objectives:
Topic 5.2.1 PIC microcontrollers Learning Objectives: At the end of this topic you will be able to; Recall the architecture of a PIC microcontroller, consisting of CPU, clock, data memory, program memory
More informationEmbedded Systems. PIC16F84A Sample Programs. Eng. Anis Nazer First Semester
Embedded Systems PIC16F84A Sample Programs Eng. Anis Nazer First Semester 2017-2018 Development cycle (1) Write code (2) Assemble / compile (3) Simulate (4) Download to MCU (5) Test Inputs / Outputs PIC16F84A
More informationPIC Discussion. By Eng. Tamar Jomaa
PIC Discussion By Eng. Tamar Jomaa Chapter#2 Programming Microcontroller Using Assembly Language Quiz#1 : Time: 10 minutes Marks: 10 Fill in spaces: 1) PIC is abbreviation for 2) Microcontroller with..architecture
More informationME 475 Lab2 Introduction of PIC and Programming. Instructor: Zhen Wang
ME 475 Lab2 Introduction of PIC and Programming Instructor: Zhen Wang 2013.1.25 Outline Lecture Introduction of PIC microcontroller Programming cycle Read CH5 Programming guidelines Read CH6 Sample program
More informationEEE111A/B Microprocessors
EEE111A/B Microprocessors Revision Notes Lecture 1: What s it all About? Covers the basic principles of digital signals. The intelligence of virtually all communications, control and electronic devices
More informationCENG 336 INT. TO EMBEDDED SYSTEMS DEVELOPMENT. Spring 2006
CENG 336 INT. TO EMBEDDED SYSTEMS DEVELOPMENT Spring 2006 Recitation 01 21.02.2006 CEng336 1 OUTLINE LAB & Recitation Program PIC Architecture Overview PIC Instruction Set PIC Assembly Code Structure 21.02.2006
More informationIntroducing Microcontrollers System Design
Introducing Microcontrollers System Design Eng. Ahmed S. Afifi 1 What is a Microcontroller? Mini-Computer CPU (Brain) 1. Arithmetic Logic Unit (ALU) 2. Control Unit 3. Register Program/ Data Memory Peripherals
More informationMidrange 8b PIC Microcontrollers. ECE Senior Design 14 February 2017
Midrange 8b PIC Microcontrollers ECE Senior Design 14 February 2017 Harvard vs. Von Neumann Harvard Architecture Program Memory 14-bit Bus CPU 8-bit Bus Data Memory Harvard architecture Separate busses
More informationPIC16F87X. 28/40-pin 8-Bit CMOS FLASH Microcontrollers. Devices Included in this Data Sheet: Pin Diagram PDIP. Microcontroller Core Features:
PIC16F7X 2/40-pin -Bit CMOS FLASH Microcontrollers Devices Included in this Data Sheet: PIC16F7 PIC16F74 PIC16F76 PIC16F77 Microcontroller Core Features: High-performance RISC CPU Only 5 single word instructions
More informationCHAPTER 6 CONCLUSION AND SCOPE FOR FUTURE WORK
134 CHAPTER 6 CONCLUSION AND SCOPE FOR FUTURE WORK 6.1 CONCLUSION Many industrial processes such as assembly lines have to operate at different speeds for different products. Process control may demand
More informationPIC 16F84A programming (II)
Lecture (05) PIC 16F84A programming (II) Dr. Ahmed M. ElShafee ١ Introduction to 16F84 ٣ PIC16F84 belongs to a class of 8-bit microcontrollers of RISC architecture. Program memory (FLASH) EEPROM RAM PORTA
More informationMicroprocessors/Microcontrollers
Microprocessors/Microcontrollers A central processing unit (CPU) fabricated on one or more chips, containing the basic arithmetic, logic, and control elements of a computer that are required for processing
More informationAli Karimpour Associate Professor Ferdowsi University of Mashhad
AUTOMATIC CONTROL SYSTEMS Ali Karimpour Associate Professor Ferdowsi University of Mashhad Main reference: Christopher T. Kilian, (2001), Modern Control Technology: Components and Systems Publisher: Delmar
More informationAli Karimpour Associate Professor Ferdowsi University of Mashhad
AUTOMATIC CONTROL SYSTEMS Ali Karimpour Associate Professor Ferdowsi University of Mashhad Main reference: Christopher T. Kilian, (2001), Modern Control Technology: Components and Systems Publisher: Delmar
More information1 Introduction to Computers and Computer Terminology Programs Memory Processor Data Sheet Example Application...
Overview of the PIC 16F648A Processor: Part 1 EE 361L Lab 2.1 Last update: August 19, 2011 Abstract: This report is the first of a three part series that discusses the features of the PIC 16F684A processor,
More informationEmbedded Systems Design (630414) Lecture 1 Introduction to Embedded Systems Prof. Kasim M. Al-Aubidy Computer Eng. Dept.
Embedded Systems Design (630414) Lecture 1 Introduction to Embedded Systems Prof. Kasim M. Al-Aubidy Computer Eng. Dept. Definition of an E.S. It is a system whose principal function is not computational,
More information1 Introduction to Computers and Computer Terminology Programs Memory Processor Data Sheet... 4
Overview of the PIC 16F648A Processor: Part 1 EE 361L Lab 2.1 Last update: August 1, 2016 Abstract: This report is the first of a three part series that discusses the features of the PIC 16F648A processor,
More informationDept. of Computer Engineering Final Exam, First Semester: 2016/2017
Philadelphia University Faculty of Engineering Course Title: Embedded Systems (630414) Instructor: Eng. Anis Nazer Dept. of Computer Engineering Final Exam, First Semester: 2016/2017 Student Name: Student
More informationChapter 1 Microprocessor architecture ECE 3120 Dr. Mohamed Mahmoud http://iweb.tntech.edu/mmahmoud/ mmahmoud@tntech.edu Outline 1.1 Computer hardware organization 1.1.1 Number System 1.1.2 Computer hardware
More informationELCT708 MicroLab Session #1 Introduction to Embedded Systems and Microcontrollers. Eng. Salma Hesham
ELCT708 MicroLab Session #1 Introduction to Embedded Systems and Microcontrollers What is common between these systems? What is common between these systems? Each consists of an internal smart computer
More informationMicrocontroller Overview
Microcontroller Overview Microprocessors/Microcontrollers/DSP Microcontroller components Bus Memory CPU Peripherals Programming Microcontrollers vs. µproc. and DSP Microprocessors High-speed information
More informationTOPIC 3 INTRODUCTION TO PIC ASSEMBLY LANGUAGE. E4160 Microprocessor & Microcontroller System. Prepared by : Puziah Yahaya JKE, POLISAS / DEC 2010
TOPIC 3 INTRODUCTION TO PIC ASSEMBLY LANGUAGE Prepared by : Puziah Yahaya JKE, POLISAS / DEC 2010 E4160 Microprocessor & Microcontroller System Learning Outcomes 2 At the end of this topic, students should
More informationNH-67, TRICHY MAIN ROAD, PULIYUR, C.F , KARUR DT. DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING COURSE MATERIAL
NH-67, TRICHY MAIN ROAD, PULIYUR, C.F. 639 114, KARUR DT. DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING COURSE MATERIAL Subject Name : Embedded System Class/Sem : BE (ECE) / VII Subject Code
More informationMicrocontroller systems Lec 2 PIC18LF8722 Microcontroller s s core
TKT-3500 Microcontroller systems Lec 2 PIC18LF8722 Microcontroller s s core Erno Salminen Copyright notice Some figures by Robert Reese, from supplementary CD of the course book from PIC18F8722 Family
More informationChapter 2 Sections 1 8 Dr. Iyad Jafar
Introducing the PIC 16 Series and the 16F84A Chapter 2 Sections 1 8 Dr. Iyad Jafar Outline Overview of the PIC 16 Series An Architecture Overview of the 16F84A The 16F84A Memory Organization Memory Addressing
More informationMICROPROCESSOR AND MICROCONTROLLER BASED SYSTEMS
MICROPROCESSOR AND MICROCONTROLLER BASED SYSTEMS UNIT I INTRODUCTION TO 8085 8085 Microprocessor - Architecture and its operation, Concept of instruction execution and timing diagrams, fundamentals of
More informationEE6008-Microcontroller Based System Design Department Of EEE/ DCE
UNIT- II INTERRUPTS AND TIMERS PART A 1. What are the interrupts available in PIC? (Jan 14) Interrupt Source Enabled by Completion Status External interrupt from INT INTE = 1 INTF = 1 TMR0 interrupt T0IE
More informationBasic Components of Digital Computer
Digital Integrated Circuits & Microcontrollers Sl. Mihnea UDREA, mihnea@comm.pub.ro Conf. Mihai i STANCIU, ms@elcom.pub.ro 1 Basic Components of Digital Computer CPU (Central Processing Unit) Control and
More informationCHAPTER ASSEMBLY LANGUAGE PROGRAMMING
CHAPTER 2 8051 ASSEMBLY LANGUAGE PROGRAMMING Registers Register are used to store information temporarily: A byte of data to be processed An address pointing to the data to be fetched The vast majority
More informationLecture (04) PIC 16F84A programming I
Lecture (04) PIC 16F84A programming I Dr. Ahmed M. ElShafee ١ Agenda Introduction to PIC16F84A programming using C language Preprocessors and, Compiler directives Constants Variables and data types Pointers
More informationLecture (03) PIC16F84 (2)
Lecture (03) PIC16F84 (2) By: Dr. Ahmed ElShafee ١ PIC16F84 has a RISC architecture, or Harvard architecture in another word ٢ PIC16F84 belongs to a class of 8 bit microcontrollers of RISC architecture.
More informationThe University of Texas at Arlington Lecture 3
The University of Texas at Arlington Lecture 3 CSE 3442/5442 Tuesday, We Began Chapter 2, Architecture & Assembly Language Programming, Introduced the PIC WREG (Working Register) 8 bit register in PIC
More informationAVR Microcontrollers Architecture
ก ก There are two fundamental architectures to access memory 1. Von Neumann Architecture 2. Harvard Architecture 2 1 Harvard Architecture The term originated from the Harvard Mark 1 relay-based computer,
More information8051 Microcontrollers
8051 Microcontrollers Richa Upadhyay Prabhu NMIMS s MPSTME richa.upadhyay@nmims.edu March 8, 2016 Controller vs Processor Controller vs Processor Introduction to 8051 Micro-controller In 1981,Intel corporation
More informationFIFTH SEMESTER DIPLOMA EXAMINATION IN ENGINEERING/ TECHNOLOGY-MARCH 2014 EMBEDDED SYSTEMS (Common for CT,CM) [Time: 3 hours] (Maximum marks : 100)
(Revision-10) FIFTH SEMESTER DIPLOMA EXAMINATION IN ENGINEERING/ TECHNOLOGY-MARCH 2014 EMBEDDED SYSTEMS (Common for CT,CM) [Time: 3 hours] (Maximum marks : 100) PART-A (Maximum marks : 10) I. Answer all
More informationwhich means that writing to a port implies that the port pins are first read, then this value is modified and then written to the port data latch.
Introduction to microprocessors Feisal Mohammed 3rd January 2001 Additional features 1 Input/Output Ports One of the features that differentiates a microcontroller from a microprocessor is the presence
More informationLAB WORK 2. 1) Debugger-Select Tool-MPLAB SIM View-Program Memory Trace the program by F7 button. Lab Work
LAB WORK 1 We are studying with PIC16F84A Microcontroller. We are responsible for writing assembly codes for the microcontroller. For the code, we are using MPLAB IDE software. After opening the software,
More information1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE:
1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE: A microprocessor is a programmable electronics chip that has computing and decision making capabilities similar to central processing unit
More informationLecture (04) PIC16F84A (3)
Lecture (04) PIC16F84A (3) By: Dr. Ahmed ElShafee ١ Central Processing Unit Central processing unit (CPU) is the brain of a microcontroller responsible for finding and fetching the right instruction which
More informationFig 1. Block diagram of a microcomputer
Computer: A computer is a multipurpose programmable machine that reads binary instructions from its memory, accepts binary data as input,processes the data according to those instructions and provides
More informationPIC Microcontroller Introduction
PIC Microcontroller Introduction The real name of this microcontroller is PICmicro (Peripheral Interface Controller), but it is better known as PIC. Its first ancestor was designed in 1975 by General Instruments.
More informationIntroduction to Microcontrollers
Introduction to Microcontrollers Embedded Controller Simply an embedded controller is a controller that is embedded in a greater system. One can define an embedded controller as a controller (or computer)
More informationBasics of Microprocessor
Unit 1 Basics of Microprocessor 1. Microprocessor Microprocessor is a multipurpose programmable integrated device that has computing and decision making capability. This semiconductor IC is manufactured
More informationFigure 1.1: Some embedded device. In this course we shall learn microcontroller and FPGA based embedded system.
Course Code: EEE 4846 International Islamic University Chittagong (IIUC) Department of Electrical and Electronic Engineering (EEE) Course Title: Embedded System Sessional Exp. 1: Familiarization with necessary
More information8051 Microcontroller
8051 Microcontroller The 8051, Motorola and PIC families are the 3 leading sellers in the microcontroller market. The 8051 microcontroller was originally developed by Intel in the late 1970 s. Today many
More informationThe Microcontroller. Lecture Set 3. Major Microcontroller Families. Example Microcontroller Families Cont. Example Microcontroller Families
The Microcontroller Lecture Set 3 Architecture of the 8051 Microcontroller Microcontrollers can be considered as self-contained systems with a processor, memory and I/O ports. In most cases, all that is
More informationDESIGN AND FABRICATION OF FARE METER OF TAXICAB USING MICROCONTROLLER
Proceedings of the International Conference on Mechanical Engineering 00 (ICME00) 8-0 December 00, Dhaka, Bangladesh ICME0-AM-0 DESIGN AND FABRICATION OF FARE METER OF TAXICAB USING MICROCONTROLLER Md.
More informationInput/Output Ports and Interfacing
Input/Output Ports and Interfacing ELEC 330 Digital Systems Engineering Dr. Ron Hayne Images Courtesy of Ramesh Gaonkar and Delmar Learning Basic I/O Concepts Peripherals such as LEDs and keypads are essential
More informationMT2 Introduction Embedded Systems. MT2.1 Mechatronic systems
MT2 Introduction Embedded Systems MT2.1 Mechatronic systems Mechatronics is the synergistic integration of mechanical engineering, with electronics and intelligent computer control in the design and manufacturing
More informationHistory and Basic Processor Architecture
History and Basic Processor Architecture History of Computers Module 1 Section 1 What Is a Computer? An electronic machine, operating under the control of instructions stored in its own memory, that can
More informationFlow Charts and Assembler Programs
Flow Charts and Assembler Programs Flow Charts: A flow chart is a graphical way to display how a program works (i.e. the algorithm). The purpose of a flow chart is to make the program easier to understand.
More informationb. List different system buses of 8085 microprocessor and give function of each bus. (8) Answer:
Q.2 a. Discuss and differentiate between a Microprocessor and a Microcontroller. Microprocessor is an IC which has only the CPU inside them i.e. only the processing powers such as Intel s Pentium 1,2,3,4,
More informationPhysics 335 Intro to MicroControllers and the PIC Microcontroller
Physics 335 Intro to MicroControllers and the PIC Microcontroller May 4, 2009 1 The Pic Microcontroller Family Here s a diagram of the Pic 16F84A, taken from Microchip s data sheet. Note that things are
More information2. List the five interrupt pins available in INTR, TRAP, RST 7.5, RST 6.5, RST 5.5.
DHANALAKSHMI COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING EE6502- MICROPROCESSORS AND MICROCONTROLLERS UNIT I: 8085 PROCESSOR PART A 1. What is the need for ALE signal in
More informationSOLUTIONS!! DO NOT DISTRIBUTE!!
THE UNIVERSITY OF THE WEST INDIES EXAMINATIONS OF FEBRUARY MID-TERM 2005 Code and Name of Course: EE25M Introduction to Microprocessors Paper: Date and Time: Duration: One Hour INSTRUCTIONS TO CANDIDATES:
More informationBolt 18F2550 System Hardware Manual
1 Bolt 18F2550 System Hardware Manual Index : 1. Overview 2. Technical specifications 3. Definition of pins in 18F2550 4. Block diagram 5. FLASH memory Bootloader programmer 6. Digital ports 6.1 Leds and
More informationIntroduction. Embedded system functionality aspects. Processing. Storage. Communication. Transformation of data Implemented using processors
Input/Output 1 Introduction Embedded system functionality aspects Processing Transformation of data Implemented using processors Storage Retention of data Implemented using memory Communication Transfer
More informationComputer Hardware Requirements for Real-Time Applications
Lecture (4) Computer Hardware Requirements for Real-Time Applications Prof. Kasim M. Al-Aubidy Computer Engineering Department Philadelphia University Real-Time Systems, Prof. Kasim Al-Aubidy 1 Lecture
More informationExplanation of PIC 16F84A processor data sheet Part 1: overview of the basics
Explanation of PIC 16F84A processor data sheet Part 1: overview of the basics This report is the first of a three part series that discusses the features of the PIC 16F94A processor. The reports will refer
More informationUniversity of Jordan Faculty of Engineering and Technology Department of Computer Engineering Embedded Systems Laboratory
University of Jordan Faculty of Engineering and Technology Department of Computer Engineering Embedded Systems Laboratory 0907334 6 Experiment 6:Timers Objectives To become familiar with hardware timing
More informationCREATED BY M BILAL & Arslan Ahmad Shaad Visit:
CREATED BY M BILAL & Arslan Ahmad Shaad Visit: www.techo786.wordpress.com Q1: Define microprocessor? Short Questions Chapter No 01 Fundamental Concepts Microprocessor is a program-controlled and semiconductor
More informationCONNECT TO THE PIC. A Simple Development Board
CONNECT TO THE PIC A Simple Development Board Ok, so you have now got your programmer, and you have a PIC or two. It is all very well knowing how to program the PIC in theory, but the real learning comes
More informationIn this tutorial, we will discuss the architecture, pin diagram and other key concepts of microprocessors.
About the Tutorial A microprocessor is a controlling unit of a micro-computer, fabricated on a small chip capable of performing Arithmetic Logical Unit (ALU) operations and communicating with the other
More informationChapter 4 Sections 1 4, 10 Dr. Iyad Jafar
Starting to Program Chapter 4 Sections 1 4, 10 Dr. Iyad Jafar Outline Introduction Program Development Process The PIC 16F84A Instruction Set Examples The PIC 16F84A Instruction Encoding Assembler Details
More informationCENG-336 Introduction to Embedded Systems Development. Timers
CENG-336 Introduction to Embedded Systems Development Timers Definitions A counter counts (possibly asynchronous) input pulses from an external signal A timer counts pulses of a fixed, known frequency
More informationMicro II and Embedded Systems
16.480/552 Micro II and Embedded Systems Introduction to PIC Microcontroller Revised based on slides from WPI ECE2801 Moving Towards Embedded Hardware Typical components of a PC: x86 family microprocessor
More informationMicro computer Organization
Micro computer Organization I Base Basic Components CPU SYSTEM BUSES VDD CLK RESET 1 MPU vs MCU Microprocessor Unit (MPU) CPU (called Microprocessor) is a die All components external to die Basically on
More informationMark II Aiken Relay Calculator
Introduction to Embedded Microcomputer Systems Lecture 6.1 Mark II Aiken Relay Calculator 2.12. Tutorial 2. Arithmetic and logical operations format descriptions examples h 8-bit unsigned hexadecimal $00
More informationELEG3923 Microprocessor Ch.0 & Ch.1 Introduction to Microcontroller
Department of Electrical Engineering University of Arkansas ELEG3923 Microprocessor Ch. & Ch. Introduction to Microcontroller Dr. Jingxian Wu wuj@uark.edu OUTLINE 2 What is microcontroller? (Ch..) 85 Microcontroller
More informationAssembly Language Instructions
Assembly Language Instructions Content: Assembly language instructions of PIC16F887. Programming by assembly language. Prepared By- Mohammed Abdul kader Assistant Professor, EEE, IIUC Assembly Language
More informationEmbedded Systems Design (630470) Lecture 4. Memory Organization. Prof. Kasim M. Al-Aubidy Computer Eng. Dept.
Embedded Systems Design (630470) Lecture 4 Memory Organization Prof. Kasim M. Al-Aubidy Computer Eng. Dept. Memory Organization: PIC16F84 has two separate memory blocks, for data and for program. EEPROM
More informationChapter 4. MARIE: An Introduction to a Simple Computer
Chapter 4 MARIE: An Introduction to a Simple Computer Chapter 4 Objectives Learn the components common to every modern computer system. Be able to explain how each component contributes to program execution.
More information1 MALP ( ) Unit-1. (1) Draw and explain the internal architecture of 8085.
(1) Draw and explain the internal architecture of 8085. The architecture of 8085 Microprocessor is shown in figure given below. The internal architecture of 8085 includes following section ALU-Arithmetic
More informationOutlines. PIC Programming in C and Assembly. Krerk Piromsopa, Ph.D. Department of Computer Engineering Chulalongkorn University
PIC ming in C and Assembly Outlines Microprocessor vs. MicroController PIC in depth PIC ming Assembly ming Krerk Piromsopa, Ph.D. Department of Computer Engineering Chulalongkorn University Embedded C
More informationChapter 1: Basics of Microprocessor [08 M]
Microprocessor: Chapter 1: Basics of Microprocessor [08 M] It is a semiconductor device consisting of electronic logic circuits manufactured by using either a Large scale (LSI) or Very Large Scale (VLSI)
More informationSection 30. In-Circuit Serial Programming (ICSP )
Section 30. In-Circuit Serial Programming (ICSP ) HIGHLIGHTS This section of the manual contains the following major topics: 30. Introduction... 30-2 30.2 Entering In-Circuit Serial Programming Mode...
More informationLecture (02) PIC16F84 (I)
Lecture (02) PIC16F84 (I) By: Dr. Ahmed ElShafee ١ Review of Memory Technologies The PIC 16 Series PIC 16F84A The PIC 16F84A Memory The Oscillator Instruction Cycle Power up and Reset Parallel ports Technical
More informationMARIE: An Introduction to a Simple Computer
MARIE: An Introduction to a Simple Computer Outline Learn the components common to every modern computer system. Be able to explain how each component contributes to program execution. Understand a simple
More informationChapter 1. Microprocessor architecture ECE Dr. Mohamed Mahmoud.
Chapter 1 Microprocessor architecture ECE 3130 Dr. Mohamed Mahmoud The slides are copyright protected. It is not permissible to use them without a permission from Dr Mahmoud http://www.cae.tntech.edu/~mmahmoud/
More informationMICROCONTROLLERS 8051
MICROCONTROLLERS 8051 PART A Unit 1: Microprocessor and Microcontroller. Introduction, Microprocessor and Microcontrollers, A Microcontroller survey. RISC & CISC CPU Architectures, Harvard & Von Neumann
More informationEE 308: Microcontrollers
EE 308: Microcontrollers AVR Architecture Aly El-Osery Electrical Engineering Department New Mexico Institute of Mining and Technology Socorro, New Mexico, USA January 23, 2018 Aly El-Osery (NMT) EE 308:
More informationMicrocontrollers. Introduction to the PIC 8-bit Midrange Family. ECE Senior Design 15 February 2017
Microcontrollers Introduction to the PIC 8-bit Midrange Family ECE Senior Design 15 February 2017 Popular Microcontrollers 8051 Intel then Everyone (8-bit old) PIC Microchip (8, 16 & 32bit) AVR Atmel (8
More informationUNIT V MICRO CONTROLLER PROGRAMMING & APPLICATIONS TWO MARKS. 3.Give any two differences between microprocessor and micro controller.
UNIT V -8051 MICRO CONTROLLER PROGRAMMING & APPLICATIONS TWO MARKS 1. What is micro controller? Micro controller is a microprocessor with limited number of RAM, ROM, I/O ports and timer on a single chip
More informationDepartment of Electronics and Instrumentation Engineering Question Bank
www.examquestionpaper.in Department of Electronics and Instrumentation Engineering Question Bank SUBJECT CODE / NAME: ET7102 / MICROCONTROLLER BASED SYSTEM DESIGN BRANCH : M.E. (C&I) YEAR / SEM : I / I
More informationPin Description, Status & Control Signals of 8085 Microprocessor
Pin Description, Status & Control Signals of 8085 Microprocessor 1 Intel 8085 CPU Block Diagram 2 The 8085 Block Diagram Registers hold temporary data. Instruction register (IR) holds the currently executing
More information