FMUSER Wirless Transmit Video And Audio More Easier !

[email protected] WhatsApp +8618078869184
Language

    Serial debugger

     

    / * Defined as an interrupt mode serial port processing * / # define intersendstr / * is not 8032 series chip * / // # Define chip_8032 #I nclude # I nclude # I nclude # I nclude "err.h" #ifdef intersendstrunsigned char xdata ssendcombuf [256], sreccombuf [256]; unsigned char data bout, bin, bsout, bsin; # else # defsendchar ti = 0; sbuf = acc; while (! ti); ti = 0; # Endif // BPS setting 9600 is Psetbps (96) (11.0592MHz) Unsigned char psetbps (unsigned int bps) small {unsigned int T1; unsigned char t2; #ifdef interseStr / * If you send data using an interrupt mode, you must wait for sending data to replace the baud rate * / while (bsin! = bsout) { } Es = 0; #ENDIF #ifdef chip_8032if (3456% BPS) {RETURN Err_set_bps;} T1 = 3456 / bps; T1 -; T1 = ~ T1; RCAP2H = T1 / 256; RCAP2L = T1; T2MOD = 0x00; / * Using Timer 2 Wave Specific rate generator * / t2con = 0x34; / * TF2 = 0; EXF2 = 0; RCLK = 1; TCLK = 1; Exen2 = 0; Tr2 = 1; C / T2 = 0; CP / RL2 = 0 * / # Elset1 = 576 / bps; IF ((576% BPS) || ((T1 == 0)) || (T1> = 2 * 256)) {return err_set_bps;} f (t1>256) {PCON = 00; T2 = 256- (288 / bps);} else {PCON = 0x80; T2 = 256-T1;} TH1 = T2; TL1 = T2; TR1 = 1; #ENDIF / * mode 3 * / SM0 = 0; Ri = 0; Ti = 0; Ren = 1; SM1 = 1; SM2 = 1; #ifdef interseStr Bout = bin; bsout = BSIN; ES = 1; #ENDIF RETURN OK;} Void psendchar (unsigned char ch) small { #ifdef intersendstrunsigned char TCH; TCH = BSIN + 1; while (tch == bsout) {;} ssendcombuf [bsin] = ch; es = 0; if ((bsout == bsin)) {sbuf = ssendcombuf [bsin]; bsin ++;} else {BSIN ++ ES = 1; #ELSE ACC = CH; DefsendChar; #ENDIF} Unsigned char Pgetchar () small {unsigned char ch; #ifdef intersendstrch = Sract ++; returnif; ri = 0 #ndif} Bit PcharIncom () small {#ifdef interseStrif (bin! = bout) {Return 1;} return 0; #ELSERTURN RI; #ENDIF} void psendstring (unsigned char * st) small {while (* st) { Psendchar (* st); st ++;}} void psendarray (unsigned char * st, unsigned int LEN) small {unsigned Int II; for (ii = 0; II

     

     

     

     

    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