-->

LED Blinking Using 8051

By
--> LED Blinking Using 8051 -Proteus Simulation Tutorials
AT89C51 is an 8-bit micro-controller and belongs to Atmel's 8051 family. AT89C51 has 4KB of Flash programmable and erasable read only memory (P-EROM) and 128 bytes of RAM. It can be erased and program to a maximum of 1000 times.

In 40 pin AT89C51, there are four ports designated as P1, P2, P3 and P0. All these ports are 8-bit bi-directional ports, i.e., they can be used as both input and output ports. Except P0 which needs external pull-ups, rest of the ports have internal pull-ups. When 1s are written to these port pins, they are pulled high by the internal pull-ups and can be used as inputs. These ports are also bit addressable and so their bits can also be accessed individually.

Port P0 and P2 are also used to provide low byte and high byte addresses, respectively, when connected to an external memory. Port 3 has multiplexed pins for special functions like serial communication, hardware interrupts, timer inputs and read/write operation from external memory. AT89C51 has an inbuilt UART for serial communication. It can be programmed to operate at different baud rates. Including two timers & hardware interrupts, it has a total of six interrupts.

One can read datasheets for detailed knowledge.

Lets start with our first program to blink the LED's at the PORT-0 of the Micro-Controller.
Note that these programs are made in Keil u Vision 3
-->

#include <REGX51.H> // Header file

void Delay(unsigned char i); // Function calling

void main()

{
P0 = 0x00;                               //PORT 0 as Output Port


while (1) {

P0 = 0xAA;                           // 10101010

Delay(1000);

P0 = 0x55;                           // 010101010

Delay(1000);

}
}

void Delay(unsigned char itime)

{

unsigned char i;

for (i = 0; i < itime; i++);

}

  1. Now put the generated *.hex files in the micro-controller's memory and view the result, the output is shown below.
Any doubt Please mail me i will help you thannara123(at)gmail.com

LED Blinking Using 8051

By
--> LED Blinking Using 8051 -Proteus Simulation Tutorials
AT89C51 is an 8-bit micro-controller and belongs to Atmel's 8051 family. AT89C51 has 4KB of Flash programmable and erasable read only memory (P-EROM) and 128 bytes of RAM. It can be erased and program to a maximum of 1000 times.

In 40 pin AT89C51, there are four ports designated as P1, P2, P3 and P0. All these ports are 8-bit bi-directional ports, i.e., they can be used as both input and output ports. Except P0 which needs external pull-ups, rest of the ports have internal pull-ups. When 1s are written to these port pins, they are pulled high by the internal pull-ups and can be used as inputs. These ports are also bit addressable and so their bits can also be accessed individually.

Port P0 and P2 are also used to provide low byte and high byte addresses, respectively, when connected to an external memory. Port 3 has multiplexed pins for special functions like serial communication, hardware interrupts, timer inputs and read/write operation from external memory. AT89C51 has an inbuilt UART for serial communication. It can be programmed to operate at different baud rates. Including two timers & hardware interrupts, it has a total of six interrupts.

One can read datasheets for detailed knowledge.

Lets start with our first program to blink the LED's at the PORT-0 of the Micro-Controller.
Note that these programs are made in Keil u Vision 3
-->

#include <REGX51.H> // Header file

void Delay(unsigned char i); // Function calling

void main()

{
P0 = 0x00;                               //PORT 0 as Output Port


while (1) {

P0 = 0xAA;                           // 10101010

Delay(1000);

P0 = 0x55;                           // 010101010

Delay(1000);

}
}

void Delay(unsigned char itime)

{

unsigned char i;

for (i = 0; i < itime; i++);

}

  1. Now put the generated *.hex files in the micro-controller's memory and view the result, the output is shown below.
Any doubt Please mail me i will help you thannara123(at)gmail.com

Basic Electronics

By



Electronics is the branch of science that deals with the study of flow and control of electrons (electricity) and the study of their behavior and effects in vacuums, gases, and semiconductors, and with devices using such electrons. This control of electrons is accomplished by devices that resist, carry, select, steer, switch, store, manipulate, and exploit the electron. 



Difference in “Electronics” and “Electrical

Electronics deals with flow of charge (electron) through non-metal conductors (semi-conductors).

Electrical deals with the flow of charge through metal conductors.
Example: Flow of charge through silicon which is not a metal would come under electronics whereas flow of charge through copper which is a metal would come under electrical.



How is Electricity Generated

We all know that everything on earth is made op of atoms. Each atom is made up of electronics which are negatively charged, protons which are positively charged and neutrons which are neutrally charged or they have no charge. The number of electrons and protons in an atom is always same. Look at the picture on the right.
Now what will happen when electronics, by any means, flow away from the atom (Protons cannot flow away from an atom because they are in the inner orbit than electrons and are very tightly and strongly bonded.)? Yes, this flow of electrons produces electricity.
Let us say there are two objects - A and B with 10 electrons each. Due to friction or any other reason, 2 electrons from the outer orbit of A flows away to B. Now there are 8 electrons in A and 12 electrons in B. What is the net result of this flow of electrons? Yes, object A will get negatively charged because of excess electrons and object B will get positively charged because of Deficit of electrons. This is how electricity is produced.

Ohm's Law

Ohm's law states that, in a given electrical circuit, the amount at current in amps is equal to the pressure in volts divided by the resistance in ohms. The formula is: I (Current) = V voltage or V = I x RR resistance or R = V/I.


Electronic Components

Electronic components are basic electronic element or electronic parts usually packaged in a discrete form with two or more connecting leads or metallic pads. Electronic Components are intended to be connected together, usually by soldering to a printed circuit board (PCB), to create an electronic circuit with a particular function (for example an amplifier, radio receiver, oscillator, wireless). Some of the main Electronic Components are: resistor, capacitor, transistor, diode, operational amplifier, resistor array, logic gate etc.
Electronic components are classed into either being Passive devices or Active devices. Active devices are different from passive devices. These devices are capable of changing their operational performance, may deliver power to the circuit, and can perform interesting mathematical functions. While a device that does not require a source of energy for its operation.


Active Electronic Components

An active device is any type of circuit component with the ability to electrically control electron flow (electricity controlling electricity). In order for a circuit to be properly called electronic, it must contain at least one active device. Active devices include, but are not limited to, vacuum tubes, transistors, silicon-controlled rectifiers (SCRs), and TRIACs. All active devices control the flow of electrons through them. Some active devices allow a voltage to control this current while other active devices allow another current to do the job.

Passive Electronic Components

Components incapable of controlling current by means of another electrical signal are called passive devices. Resistors, capacitors, inductors, transformers, and even diodes are all considered passive devices.Electronic Circuit
An Electronic Circuit may be defined as a collection of electronic elements that performs a prescribed function.
Electronic Circuit 

Analog Electronic Circuit

Analog electronic circuits are those in which signals may vary continuously with time to correspond to the information being represented. Electronic equipments like voltage amplifiers, power amplifiers, tuning circuits, radios, and televisions are mainly analog. 



Will Be Continue ....................



Basic Electronics

By



Electronics is the branch of science that deals with the study of flow and control of electrons (electricity) and the study of their behavior and effects in vacuums, gases, and semiconductors, and with devices using such electrons. This control of electrons is accomplished by devices that resist, carry, select, steer, switch, store, manipulate, and exploit the electron. 



Difference in “Electronics” and “Electrical

Electronics deals with flow of charge (electron) through non-metal conductors (semi-conductors).

Electrical deals with the flow of charge through metal conductors.
Example: Flow of charge through silicon which is not a metal would come under electronics whereas flow of charge through copper which is a metal would come under electrical.



How is Electricity Generated

We all know that everything on earth is made op of atoms. Each atom is made up of electronics which are negatively charged, protons which are positively charged and neutrons which are neutrally charged or they have no charge. The number of electrons and protons in an atom is always same. Look at the picture on the right.
Now what will happen when electronics, by any means, flow away from the atom (Protons cannot flow away from an atom because they are in the inner orbit than electrons and are very tightly and strongly bonded.)? Yes, this flow of electrons produces electricity.
Let us say there are two objects - A and B with 10 electrons each. Due to friction or any other reason, 2 electrons from the outer orbit of A flows away to B. Now there are 8 electrons in A and 12 electrons in B. What is the net result of this flow of electrons? Yes, object A will get negatively charged because of excess electrons and object B will get positively charged because of Deficit of electrons. This is how electricity is produced.

Ohm's Law

Ohm's law states that, in a given electrical circuit, the amount at current in amps is equal to the pressure in volts divided by the resistance in ohms. The formula is: I (Current) = V voltage or V = I x RR resistance or R = V/I.


Electronic Components

Electronic components are basic electronic element or electronic parts usually packaged in a discrete form with two or more connecting leads or metallic pads. Electronic Components are intended to be connected together, usually by soldering to a printed circuit board (PCB), to create an electronic circuit with a particular function (for example an amplifier, radio receiver, oscillator, wireless). Some of the main Electronic Components are: resistor, capacitor, transistor, diode, operational amplifier, resistor array, logic gate etc.
Electronic components are classed into either being Passive devices or Active devices. Active devices are different from passive devices. These devices are capable of changing their operational performance, may deliver power to the circuit, and can perform interesting mathematical functions. While a device that does not require a source of energy for its operation.


Active Electronic Components

An active device is any type of circuit component with the ability to electrically control electron flow (electricity controlling electricity). In order for a circuit to be properly called electronic, it must contain at least one active device. Active devices include, but are not limited to, vacuum tubes, transistors, silicon-controlled rectifiers (SCRs), and TRIACs. All active devices control the flow of electrons through them. Some active devices allow a voltage to control this current while other active devices allow another current to do the job.

Passive Electronic Components

Components incapable of controlling current by means of another electrical signal are called passive devices. Resistors, capacitors, inductors, transformers, and even diodes are all considered passive devices.Electronic Circuit
An Electronic Circuit may be defined as a collection of electronic elements that performs a prescribed function.
Electronic Circuit 

Analog Electronic Circuit

Analog electronic circuits are those in which signals may vary continuously with time to correspond to the information being represented. Electronic equipments like voltage amplifiers, power amplifiers, tuning circuits, radios, and televisions are mainly analog. 



Will Be Continue ....................



More Posts

gElectron. Powered by Blogger.

Contributors

16x2 LCD Interfacing with STM32,STM32F103C6

 16x2 LCD  Interfacing with STM32,STM32F103C6 lcd_init(); LCD_LINE1; lcd_String(" GeElectron"); LCD_LINE2; lc...

Contact Form

Name

Email *

Message *

Contact us

Name

Email *

Message *

Follow Us

https://www.facebook.com/gElectron-393939667321867/ FBbox/https://www.facebook.com/IVYthemes

Comments

[blogger]

MKRdezign

Test

Latest

[recent][newsticker]

Technology

Top Ads

RECENT COMMENTS

Subscribe Via Email

Subscribe to our newsletter to get the latest updates to your inbox. ;-)


Your email address is safe with us!

RECENT COMMENTS