
























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Microcontroller is a best subject to learn. Feel free to explore them.
Typology: Lecture notes
Uploaded on 06/24/2020
1 / 32
This page cannot be seen from the preview
Don't miss anything!

























Electrically controllable switch ◦ Industrial controls, automobiles, and appliances Isolation of two separate sections of system with two different voltage source Consists of: coil, spring, and contact Types of relay:
◦ Single Pole Double Throw(SPDT) ◦ Double Pole Double Throw(DPDT)
Compared to electromechanical relays Made out of semiconductor materials Faster switching response time Greater life expectancy Low input current and small packaging size
VDD and VSS of the PIC microcontroller is not shown in the circuit diagram. VDD should be connected to + 5 V and VSS to GND.
An Optocoupler, also known as an Opto-isolator or Photo-coupler, is an electronic components that interconnects two separate electrical circuits by means of a light sensitive optical interface. The basic design of an Optocoupler consist: ◦ LED that produces infra-red light and, ◦ a semiconductor photo-sensitive device that is used to detect the emitted infra-red beam. ◦ Both the LED and photo-sensitive device are enclosed in a light-tight body or package with metal legs for the electrical connections as shown. An optocoupler or opto-isolator consists of a light emitter, the LED and a light sensitive receiver which can be a single photo-diode, photo-transistor, photo-resistor, photo-SCR, or a photo-TRIAC and the basic operation of an optocoupler is very simple to understand.
The way it works is simple: ◦ when a signal arrives, the LED within the optocoupler is turned on, and it illuminates the base of a photo-transistor within the same case. ◦ When the transistor is activated, the voltage between collector and emitter falls to 0.7V or less and the microcontroller sees this as a logic zero on its RA4 pin.
An Optocoupler can be also used to separate the output signals. If optocoupler LED is connected to microcontroller pin, logical zero on pin will activate optocoupler LED, thus activating the transistor. This will consequently switch on LED in the part of device working on 12 V. Layout of this connection is shown below.
LCD is used to display information ◦ Calculator, mobile phone, security system. Two types of LCD: ◦ Graphic LCD can display all graphics. ◦ Alphanumeric LCD can only displays alphabets and numbers. ◦ Alphabets: A,B, C … a, b, c … ◦ Numeric: 0 , 1 , 2 , 3 ,…, 9 Categorized based on the numbers of characters can be displayed on the LCD. ◦ 16 x 2 : consists of 2 rows with maximum 16 characters for each row.
LCD Memory ◦ DDRAM ‐ Display Data RAM ◦ Storing characters that should be displayed ◦ The memory size is sufficient for 80 characters 2 line x 16 Characters
LCD Memory ◦ CGROM ‐ Character Generator ROM ◦ Default character map with all characters that can be displayed on the screen ◦ The address match the characters of ASCII
A seven segment LED display is an special arrangement of 7 LED elements to form a rectangular shape using two vertical segments on each side with one horizontal segment on the top, middle, and bottom. The segments are marked with non-capital letters: a, b, c, d, e, f, g and dp, where dp is the decimal point. The 8 LEDs inside the display can be arranged with a common cathode or common anode configuration. ◦ In a common cathode display, the cathodes of all the segment LEDs are tied together and this common point must be connected to the ground. A required LED segment is then turned on by applying a logic 1 to its anode. ◦ In common anode displays, all the anodes are tied together and the common anode is connected to the supply voltage Vcc. Individual segments are turned on by applying logic 0 to their cathodes. When more than one seven segment display is used, a multiplexing technique is used to minimize the required number of microcontroller pins.