Projekt Anglicky v odborných předmětech, CZ.1.07/1.3.09/

Slides:



Advertisements
Similar presentations
Tutorial: Mechanic – electrician Topic: Electronics II. class Operational Amplifiers: Non-Inverting Amplifiers – Part 2 – Derivations Prepared by: Ing.
Advertisements

Educational program: Mechanic – electrician Program title: Technical training II. class Correction amplifier Worked out: Bc. Chumchal Miroslav Projekt.
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.
Educational program: Mechanic - electrician Title of program: Technical training II. class The loudspeakers Worked out: Bc. Chumchal Miroslav Projekt.
Tutorial: Mechanic - electrician Topic: Basics of electrical engineering the 2nd. year Measuring system 2 Prepared by: Ing. Jiří Smílek Projekt Anglicky.
Tutorial: Engineering technology Topic: Casting – basic definitions Prepared by: Ing. Elena Nová Projekt Anglicky v odborných předmětech, CZ.1.07/1.3.09/
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.
Tutorial: Engineering technology Topic: Pressed and plunger connections Prepared by: Ing. Elena Nová Projekt Anglicky v odborných předmětech, CZ.1.07/1.3.09/
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.
SENIOR PROJECT PRESENTATION REMOTE CONTROL CAR MURAT DİNÇER.
16.317: Microprocessor System Design I Instructor: Dr. Michael Geiger Spring 2012 Lecture 30: PIC data memory.
Railway Foundation Electronic, Electrical and Processor Engineering.
Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
Microcontroller Programming How to make something almost do something else Raffi Krikorian MAS November 2003.
Tutorial: Mechanic - electrician Topic: Technical training II. class Passive components – coils Prepared by: Melichařík Lubomír Projekt Anglicky v odborných.
Tutorial: Mechanic - electrician Topic: Technical training II. class Transistors 2 Prepared by: Melichařík Lubomír Projekt Anglicky v odborných předmětech,
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.
MICROCONTROLLERS. What is a microcontroller? A microcontroller is a nifty little gadget that houses a microprocessor, ROM (Read Only Memory), RAM (Random.
Building Assembler Programs Chapter Five Dr. Gheith Abandah1.
Parallel Ports, Power Supply and the Clock Oscillator Material to be covered  Parallel I/O ports  Interfacing external switches and LEDs  Clock Oscillator.
Training program: Mechanic - electrotechnician Program name: Digital processing - microprocessors III. class Microcontrollers Elaborated by: Vlastimil.
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.
Tutorial:Business Academy Topic: The Creation of a Chart Prepared by : Ing. Jiří Durďák Projekt Anglicky v odborných předmětech, CZ.1.07/1.3.09/
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.
 Mini-Computer  Microprocessor  The Brains  Arithmetic Logic Unit (ALU)  Control Unit  Program/ Data Storage  Peripherals (Input/Output) Low-Cost.
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.
Training program: Mechanic - electrotechnician Program name: Digital processing - microprocessors III. class Microcontrollers Elaborated by: Vlastimil.
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 ●
Training program: Mechanic - electrotechnician Program name: Digital processing - microprocessors III. class Microcontrollers Elaborated by: Vlastimil.
Department of Electronic & Electrical Engineering Lecture 2 ● Introduction to IO ● Using a subroutine ● Driving a 7seg display.
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.
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.
Microcontrollers A Practical Approach Ernesto Arroyo
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.
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.
Applications examples. A binary count : stepped manually and reset with push buttons. Define ports Reset portd Reset =0? INCF portd no Step =0? yes.
Tutorial: Mechanic -electrician Topic: Electronics II. class Transistors: Transistor CE Amplifier Prepared by: Ing. Jaroslav Bernkopf Projekt Anglicky.
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/
Microprocessor Systems Design I
Microprocessor Systems Design I
Microprocessor Systems Design I
Microprocessor Systems Design I
Projekt Anglicky v odborných předmětech, CZ.1.07/1.3.09/
Microprocessor Systems Design I
EECE.3170 Microprocessor Systems Design I
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
INSTRUCTION SET.
EECE.3170 Microprocessor Systems Design I
EECE.3170 Microprocessor Systems Design I
EECE.3170 Microprocessor Systems Design I
EECE.3170 Microprocessor Systems Design I
EECE.3170 Microprocessor Systems Design I
Presentation transcript:

Projekt Anglicky v odborných předmětech, CZ.1.07/1.3.09/04.0002 Anglicky v odborných předmětech "Support of teaching technical subjects in English“ 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/04.0002 je spolufinancován Evropským sociálním fondem a státním rozpočtem České republiky.

Program structure Definition: Initialization: Master program Subroutines Tables Definition of Special function registers Definition of user registers and variables Setup of peripheral devices Setup of initial values of the ports Setup of data downstream through the ports Setup of initial values of user registers and variables Main program loop Subroutines used in the main program loop Tables of data constants, conversion tables, texts

Program structure An example of definitions: porta equ 0x05 portb equ 0x06 trisa equ 0x85 trisb equ 0x86 status equ 0x03 #define RP0 status,5 #define RP1 status,6  #define TL1 PORTA,0 #define TL2 PORTA,1 #INCLUDE <P16F883.INC>

Program structure An example of initialization: INIT NOP BANKSEL ANSEL ;Bank selection CLRF ANSEL ;PORTA = DIGITAL I/O BANKSEL TRISA MOVLW b'11101111‚ ;Setup of data downstream of the A port MOVWF TRISA MOVLW b'11111111‚ ;Setup of data downstream of the B port MOVWF TRISB MOVLW .0 ;Reset of the C port MOVWF TRISC BANKSEL PORTA RETURN

Program structure An example of a master program: START CALL INIT ;initialization of the microcontroller bsf VYSTUP ;H level on the OUTPUT bit call zpozd ;timeout bcf VYSTUP ;L level on the OUTPUT bit goto START ;and again from the beginning …

Program structure An example of a subroutine: ;delay: delay loop delay movlw '255' movwf counter 1 decfsz counter 1 goto $-1 return

Program structure An example of a table: TAB RETLW b'11000000' ;character 0 RETLW b'11111001' ;character 1 RETLW b'10100100' ;character 2 RETLW b'10110000' ;character 3 RETLW b'10011001' ;character 4 RETLW b'10010010' ;character 5 RETLW b'10000010' ;character 6 RETLW b'11111000' ;character 7 RETLW b'10000000' ;character 8 RETLW b'10010000' ;character 9 RETLW b'10000110' ;character E

Summary of the subject matter - exercises What is the difference between a definition and a declaration? What is a peripheral device in a microcontroller? Why is it good to set up the initial vaules of the ports before we set up the data downstream in them? Why do we have to work with so-called banks? Which part of the memory of a microcontroller do they concern?

Summary of the subject matter - exercises What are the advantages and pitfalls of the use of the #define directive? What is the main principle of creating a master program? What is the purpose and sense of a subroutine, how is it called and how is it used? Give an example of the use of a delay loop. Give an example of the use of a table of constants.

References Datasheet Microchip PIC16F882/883/884/886/887 DS41291E (http://www.microchip.com) Microchip.com: Getting Started with PICmicro MCUs Microchip.com: MPLAB IDE User’s Guide Microchip.com: Quick Guide to Microchip Development Tools