FMUSER Wirless Transmit Video And Audio More Easier !

[email protected] WhatsApp +8618078869184
Language

    Program design based on ATMEGA16 microcontroller control LCD display

     

    After mastering the control of the LCD, we need to integrate the LCD into the password storage box to make it an independent system. In this issue, there is a source program for controlling the liquid crystal display in this issue of the disc, and copy the ICD.c and LOD.H to the 7th period routine psmanager, and open the project Psrnanager with ICCAVR, then Add ICD.C and ICD.H, as shown below, respectively. Remove the following code in ICD.C: / * Clock is 8MHz * / Void delay_1us (void) { ASM ("NOD"); } Void delay_us (unsigned int itimes) { Unsigned int itemp; For (itemp = 0; itemp { DELAY_1US (); } } / ** / This is because the above two functions have been defined in the delay.h file included in ICD.C, "# include" delay.h "statement. Then add a statement "#include" icd.h "in main.c, so you can call all LCD-related functions in the main.c file. Add the initialization of the LCD in main.c. DDRD = 0xFF; Portd = 0xff; DDRB = 0xFF; Portb = 0xff; // LCD Control Pin Initialization LCDReady (); LCDinit (); // LCD initialization completion After completing the initialization of the LCD, the next step in the next step of the LCD is implemented during each process of the system. First consider the boot screen, you can display "PAMWORD MAN-AGER V1.0" 2 seconds (see Figure 2), place this part program after the password storage box engine is initialized, as follows: UART_INIT (); Charswrite (0,1, "passwordmanager); Charswrite (6, 2, "v1.0"); DELAY_MS (2000); // 2 seconds delay After entering the While primary loop, you must first make an initial one for the LCD. To remove the content displayed on the LCD. Then display "please INPUTPW; ", waiting for user input operation. Clearlcd (); // clear screen LCD DELAY_US (80); // Waiting for the clear screen instruction to complete Charswrite (0,1, "pleaseinputpw:"); / / ICD display "PleaseInputPw:" Next procedure starts waiting and handles the user to make a keypad input. When the user performs password input, the user enters a password, and should display a "*" number at the LCD. This part of the code should be added to the inspection keyboard input of the password storage box project, pay attention to the * number to display the second line of the LCD, as follows: While (CBufferps [ctemp] == 0xAA); // Return 0xAA Description Keyboard No action PUTCHAR (CBufferps [ctemp]); Charswrite ((0 + CTEMP), 2, "*"); // in the corresponding Location display * After the user completes the input, whether the password entered correctly, Need to clear the screen again, ready to display the next content. CTEMP = check_ps (); // This function is executed. Say Ming user input to complete 6-digit password Clearlcd (); // clear screen LCD DELAY_US (80); // Waiting for the clear screen instruction to complete If the user enters the correct, the data stored in the EEPROM should be displayed in turn, and then "pressaiKeyToExit ...", wait for the user to enter any key to exit. Pay attention to it when you are displayed, 1. If you encounter '%', you should read a group of passwords, you should wait for several seconds to make it easy for users to watch the password. 2. If you encounter '

     

     

     

     

    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

    , all passwords have been read, waiting for several seconds and quit, 3. If the number of characters of a group of passwords is greater than 16, the LCD will be displayed. Charuemp_show [2] = (0); // Used for LCD display data CTEMP = 0; // Display position initialization, in LCD 0 column UEMP_SHOW [1] = 0; // Used to store arrays of display data End sign While (EEPROM_READ (IADDRESS)! = $ ') { IF (EEPROM_READ (IADDRESS) == "%") // Group password reading is completed { Putchar (0xOD); Putchar (0xoa); // Enter backhand DELAY_MS (4000); // delay4s to facilitate user view Clearlcd (); // clear screen LCD DELAY_US (80); CTEMP = 0; // The next set of codes in the starting position on the LCD } + Else { Putchar (EEPROM_READ (IADDRESS)); Temp_show [0] = EEPROM_READ (IADRESS); CTEMP ++; IF (CTEMP "18) // The total number of passwords is less than 16 In the first line of the LCD { Charswrite (CTEMP-1), 1, TEMP_SHOW); // Display a character } Else // more than 16, in the second line of LCD { Charswrite (CTEMP-18), 2, TEMP_SHOW); // Second line shows a character } } Iaddress ++; ; Putchar (0xOD); Putchar (0xoa); // Enter backhand DELAY_MS (4000); // delay4s, used to display the last set of strings Iaddress = 7; PUTS ("Press any key to exit"); Clearlcd (); // clear screen LCD DELAY_US (80); Charswrite (0, 1, "pressanyKey); Charswrite (0, 2, "toExit ..."); // ICDSHOW "PressanyKeyToexit" CTEMP = 0; DO CTEMP = scan_keyboard (); While (ctemp == 0xaa); // Waiting for user to enter any key to exit If the user enters an error, the "Password" is displayed directly. Error! "2 seconds. Charswrite (0,1, "passworderro!"); DELAY_MS (2000); After the engineering compilation is downloaded into atmega16, plug in the LCD and keypads, and the power is tested. Editor of responsibility; ZL, reading

     

     

     

     

    List all Question

    Nickname

    Email

    Questions

    << Cattle homemade wireless network control robot, only for funny cats!Play cross-borders, layout, accelerate the expansion, what brand of millet is playing? >>

    Our other product:

     Professional lightning protection system for Tower

    Professional FM Radio Station Equipment Package

     



     

    Hotel IPTV Solution

     


     FMUSER FSN-1000T V5.0 1KW FM Radio Broadcast Transmitter

      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