Skip to main content

Time Delays in 8051 C

 Time Delays in 8051 C

Micro controller / electric engineering.


We can create time delay in 8051 C by two ways:


Using for loop statement


. Using the 8051 timers


We cannot get the exact delays using simple for loops because of following reasons:


1. The instruction execution speed varies according to the number of clock periods per machine cycle. The different variants of 8051 microcontroller use different clock periods per machine cycle.


2. The crystal frequency connected to the X₁-X₂ input pins. The duration of the clock period for the machine cycle is a function of this crystal frequency.


3. In case of C programs, it is the C compiler that converts the C statements and functions to assembly language instructions. As a result different compilers produce different code and hence instructions executed in a loop may vary with different compilers.

Comments

Popular posts from this blog

What is two transistor model of scr ? Explain SCR

  Power electronics Two Transistor Model of SCR full explain and pdf. Basic operating principle of SCR, can easily be understood by the two transistor model of SCR , as it is a combination of p and n layers. This is a pnpn thyristor. If we bisect it through the dotted line then we will get two transistors i.e. one pnp transistor with J 1 and J 2 junctions and another is with J 2 and J 3 junctions as shown in figure below. The relation between the collector current and emitter current is shown below Here, I C is collector current, I E is emitter current, I CBO is forward leakage current, α is common base forward current gain and relationship between I C and I B is Where, I B is base current and β is common emitter forward current gain. Let’s for transistor T 1 this relation holds And that for transistor T 2 Now, by the analysis of two transistors model we can get anode current, From equation (i) and (ii), we get, If applied gate current is I g then cathode current will b...

Gtu sem 5th python programming ( 3151108 ) question paper download

Python programming (3151108)exam questions paper summer 2022. Gtu python programming paper download. plication (MCA) , PDDC , Diploma Of pharmacy (D.pharm) , Diploma engineering. While you searched for download GTU B.E. CIVIL SEM 5 3151108 Python Programming gtupaper.in past exam papers.You might have gone to other sites on the internet along with the official gtu site i.e. gtu.ac.in but you must be confused there with your download GTU B.E. CIVIL SEM 5 3151108 Python Programming gtupaper.in past exam papers. AS you dont know the subject code of GTU B.E. CIVIL SEM 5 3151108 Python Programming gtupaper.in .That`s what we were filling lack of. So we created sudybudyy.in   Hey students, simply long press on image to download , you get download image option.   Here, on gtupaper.in You don`t need to remember your GTU B.E. CIVIL SEM 5 3151108 Python Programming gtupaper.in subject code.You just select your branch from be , bpharm , mba , mca , dpharm , mpharm , pddc , me and diploma...

What is unit vector :- explain unit vector

Electromagnetic fields Unit vector- A unit vector has a function to indicate the direction. Its magnitude is always unity, irrespective of the direction which it indicates and the co-ordinate system under consideration. Thus for any vector, to indicate its direction a unit vector can be used. Consider a unit vector āoA in the direction of OA as shown in o the Fig. This vector indicates the direction of OA but its magnitude is unity. Fig Unit vector aOA So vector OA can be represented completely as its magnitude R and the direction indicated by unit vector along its direction. ŌĀ = |OA| āOA =R āOA āOA=1