Monday, April 1, 2013

Description of block-diagram of 8051

                     Description of block-diagram of 8051

Hello friends,
I think many of you are enjoy during reading of my last post on topic "introduction of micro-controllers".now in this post i am going to describe the block diagram of 8051 .starting with the practical knowledge of bolcks which is attached in this block diagram,in last of this post i will tell you whole functionality of block diagram as you see there is two memory used in block diagram one is ROM(4K byte) and other is RAM(128 byte),ROM stand READ ONLY MEMORY it is nonvolatile memory .non-volatile means permanently storage of data,data store in this type of memory can not change by user .The size of ROM is 4K byte ,in one byte there is 8bit or we can say 2Nibble or one word. 1kilobyte is equal to 1000bytes so 4kilobytes is equal to 4000byte,so the total capacity of ROM is 4000bytes. ROM is contains programs and information essential to operation of computer. RAM stand "RANDOM ACCESS MEMORY" it is volatile memory means user can change the data store in this type of memory ,sometimes it is called read/write memory,data storage is not permanently if poower is off then data store in this memory is lost.  Its total capacity of storing data is 128 bytes. RAM is used by the computer for temporary storage of program that is running.

I/O PORTS also attached in block diagram,friend as i give  example in my last post which is related to computer working,computer takes input from the keyboard,mouse,the same concept involved here , we give input to controller by the I/O ports ,there is four I/O ports that is PORT0,PORT1,PORT2,PORT3.we use these ports for giving input and taking output from controller or we attache our peripheral  to these ports,for control peripheral by micro-controller.

Next blocks attached to block diagram are Timer0 & Timer1 ,serial port,interrupt control,bus control.we use   Timer0 & Timer1 for generating time delay,suppose if we want to blink LED in interval of one second then we use timers,we can also generate delay with the help of registers but delay is not accurate ,if we want accuracy then prefer timers.we use serial ports if we want to communicate our controller to PC,to other controllers,to any others module like wireless module,RF module etc,then we can easily established connection through serial port.Bus control is used for controlling the buses which are present in micro-controller ,we use buses only for transfer of data from one place to other place ,just I can say that buses are used for communication purpose.interrupt control we discuss in more detail in next post ,simply here we consider that interrupt occurs when if any peripheral wants its service during program,it simply send inteerupt signal to controller for their services.
In this block diagram description post my main aim is to tell you what are the practical use of I/O PORTS,TIMERS,SERIAL PORTS,MEMORY,BUS, because theoretical things are already given in books.now i want to give you whole functionality of block diagram in few lines .The function of CPU is to execute(process)information stored in memory,the function of I/O devices is to provide a means of communicating with CPU.the CPU is connected to memory and I/O through strip of wire called bus.the bus carries information from place to place inside a computer.In every computer there are three types of buses :address bus,databus,control bus.device such as memory or I/O to be recognised by the CPU,it must be assigned an address.the address assigned to a given device must be unique,no two devices are allowed to have the same address.The CPU puts the address on address bus and decoding  circuitry finds device,then CPU uses the data bus either to get data from that device or to send data to it.The control buses to provide read or write signals to the device to indicate if the CPU is asking for information or sending it information. 

from my next post i will suggest you how to build a project with the help of 8051 and also teach you how to make program in assembly and c language .Thanks every one for reading my post .
regards
Raushan Kr.

Sunday, March 31, 2013

Introduction to micro-controllers

                              Introduction to micro-controllers

Hello friends, 
In this post i am going to tell you importance of micro-controllers in field of  technology.now a days technology is developing very fast in different fields,now in field of micro-controller various types of controllers present in market .According to my experience if student understand all the function of micro-controller 8051 then they will easily work on others controllers like AVR,MSP,DSP,ARM,these controllers are different from each other in memory,no.of timer,counter,memory,I/O ports .so i suggest student students starts from basic controller 8051.
The word "micro-controller" mean's small ,low cost computer built for dealing with specific task.why i called small computer? i am giving you practical example you are reading my post on laptop or desktop,all computer have CPU (central processing unit) that execute program,CPU in machine executing a program that implements the web browser that is displaying this page.CPU loads program from somewhere,the browser program is loaded  from HARD DISK(memory),computer have RAM where it  can store "variable",computer also have some I/O devices so it can talk to people or i can tell we give command to computer like open folder ,open file,open browser,open videos etc.The keyboard and mouse are input devices ,monitor and printer are output devices,we simply place our cursor on particular folder or video,mp3 file and click on it ,the related data display on the monitor.so friends through this example i want to tell you we give our command to micro-controller through I/O ports (ports describe later) and controller work according to our commands,or controller control the peripheral devices which we are attached to controller.we writes our commands in a particular programming language like assembly or c/c++ language.

8051 micro-controller have I/O ports,RAM,ROM,TIMER<SERIAL COMMUNICATION PORTS,these thing distinguish micr-controller from micro-processor.8051 had 128 bytes of RAM,4K bytes of on-chip ROM,two timers(no.of timers varies by series of 8051),one serial port and four port(each 8 bit wide) all on single chip.The 8051 is a 8bit processor that means CPU can work on only 8 bit of data at a time.8051 can have a maximum of 64K bytes of on-chip ROM,many manufacturers have put only 4K bytes on chip.i discuss each and every part of 8051 in further my post in  detail. Block diagram of 8051
                                     


   friends i will discuss this block diagram on my next post.Thanks for reading my post ...
regards
Raushan Kumar.