Training program: Mechanic - electrotechnician Program name: Digital processing - microprocessors III. class Microcontrollers Elaborated by: Vlastimil.

Slides:



Advertisements
Similar presentations
Microprocessors A Beginning.
Advertisements

Training program: Mechanic - electrotechnician Program name: Digital processing - microprocessors III. class Microcontrollers Elaborated by: Vlastimil.
Educational program: Mechanic - electrician Title of program: Technical training II. class Monostable multivibrator Worked out: Bc. Chumchal Miroslav.
Training program: Mechanic - electrotechnician Program name: Digital processing - microprocessors III. class Microcontrollers Elaborated by: Vlastimil.
Slides created by: Professor Ian G. Harris PIC Development Environment MPLAB IDE integrates all of the tools that we will use 1.Project Manager -Groups.
Tutorial: Mechanic - electrician Topic: Basics of electrical engineering the 2nd. year Measuring system 2 Prepared by: Ing. Jiří Smílek Projekt Anglicky.
Educational program: Mechanic - electrician Title of program: Technical training II. class Oscillators Worked out: Bc. Chumchal Miroslav Projekt Anglicky.
Projekt Anglicky v odborných předmětech, CZ.1.07/1.3.09/
Tutorial: Mechanic - electrician Topic: Technical training II. class Printed circuit boards 1 Prepared by: Melichařík Lubomír Projekt Anglicky v odborných.
Basic Input Output System
Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
Prof. Jorge A. Ramón Introducción a Microcontroladores.
Tutorial: Mechanic - electrician Topic: Technical training II. class Passive components – condenser Prepared by: Melichařík Lubomír Projekt Anglicky v.
Tutorial: Mechanic - electrician Topic: Technical training II. class Semiconductor devices 2 Prepared by: Melichařík Lubomír Projekt Anglicky v odborných.
Railway Foundation Electronic, Electrical and Processor Engineering.
Railway Foundation Electronic, Electrical and Processor Engineering.
Presented by:IQBAL HUSSAIN ELECTRONICS&COMMUNICATI0N Final year.
1 CHAPTER 4 LANGUAGE/SOFTWARE Hardware Hardware is the machine itself and its various individual equipment. It includes all mechanical, electronic.
Tutorial: Mechanic - electrician Topic:Basics of electrical engineering the 2nd. year Basic characteristics of electric appliances Prepared by: Škarka.
Chapter 4 Starting to Program – an Introduction to Assembler The aims of this chapter are to introduce: the essentials of Assembler programming; the Microchip.
Tutorial: Mechanic - electrician Topic: Basics of electrical engineering the 2nd. year Measurement of resistance Prepared by: Ing. Jiří Smílek Projekt.
Tutorial: Mechanic - electrician Topic: Technical training II. class Passive components – transformers Prepared by: Melichařík Lubomír Projekt Anglicky.
Tutorial: Mechanic - electrician Topic: Technical training II. class Transistors 2 Prepared by: Melichařík Lubomír Projekt Anglicky v odborných předmětech,
1 © Unitec New Zealand Embedded Hardware ETEC 6416 Date: - 10 Aug,2011.
Training program: Mechanic - electrotechnician Program name: Digital processing - microprocessors III. class Microcontrollers Elaborated by: Vlastimil.
Department of Electronic & Electrical Engineering Embedded system Aims: Introduction to: Hardware. Software Ideas for projects ? Robotics/Control/Sensors.
Tutorial: Mechanic - electrician Topic: Basics of electrical engineering the 2nd. year Three-phase current Fuse Prepared by: Škarka Miloš Projekt Anglicky.
Building Assembler Programs Chapter Five Dr. Gheith Abandah1.
Tutorial: Mechanic - electrician Topic: Technical training II. class Transistors 3 Prepared by: Melichařík Lubomír Projekt Anglicky v odborných předmětech,
Programming and Problem Solving ELEC 330 Digital Systems Engineering Dr. Ron Hayne Images Courtesy of Ramesh Gaonkar and Delmar Learning.
Tutorial: Mechanic - electrician Topic: Fundamentals of electrical engineering the 2nd. year, RCD Prepared by : Škarka Miloš Projekt Anglicky v odborných.
Training program: Mechanic - electrotechnician Program name: Digital processing - microprocessors III. class Microcontrollers Elaborated by: Vlastimil.
Tutorial: Mechanic - electrician Topic: Electronics II. Class Operational Amplifiers: Comparators – Part 1 - Basics Prepared by: Ing. Jaroslav Bernkopf.
Projekt Anglicky v odborných předmětech, CZ.1.07/1.3.09/ je spolufinancován Evropským sociálním fondem a státním rozpočtem České republiky. Tutorial:
Introduction to Computer Application (IC) MH Room 517 Time : 7:00-9:30pm.
Tutorial: Mechanic - electrician Topic: Technical training II. class Transistors 1 Prepared by: Melichařík Lubomír Projekt Anglicky v odborných předmětech,
Tutorial: Mechanic – electrician Topic: Electronics II. class Operational Amplifiers: Non-Inverting Amplifiers – Part 1 - Equations Prepared by: Ing.
Projekt Anglicky v odborných předmětech, CZ.1.07/1.3.09/ je spolufinancován Evropským sociálním fondem a státním rozpočtem České republiky. Educational.
Slide 1 Project 1 Task 2 T&N3311 PJ1 Information & Communications Technology HD in Telecommunications and Networking Task 2 Briefing The Design of a Computer.
Training program: Mechanic - electrotechnician Program name: Digital processing - microprocessors III. class Microcontrollers Elaborated by: Vlastimil.
Tutorial: Business Academy Topic: Marketing research Prepared by : Ing. Adéla Hrabcová Projekt Anglicky v odborných předmětech, CZ.1.07/1.3.09/
Tutorial: Engineering technology Topic: Volume forming – swage forging Prepared by: Ing. Elena Nová Projekt Anglicky v odborných předmětech, CZ.1.07/1.3.09/
Training program: Mechanic - electrotechnician Program name: Digital processing - microprocessors III. class Microcontrollers Elaborated by: Vlastimil.
Department of Electronic & Electrical Engineering Template program. Input / Output (IO) ● Template program. ● Introduction to IO ● Setting up for IO ●
Lecture 7: Overview Microprocessors / microcontrollers.
Training program: Mechanic - electrotechnician Program name: Digital processing - microprocessors III. class Microcontrollers Elaborated by: Vlastimil.
Simple ALU How to perform this C language integer operation in the computer C=A+B; ? The arithmetic/logic unit (ALU) of a processor performs integer arithmetic.
Tutorial: Engineering technology Topic: Hot forming Prepared by: Ing. Elena Nová Projekt Anglicky v odborných předmětech, CZ.1.07/1.3.09/ je spolufinancován.
Tutorial: Obchodní akademie Topic: SUMIF, COUNTIF Functions Prepared by: Mgr. Zdeněk Hrdina Projekt Anglicky v odborných předmětech, CZ.1.07/1.3.09/
Embedded Computer - Definition When a microcomputer is part of a larger product, it is said to be an embedded computer. The embedded computer retrieves.
Training program: Mechanic - electrotechnician Program name: Digital processing - microprocessors III. class Microcontrollers Elaborated by: Vlastimil.
Tutorial: Mechanic – electrician Topic: Electronics II.class Operational Amplifiers: Inverting Amplifiers – Part 1 - Equations Prepared by: Ing. Jaroslav.
Department of Electronic & Electrical Engineering Lecture 3. ● Template program. ● Introduction to IO ● PORTA PORTB TRISA TRISB ● Using a subroutine ●
Programming PIC 16F84A in Assembly. PIC16F84 pin-out and required external components.
5-2-1 PIC microcontroller. Learning objectives To aid revision, areas that are examinable are identified by a vertical line in the left margin. Where.
Programming and Debugging with the Dragon and JTAG Many thanks to Dr. James Hawthorne for evaluating the Dragon system and providing the core content for.
Recap – Our First Computer WR System Bus 8 ALU Carry output A B S C OUT F 8 8 To registers’ read/write and clock inputs Sequence of control signal combinations.
I/O PORTS. General purpose I/O pins can be considered the simplest of peripherals. They allow the PICmicro™ to monitor and control other devices. To add.
Tutorial: Mechanic -electrician Topic: Electronics II. class Transistors: Transistor CE Amplifier Prepared by: Ing. Jaroslav Bernkopf Projekt Anglicky.
Projekt Anglicky v odborných předmětech, CZ.1.07/1.3.09/
Projekt Anglicky v odborných předmětech, CZ.1.07/1.3.09/
Introduction to programming
COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE
Microprocessor Systems Design I
Microprocessor Systems Design I
Projekt Anglicky v odborných předmětech, CZ.1.07/1.3.09/
Projekt Anglicky v odborných předmětech, CZ.1.07/1.3.09/
Projekt Anglicky v odborných předmětech, CZ.1.07/1.3.09/
EECE.3170 Microprocessor Systems Design I
EECE.3170 Microprocessor Systems Design I
Presentation transcript:

Training program: Mechanic - electrotechnician Program name: Digital processing - microprocessors III. class Microcontrollers Elaborated by: Vlastimil Vlček Projekt Anglicky v odborných předmětech, CZ.1.07/1.3.09/ je spolufinancován Evropským sociálním fondem a státním rozpočtem České republiky.

How does a microcontroller work? Unlike the classic hardware solution by means of standard digital circuits, the required function of an electronic device is carried out by means of a program which is saved in a dedicated area of the memory of a microcontroller. After the program is launched, the microcontroller reads the first instruction, decodes it and carries it out. Immediately afterwards, the program will do the same with the second instruction, then the third, fourth etc. This is therefore referred to as a sequence of instructions, forming a definite functional unit which performs a particular activity. Program run is controlled by an internal source of clock frequency. Instructions are carried out individually, at one moment it is possible to carry out only one instruction, it is therefore not possible to carry out two or more instructions at the same time. Everything, however, occurs many times per second, so the result is a seemingly continuous action.

Procedure for creating applications with microcontrollers Assignment Design of an electric circuit diagram Assembling a functional model of the design prototype Design of the program block diagram Writing the source text of the program Translation into the machine code of a microcontroller, elimination of syntactic errors Debugging of individual parts of the program (possible software simulation), debugging on a functional model (function check, testing) Writing a finished, debugged code in the program memory of a microcontroller

Development environment Development environment is a complex of means for assembling and debugging of a program in the target application. ICD (In Circuit Debugger) is a method of program debugging directly inside the chip of a microcontroller (in its program memory).

Main principles of designing a device with microcontrollers. Careful design and check of a circuit diagram. Careful construction of a functional model (thorough check of the printed circuit, measuring the components, high-quality soldering, not to use soldering pastes and other preparations, only clean colophony!). Fit the important parts of the program source text with notes to make it comprehensible even after a longer time. In longer programs use the principles of structured programming, debug the individual functional blocks separately and call them by means of subroutines. Thus the main program block can be short and clear and both the structure and the function of the program are obvious at first sight.

An example of designing a simple device controlled by a microcontroller. Design an electronic device in which a light emitting diode (LED) is switched on after pressing the button. The LED diode must remain on while the button is pressed; when the button is released, the diode must switch off. Implement the device by means of the PIC16F883 microcontroller. The function of the device must be implemented with the help of software.

Circuit diagram design

Block diagram

Corresponding code in an assembler list F=inhx8m, P=16F84A, R=hex, N=0 __config 0x3FF9 ;Definition of special function regist ers Portaequ0x05 portb equ0x06 trisa equ0x85 trisb equ0x86 Status equ0x03 #defineTLRB0;the button is on a zero bit of the B port #defineLEDRA0;the LED diode is on a zero bit of the A port org0 ;Port inicialization bankseltrisa;bank selection movlw b' ' ;setup of ports movwf trisa movlw b' ' movwf trisb bankselporta;bank selection bsfLED;the LED diode switching off ;The beginning of the main program back btfscTL;button test. Is it pressed? gotoback;no -> we read again bcfLED;yes -> switch on the LED diode! zp1btfssTL;button test. Is it already released? gotozp1;no -> we read again bsfLED;yes -> switch off the LED diode! goto back end

Clear presentation of the function of the whole assignment Clear view of the division of a problem into individual parts Universality of the solution – independence on a particular programming language (knowledge of a particular programming language is not necessary at this moment) Easy portability between various development systems and programming languages (there is no programming code yet) In more complicated tasks, it is possible to make detailed drawings of individual main functional units, they describe a certain part of the program in a more detailed way. A certain limit must not be, however, exceeded, otherwise the main advantage of a block diagram – clearness – will disappear. The purpose of a block diagram

Summary of the subject matter What is the task of a program in a microcontroller? What is the task and purpose of a block diagram? Can any text editor (e.g. MS-Word) be used for writing the source text of a program?

Summary of the subject matter Is it possible for a microcontroller to process several instructions at the same time? What springs to your mind when you hear the term “development environment”?

 Datasheet Microchip PIC16F882/883/884/886/887 DS41291E (  Jiří Hrbáček: Mikrořadiče PIC16CXX a vývojový kit PICSTART (BEN – technická literatura, Praha dotisk 4. vydání) References