FMUSER Wirless Transmit Video And Audio More Easier !

[email protected] WhatsApp +8618078869184
Language

    51 Single-chip drive design of 1602 LCD display

     

    This section focuses on the liquid crystal display 1602, the display content is "Hello, Welcome to my site, my friends.". Diagram is as follows: Procedures are as follows: #include #define uchar unsigned char #define uint unsigned int sbit RS = P3 ^ 0; // data / command selection terminal (H / L) sbit EN = P3 ^ 2; // Enable sbit RW = P3 ^ 1; // read / write selection terminal (H / L), This article write-only, so that the ports for low sbit wela = P3 ^ 3; // bit latch select signal uchar table1 [] = "Hello, Welcome to my"; // character table 1 uchar table2 [] = "site, my friends."; // character table 2 void delay (uint x) // delay function { uint a, b; for (a = x; a "0; a--) for (b = 10; b "0; b--); } void delay1 (uint x) // delay function { uint a, b; for (a = x; a "0; a--) for (b = 100; b "0; b--); } void write_com (uchar com) // write command function { wela = 1; // open latch position selected from P2 = com; // write command to the port P2 wela = 0; // Close the latch position selected from RS = 0; // The following section timing diagram with 1602, according to a written manual EN = 0; RW = 0; delay (10); EN = 1; delay (10); EN = 0; } void write_date (uchar date) // write data function { wela = 1; P2 = date; wela = 0; RS = 1; EN = 0; RW = 0; delay (10); EN = 1; delay (10); EN = 0; } void init () // initialization function { write_com (0x38); // display mode setting delay (20); write_com (0x0f); // display on / off and set the cursor delay (20); write_com (0x06); // When writing a character address pointer plus one, plus one cursor delay (20); } void main () // main function { uchar a; init (); write_com (0x80); // start address of a first row delay (20); for (a = 0; a "25; a ++) { write_date (table1 [a]); // read character table delay (20); } write_com (0xc0); // start address of the second row delay (20); for (a = 0; a "17; a ++) { write_date (table2 [a]); // read character table delay (20); } while (1); // kept displayed } The results are as follows:, 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