Microcontroller 8051 Project 01 How to Interface a LED with microcontroller

preview_player
Показать описание
In this series, you will learn the Microcontroller programming In C Language and in Assembly Language.

LED
A light-emitting diode is an electronic component that is available in different shapes, sizes, and current ratings.
These are widely used in electronic circuits.
LED emits light when the electric current flows through it.


LED can be connected to a microcontroller output port in two different modes:
• Current Sinking
and
• Current Sourcing

Current Sinking Mode

In the current sinking mode, the cathode leg is connected to the microcontroller output port, and the anode leg of the LED is connected to the positive 5 Voltage power supply through a current-limiting resistor. The LED is turned ON when the output of the microcontroller is at logic 0, so the current flows through the LED.


Current Sourcing Mode
In current sourcing mode, the anode leg of the LED is connected to the microcontroller output port, and the cathode leg is connected to the ground through a current-limiting resistor. In this mode the LED is turned ON when the microcontroller output port is at logic 1.



Current Sinking Mode
How To Find the Value of a Resistor

If the voltage drop across a LED is 2 Volts.
And the LED current is 10 milliamperes.
Source voltage is 5 Volts.
And assuming the microcontroller output voltage is about 0.4 volts when the output is low,
So, we can calculate the value of the required resistor.



Download Proteus
How to Use Proteus.Tutorial for beginners || How to install the Proteus

How to Create Firmware Project in Proteus

How to use Keil Programming Tool for 8051 Microcontroller

How to Create New Project in Keil Version

Microcontroller Programming Lecture 01 Introduction

Microcontroller Programming Lecture 02 Numbering System

Microcontroller Programming Lecture 03 Logic Gates

Microcontroller Programming Lecture 04 Microcontroller 89C51

Microcontroller Programming Lecture 05 Register

Microcontroller Programming Lecture 06 Programming Language

Microcontroller Programming Lecture 07 C Programming Language

Microcontroller Programming Lecture 08 Data Type

Microcontroller Programming Lecture 09 C Language Operator

Microcontroller 8051 Lecture 10 Pin Description || C Language Programming

Microcontroller 8051 Lecture 11 Current Sinking and Current Sourcing Mode

Microcontroller 8051 Project 01 How to Connect a LED

Microcontroller 8051 Project 02 How to Use For Loop as Endless Loop

Microcontroller 8051 Project 03 How to Use While Loop
#8051microcontroller #electricalengineering #electricalengineering #microprocessorandmicrocontroller
Рекомендации по теме
Комментарии
Автор

i can't able to select any controller

rjsarvaiya
Автор

What is the use of push pull switch ... ???

justsleep
Автор

If I creat a 18 led chaser then what is the code

somakantamajumder
visit shbcf.ru