

We have connected a crystal oscillator of 11.0592MHz frequency to the PIN 19 and 18 i.e. In embedded C programming we can access the PIN 1 of port 1 by using P1_0. We are using pin one of port 1 to connect the LED. EEPROM is the flash memory which we used to burn the program into. RAM is used to store the data during execution of a program and EEPROM used to store the Program itself. Dual functionally like for interrupt, counters, timers etc.ĪT89S52 has two types of memory, first is RAM which has 256 Bytes of memory and second is EEPROM (Electronically Erasable and Programmable Read Only Memory) which has 8k bytes of memory. Some pins have the Dual functionality, which has been mentioned in bracket in Pin Diagram below. to read data form some device like sensor or to provide its output to some output device. Each pin having one Input/output line, means every pin can be used for input as well as for output, i.e. We can consider each port as 8 bit register, from the software point of view. It is 40 pin microcontroller, and has 4 ports (P0,P1,P2,P3), each port have 8 pins.


We have used a very popular microcontroller AT89S52, of 8051 family, by ATMEL.īefore going into detail, we should get some brief idea about microcontroller AT89S52. So here in this tutorial we are going to interface a LED with 8051 microcontroller, and will write a C Program to blink the LED. LED interfacing is the first thing, one would try to do while getting started with any microcontroller.
