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

Slides:



Advertisements
Similar presentations
10 Ways to Ruin Your Mini-Max microcontroller (and lose $69)
Advertisements

Tutorial: Mechanic – electrician Topic: Electronics II. class Operational Amplifiers: Non-Inverting Amplifiers – Part 2 – Derivations Prepared by: Ing.
Tutorial: Obchodní akademie Topic: References Prepared by : Mgr. Zdeněk Hrdina Projekt Anglicky v odborných předmětech, CZ.1.07/1.3.09/ je spolufinancován.
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.
Input/Output (I/O) Ports and Interfacing
Processor System Architecture
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.
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/
Tutorial: Mechanic – electrician Topic: Electronics II. class RC Filters: RC High Pass Filter Prepared by: Ing. Jaroslav Bernkopf AVOP-ELEKTRO-Ber-008.
Projekt Anglicky v odborných předmětech, CZ.1.07/1.3.09/
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.
Educational program: Mechanic - electrician Title of program: Technical training II. class The loudspeaker as a load of the amplifier Worked out: Bc.
Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
Tutorial: Mechanic - electrician Topic:Basics of electrical engineering the 2nd. year Basic characteristics of electric appliances Prepared by: Škarka.
Embedded Systems Design
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 – 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,
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.
Learning program: Mechanic – electrician Name of the program: Numerical systems II. class Decimal numerical system Made by: Mgr. Holman Pavel Projekt.
Tutorial: Mechanic - electrician Topic: Basics of electrical engineering the 2nd. year Three-phase current Fuse Prepared by: Škarka Miloš Projekt Anglicky.
Tutorial: Mechanic – electrician Topic: Electronics II. class Operational Amplifiers: Inverting Amplifiers – Part 2 – Derivations Prepared by: Ing. Jaroslav.
Tutorial:Mechanic - electrician Topic:Basics of electrical engineering the 2nd. year Protection in electric networks Protection of inanimate parts Prepared.
Educational program: Mechanic - electrician Title of program: Technical training II. class The powerful amplifiers Worked out: Bc. Chumchal Miroslav Projekt.
Dr. Rabie A. Ramadan Al-Azhar University Lecture 6
Tutorial: Mechanic - electrician Topic: Technical training II. class Transistors 3 Prepared by: Melichařík Lubomír Projekt Anglicky v odborných předmětech,
Basic I/O Interface A Course in Microprocessor
Tutorial: Mechanic - electrician Topic: Basics of electrical engineering the 2nd. year Three-phase current, electrification system Prepared by: Škarka.
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.
8086/8088 Hardware Specifications Power supply:  +5V with tolerance of ±10%;  360mA. Input characteristics:  Logic 0 – 0.8V maximum, ±10μA maximum;
Training program: Mechanic - electrotechnician Program name: Digital processing - microprocessors III. class Microcontrollers Elaborated by: Vlastimil.
Tutorial: Mechanic - electrician Topic: Basics of electrical engineering the 2nd. Year Three-phase current Prepared by: Škarka Miloš Projekt Anglicky.
Tutorial: Mechanic - electrician Topic: Electronics II. Class Operational Amplifiers: Comparators – Part 1 - Basics Prepared by: Ing. Jaroslav Bernkopf.
Eng.Samra Essalaimeh Philadelphia University 2013/ nd Semester PIC Microcontrollers.
Tutorial:Business Academy Topic: Financial Market and Banks Prepared by: Ing. Ingrid Ilčíková 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 - Basics Prepared by: Ing. Jaroslav Bernkopf AVOP-ELEKTRO-Ber-001.
Tutorial: Mechanic – electrician Topic: Electronics II. class Operational Amplifiers: Non-Inverting Amplifiers – Part 1 - Equations Prepared by: Ing.
Chapter 2 Introducing the PIC Mid-Range Family and the 16F84A The aims of this chapter are to introduce: The PIC mid-range family, in overview The overall.
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.
Chapter 7 Larger Systems and the PIC 16F873A The aims of this chapter are to introduce: The architecture of the 16F873A microcontroller; The 16F873A memory.
Training program: Mechanic - electrotechnician Program name: Digital processing - microprocessors III. class Microcontrollers Elaborated by: Vlastimil.
Microcontroller Intel 8051 [I/O Ports]. Pin out of the 8051 –40 pin package –32 pins are used for the 4 ports. –V CC / V SS –ALE Address Latch Enable.
Training program: Mechanic - electrotechnician Program name: Digital processing - microprocessors III. class Microcontrollers Elaborated by: Vlastimil.
Presented by Sadhish Prabhu
Training program: Mechanic - electrotechnician Program name: Digital processing - microprocessors III. class Microcontrollers Elaborated by: Vlastimil.
Tutorial: Mechanic – electrician Topic: Electronics II. class Operational Amplifiers: Integrator Prepared by: Ing. Jaroslav Bernkopf AVOP-ELEKTRO-Ber-006.
Tutorial: Mechanic - electrician Topic: Basics of electrical engineering the 2nd. year Protection in electric networks Prepared by: Škarka Miloš Projekt.
Tutorial: Mechanic – electrician Topic: Electronics II.class Operational Amplifiers: Inverting Amplifiers – Part 1 - Equations Prepared by: Ing. Jaroslav.
Chapter Microcontroller
HOME AUTOMATION USING PC DONE BY RAJESHKUMAR S SRI HARSHA D.
A Quick Start Guide to PIC16F877 microcontroller And Microchip Development Environment A Quick Start Guide to PIC16F877 microcontroller And Microchip Development.
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/
Projekt Anglicky v odborných předmětech, CZ.1.07/1.3.09/
Interfacing Memory Interfacing.
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/
Introducing the PIC Mid-Range Family and the 16F84A
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.

PORTS from a programmer´s point of view They are used for communication of a microcontroller with its environment (the only pins brought out of the package, apart from the power supply and the circuit of the oscillator). They are mapped into the address space of the data memory (they belong to special function registers – see the list of SFRs). Data downstream through the ports is software programmable - at the level of individual bits of a port. The RE3 bit can be used only as an input (standardly MCLR)!

Illustration of a table (PIC16F883 datasheet) describing the function of pins in individual ports. All pins (except for pins No 8,19, 20) can be used as common digital I/O lines or can have a different function – see the table. The function of pins is software selectable (also during the program run). Pins No 8,19, 20 are supply pins. The RA3 pin is only an input pin! Data downstream is determined by writing into the TRIS registers. PIC16F883 PORTS

I = INPUT (data in) O = OUTPUT (data out) Memotechnic device: 1 = I = INPUT 0 = O = OUTPUT It is possible to set up the data downstream for each port separately. This can be done whenever, even during the program run. Setup of data downstream through the ports – TRIS registers

Ports – block diagram Flip-flop circuits of the D type form so-called output “latch” register. The data written from the data bus are, at the I/O pin, released only after the gate (controlled by the TRIS register output) opens.

Initialization of ports Initialization of ports is carried out at the start of a program: Setup of a port type (analog or digital) Setup of the data downstream of individual bits of the port An example of a program in assembler for the initialization of the A port: BANKSELANSEL;switching off of analog peripherals => CLRFANSEL;all ports = digital I/O CLRFANSELH BANKSELTRISA;setup of the data downstream of the A port: MOVLWB’ ’;RA = output, MOVWFTRISA;RA = input BANKSELPORTA;setup of the 0 bank – work with the ports

Main principles of working with ports Handling of unconnected input port pins: By means of hardware: –Connecting a pin to an earth potential –Connecting a pin to the positive power-supply voltage via a resistor By means of software: – Setting up a pin to an output mode (attention – then it cannot be earthed!) Protection against the current overload of the output pins: By a limiting resistor By current amplification (a switching transistor) By an insulated separating element (an optomember)

Summary of the subject matter What is the role of ports in a microcontroller? How many ports does the PIC16F883 microcontroller contain how are they marked? What is the bit width of a port? Is the data downstream through the ports firmly determined by the internal connection of a microcontroller? Are all the ports and their individual bits always and under all circumstances available?

Summary of the subject matter What is the role of the TRIS registers? For what reasons is so-called inicialization of ports carried out? Is it necessary to handle the unconnected pins of a port somehow? If so, how? From the documentation, find out the maximum permissible current of one pin of the port in an output mode and the maximum permissible current of the whole port! What important finding ensues from this information?

 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í)  Jiří Hrbáček: Komunikace mikrokontroléru s okolím 1 ((BEN – technická literatura, Praha 2002) References