EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Topics / what is 1275 in delay function in the embedded c pgm

what is 1275 in delay function in the embedded c pgm

|

Microcontroller › 8051 › what is 1275 in delay function in the embedded c pgm

  • This topic has 5 replies, 3 voices, and was last updated 11 years ago by sarfraz.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • February 13, 2015 at 1:56 pm #3459
    sarfraz
    Participant

    hi guys,

       I want to know a small clarification in embedded c programming that in delay function u can see that the value 1275 is mentioned. but i dnt know that how its determined, how its coming

    pls if u know the answer just share me

    Thanx

    February 14, 2015 at 10:07 am #12587
    Rohit
    Participant

    its just the numer of machine cycles delay loop is wasting..

    February 15, 2015 at 5:59 pm #12598
    Ashutosh Bhatt
    Participant

    its a value found out of trial and errors for 1 ms delay. with this value in for loop, the loop rotates for 1 ms with 12 MHz crystal.

    how ever it is for 8051 type devices only. not for any other device

    February 17, 2015 at 10:12 am #12612
    sarfraz
    Participant

    It is a delay value like you said but thing is that why we are taking that the particular value(1275) and also i want to know that how they determined. becase you can take assembly programming, we can easy to find the delay value by its machine cylce.

    thank you for your great reply but i still didn't get it

     

    February 17, 2015 at 5:45 pm #12614
    Ashutosh Bhatt
    Participant

    you read my answer answer carefully dear

    i wrote "trial and error" means it is adjusted to 1 ms during simuation. in KEIL when you simulate it shows how many machine cycle wasted that means how much time is wasted

    February 18, 2015 at 9:22 am #12624
    sarfraz
    Participant

    The delay time is calculated only by during the simulation of the program(i.e.,only by practically). Is it right?

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • What diode should I use? March 7, 2026
  • LM016L + PCF8574 I2C Backpack Schematic with Backlight Control March 7, 2026
  • Expensive hobby March 7, 2026
  • USING EASYEDA BUT SOMETHING ISN'T RIGHT? March 7, 2026
  • What is this component and what is its function? March 6, 2026

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2026 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise