+ All Categories
Home > Documents > Anglicky v odborných předmětech "Support of teaching technical subjects in English“

Anglicky v odborných předmětech "Support of teaching technical subjects in English“

Date post: 31-Dec-2015
Category:
Upload: vanna-rodgers
View: 18 times
Download: 3 times
Share this document with a friend
Description:
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. - PowerPoint PPT Presentation
13
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.
Transcript
Page 1: Anglicky v odborných předmětech "Support of teaching technical subjects in English“

Training program: Mechanic - electrotechnician

Program name: Digital processing - microprocessorsIII. classMicrocontrollers

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.

Page 2: Anglicky v odborných předmětech "Support of teaching technical subjects in English“

Peripheral devices are parts of the equipment connected to the input or output ports of a microcontroller (LED diodes, displays, relays, keyboard).

The devices connected to the input ports are read by a microcontroller, whereas the devices connected to the ports in an output mode are being written in.

It is desirable to ensure that careless handling with the ports of a microcontroller resulting in their damage (due to static electricity, careless plugging in of a microcontroller, etc.) does not occur.

ATTENTION!Maximum permitted output current of one pin is 25mA!

The sum of currents of all output pins of one port is 90mA at the most !!!

Microcontroller and the surrounding worldConnection of peripheral devices

Page 3: Anglicky v odborných předmětech "Support of teaching technical subjects in English“

Button as an input device

Metal contact = bouncing, oxidation, dirt, wearMetal gilded contact = bouncing, dirtRubber with a carbon layer = dirt, wearElectronic switch (Hall probe) = faultless

Page 4: Anglicky v odborných předmětech "Support of teaching technical subjects in English“

PORT A = inputPORT B = output

1st cycle 2nd cycle 3rd cycle 4th cycle

RB0 H L L L

RB1 L H L L

RB2 L L H L

RB3 L L L H

For 16 buttons, 8 lines are sufficient:

Keyboard as an input device(matrix circuit)

Page 5: Anglicky v odborných předmětech "Support of teaching technical subjects in English“

LED diode as an output device

Triggering of L levels at the RB0 output

Triggering of H levels at the RB0 output

Page 6: Anglicky v odborných předmětech "Support of teaching technical subjects in English“

ATTENTION!Do not forget the protection diode D1!

Relay as an output device

Page 7: Anglicky v odborných předmětech "Support of teaching technical subjects in English“

LED display as an output device(common anode circuit)

Page 8: Anglicky v odborných předmětech "Support of teaching technical subjects in English“

A quad of LED displays as an output device(multiplex control)

Page 9: Anglicky v odborných předmětech "Support of teaching technical subjects in English“

A quad of LED displays as an output device(serial data input)

Page 10: Anglicky v odborných předmětech "Support of teaching technical subjects in English“

Scheme of a preparation used for teaching microcontrollers (PIC16F883)

Page 11: Anglicky v odborných předmětech "Support of teaching technical subjects in English“

Summary of the subject matter

• What is a peripheral device?• How do you connect a button to a microcontroller? • How do you connect a relay with the pull-up current of

50mA to a microcontroller?

Page 12: Anglicky v odborných předmětech "Support of teaching technical subjects in English“

Summary of the subject matter

• Explain the principle of display multiplex control!• How do you ensure that the ports of a microcontroller are

protected from damage due to careless handling or static electricity?

• What is the function of a protection diode in a relay?

Page 13: Anglicky v odborných předmětech "Support of teaching technical subjects in English“

Datasheet Microchip PIC16F882/883/884/886/887 DS41291E (http://www.microchip.com)

Jiří Hrbáček: Mikrořadiče PIC16CXX a vývojový kit PICSTART (BEN – technická literatura, Praha 2001 3. dotisk 4. vydání)

Jiří Hrbáček: Komunikace mikrokontroléru s okolím 1 ((BEN – technická literatura, Praha 2002)

References


Recommended