FMUSER Wirless Transmit Video And Audio More Easier !

[email protected] WhatsApp +8618078869184
Language

    Single chip advertising light, Advertising Lamp

     

    Single chip advertising light, Advertising Lamp Keywords: AT89S51, advertising light 1. Experimental task Use the method of taking a table to make the port P1 to make a single lamp change: 2 times, right shift 2 times, twinkling 2 times (delayed time 0.2 seconds). 2. Circuit schematic 3. System board hardware connection Connect the P1.0-P1.7 in the "MCU system" area to the L1-L8 port in the "Eight Road Luminous Diode Indicator Module" area, require: P1.0 corresponding to L1, P1.1 Corresponding to L2, ..., P1.7 corresponds to L8. 4. Programming content When designing the form, use the following instructions to complete (1). With the movdptr, # data16's instructions to make the data pointer register to the beginning of the table. (2). With MOVCA, @ A + DPTR instructions, based on the value of the DPTR according to the value of the accumulator, the program counter PC can be made to the data to be taken in the table. Therefore, as long as the control code is built into a table, use MOVCA, @ A + DPTR to make a coded operation, it is convenient to handle some complex control action, and the table process is shown below: 5. Block diagram 6. Assembly source ORG 0 Start: Mov DPTR, # TABLE LOOP: CLR A MOVC A, @ a + dptr CJNE A, # 01h, loop1 JMP START LOOP1: MOV P1, A Mov R3, # 20 LCALL DELAY Inc DPTR JMP loop DELAY: MOV R4, # 20 D1: MOV R5, # 248 DJNZ R5, $ Djnz R4, D1 Djnz R3, DELAY RET Table: DB 0FEH, 0FDH, 0FBH, 0F7H DB 0EFH, 0DFH, 0BFH, 07FH DB 0FEH, 0FDH, 0FBH, 0F7H DB 0EFH, 0DFH, 0BFH, 07FH DB 07FH, 0BFH, 0DFH, 0EFH DB 0F7H, 0FBH, 0FDH, 0FEH DB 07FH, 0BFH, 0DFH, 0EFH DB 0F7H, 0FBH, 0FDH, 0FEH DB 00H, 0FFH, 00h, 0FFH DB 01H End 7. C language source program #include Unsigned char code Table [] = {0xfe, 0xfd, 0xfb, 0xf7, 0xef, 0xDF, 0xBF, 0x7F, 0xfe, 0xfd, 0xfb, 0xf7, 0xef, 0xDF, 0xBF, 0x7F, 0x7F, 0xBF, 0xDF, 0xef, 0xF7, 0xfb, 0xfd, 0xfe, 0x7F, 0xBF, 0xDF, 0xef, 0xF7, 0xfb, 0xfd, 0xfe, 0x00, 0xff, 0x00, 0xff, 0x01}; UNSIGNED Char i; Void delay (void) { Unsigned char M, N, S; FOR (M = 20; M>0; M -) For (n = 20; n>0; n--) For (s = 248; s>0; s -); } Void main (void) { While (1) { IF (Table [i]! = 0x01) { P1 = Table [i]; i ++; DELAY (); } Else { i = 0; } } }, Read the full text

     

     

     

     

    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