FMUSER Wirless Transmit Video And Audio More Easier !

[email protected] WhatsApp +8618078869184
Language

    C51 global initialization and precise delay procedure, 51 single-chip accurate delay procedure

     

    C51 global initialization and precise delay procedure, 51 single-chip accurate delay procedure Keywords: single-chip delay procedure / ************************************************* ************************************************** ******* Initialization Program * QiZhao, 2007 * All Rights Reserved * File: initial.h * By: QiZhao * Contact: [email protected]** Version: V2.1 γ * Corrector: QiZhao * Date: 2008.2.1 (Last modified) ** Remarks: Common set of macro definitions keyword, and by setting controlled * crystal oscillator frequency precision delay subroutine ********************. ************************************************** ************************************ / #ifndef _initial_h_#define _initial_h_ / ************************************************* ************************************************** ******** Global macro definitions *************************************** ************************************************** ***************** / #include // AT89S52 #include // Absolute address access #include // Related to the string #include // Related to Assembly Language #include // unicode conversion #include // Mathematics functions packet #include // Standard input or output #include // Memory Management #define TRUE 1 #define FALSE 0 #define bool bit // Boolean variable #define uchar unsigned char #define uint unsigned int #define ulong unsigned long #define FOSC 12000000UL // The frequency of crystal #define NOP _nop_(); / ************************************************* ************************************************** ******** Accurate delay (5us, 10us) *********************************** ************************************************** ********************* / void delay10us (void) // FOSC->12000000 {NOP NOP NOP NOP NOP NOP} void delay5us (void) // FOSC->12000000 {NOP} / ************************************************* ************************************************** ******** Accurate delay (1ms ~ 255ms) *********************************** ************************************************** ********************* / #define WAITE_HI (FOSC / 2/12/1000 >> 8) #define WAITE_LOW (FOSC / 2/12/1000 & 0xFF) void delayms (uchar time) {do {uchar j; ! #If WAITE_HI = 0 j = 0; {uchar i; for (i = WAITE_HI;. I .1882 0; i--) {while (--j);}} #endif ! #If WAITE_LOW = 0 j = WAITE_LOW; while (--j); #endif } While (--time);} / ************************************************* ************************************************** ******** Includes not repeat *************************************** ************************************************** ***************** / #endif, Read more

     

     

     

     

    List all Question

    Nickname

    Email

    Questions

    Our other product:

    Professional FM Radio Station Equipment Package

     



     

    Hotel IPTV Solution

     


      Enter email  to get a surprise

      fmuser.org

      es.fmuser.org
      it.fmuser.org
      fr.fmuser.org
      de.fmuser.org
      af.fmuser.org ->Afrikaans
      sq.fmuser.org ->Albanian
      ar.fmuser.org ->Arabic
      hy.fmuser.org ->Armenian
      az.fmuser.org ->Azerbaijani
      eu.fmuser.org ->Basque
      be.fmuser.org ->Belarusian
      bg.fmuser.org ->Bulgarian
      ca.fmuser.org ->Catalan
      zh-CN.fmuser.org ->Chinese (Simplified)
      zh-TW.fmuser.org ->Chinese (Traditional)
      hr.fmuser.org ->Croatian
      cs.fmuser.org ->Czech
      da.fmuser.org ->Danish
      nl.fmuser.org ->Dutch
      et.fmuser.org ->Estonian
      tl.fmuser.org ->Filipino
      fi.fmuser.org ->Finnish
      fr.fmuser.org ->French
      gl.fmuser.org ->Galician
      ka.fmuser.org ->Georgian
      de.fmuser.org ->German
      el.fmuser.org ->Greek
      ht.fmuser.org ->Haitian Creole
      iw.fmuser.org ->Hebrew
      hi.fmuser.org ->Hindi
      hu.fmuser.org ->Hungarian
      is.fmuser.org ->Icelandic
      id.fmuser.org ->Indonesian
      ga.fmuser.org ->Irish
      it.fmuser.org ->Italian
      ja.fmuser.org ->Japanese
      ko.fmuser.org ->Korean
      lv.fmuser.org ->Latvian
      lt.fmuser.org ->Lithuanian
      mk.fmuser.org ->Macedonian
      ms.fmuser.org ->Malay
      mt.fmuser.org ->Maltese
      no.fmuser.org ->Norwegian
      fa.fmuser.org ->Persian
      pl.fmuser.org ->Polish
      pt.fmuser.org ->Portuguese
      ro.fmuser.org ->Romanian
      ru.fmuser.org ->Russian
      sr.fmuser.org ->Serbian
      sk.fmuser.org ->Slovak
      sl.fmuser.org ->Slovenian
      es.fmuser.org ->Spanish
      sw.fmuser.org ->Swahili
      sv.fmuser.org ->Swedish
      th.fmuser.org ->Thai
      tr.fmuser.org ->Turkish
      uk.fmuser.org ->Ukrainian
      ur.fmuser.org ->Urdu
      vi.fmuser.org ->Vietnamese
      cy.fmuser.org ->Welsh
      yi.fmuser.org ->Yiddish

       
  •  

    FMUSER Wirless Transmit Video And Audio More Easier !

  • Contact

    Address:
    No.305 Room HuiLan Building No.273 Huanpu Road Guangzhou China 510620

    E-mail:
    [email protected]

    Tel / WhatApps:
    +8618078869184

  • Categories

  • Newsletter

    FIRST OR FULL NAME

    E-mail

  • paypal solution  Western UnionBank OF China
    E-mail:[email protected]   WhatsApp:+8618078869184   Skype:sky198710021 Chat with me
    Copyright 2006-2020 Powered By www.fmuser.org

    Contact Us