FMUSER Wirless Transmit Video And Audio More Easier !

[email protected] WhatsApp +8618078869184
Language

    Single chip drive drive 1602 LCD

     

    "LCD operation: 1602 LCD can only display ASCI. Today, the operation of 1602 LCD is simpler than that of nixie tube Basic operation sequence of LCD: 1.1 read status: input: rs = L, RW = h, e = h, output d0 ~ D7 1.2 write instruction: input: rs = L, RW = L, d0 ~ D7 instruction code, e = high pulse, output: none; RS is the data command selection terminal (H / L); 1.3 data reading: enter rs = h, RW = h, e = H 1.4 write command: output, rs = L, RW = L, d0 ~ D7 = data, e = high pulse Note: before each read-write operation of the controller, read-write detection must be carried out to ensure that sta7 is 0, which can be replaced by a simple delay Initialization settings Display mode settings Instruction code: 00111000 function, 16 * 2 display, 5 * 7 dot matrix, 8 is the instruction of data interface 0x38 Displays the setting of the on / off cursor Therefore, shift left and right are set by N and s Instruction code of data pointer 80h + address code (0-27h, 40H to 67h) Other settings The function of instruction code 01h is to clear the display: 1. Reset the data pointer, 2. Reset all displays 02h displays enter: 1. The data pointer is cleared The circuit diagram is shown in the figure: Example code: dynamic display #include #include #define uchar unsigned char #define uint unsigned int sbit lcden = P2^6;// These ports should be connected with the hardware circuit first sbit lcdrw = P2^5; sbit lcdrs = P2^4; sbit dula = P3^1; sbit wela = P3^2; uchar num; uchar code table[]=“I LIke MCU!”; uchar code table1[]=“I LIke HULeiHao”; void delay(uint z) { uint x,y; for(x= z; x》0; x--) for(y =110; y》0; y--); } void write_ Com (uchar com) / / write command function { lcdrs = 0;// Enable terminal 0, low pulse write instruction, high pulse write data _ nop_();// Postpone one machine cycle lcdrw = 0;// Low level write data inside P0= com; delay(5); lcden = 1;// The enable terminal reads data to a high level delay(5); lcden = 0;// Enable terminal gives a low level return } void write_ Date (uchar date) / / write data function { lcdrs = 1;// Enable terminal 0, low pulse write instruction, high pulse write data _ nop_();// Postpone one machine cycle lcdrw = 0; P0= date; delay(5); lcden = 1; delay(5); lcden = 0; } void init() { dula = 0; wela = 0;// Turn off the nixie tube lcden = 0; write_ com(0x38);// Display mode settings write_ com(0x0e);// Display switches and cursor settings write_ com(0x06); write_ com(0x80+0x10); } void main() { init(); for(num=0; num《11; num++) { write_ date(table[num]); delay(20); } // write_ com = 1;// Screen clearing operation write_ com(0x80+0x53);// Set data pointer for(num=0; num《15; num++) { write_ date(table1[num]); delay(20); } for(num = 0 ; num《16; num++) { write_ com(0x18);// Shift the entire screen to the left delay(20); } while(1); }, read the full text, technical section Analysis of hardware anti-interference technology of single chip microcomputer Driving 1602 LCD by single chip microcomputer How to program clock by using single chip microcomputer timer Analysis of the execution process of single chip microcomputer instructions STM32 MCU ADC analog watchdog test, Download enthusiast app Create an electronic circle of your contacts Pay attention to wechat of electronic enthusiasts Interesting and informative information and technology dry goods Focus on enthusiast class Lock the latest course activities and technology live broadcast, which has been collected 4 people collection Share: 1. Comments Lin Chaowen PCB Design: pads tutorial, pads video tutorial, Zheng Zhenyu teacher: Altium designer tutorial, Altium designer video tutorial, Zhang Fei actual combat electronic video tutorial, Zhu Youpeng teacher: Hisilicon hi3518e tutorial, hi3518e video tutorial, Li Zeng teacher: signal integrity tutorial, high-speed circuit simulation tutorial, Huawei Hongmeng system tutorial, harmonyos video tutorial, saisheng: EMC design tutorial, EMC video tutorial Mr. Du Yang: STM32 tutorial, STM32 video tutorial, Tang zuolin: basic C language tutorial, basic C language video tutorial, Zhang Fei: Buck Power tutorial, buck power video tutorial, punctual atom: FPGA tutorial, FPGA video tutorial, Mr. Wei Dongshan: embedded tutorial, Embedded video tutorial Zhang Xianfeng: C language basic video tutorial Xu Xiaogang: Modbus communication video tutorial Wang Zhentao: NB IOT development video tutorial mill: FPGA tutorial, zynq video tutorial c language video tutorial linux driver development video tutorial Zhu Youpeng: u-boot source code analysis video tutorial harmonyos,  Press and hold the slider and drag to the far right Learn about new features Published, relevant recommendations Analysis of hardware anti-interference technology of single chip microcomputer There are many types of interference, which can be classified according to the causes of noise, conduction mode, waveform characteristics and so on. According to the causes Published at 17:18, November 27, 2018 • 0 readings How to program clock by using single chip microcomputer timer Timer 1 is in mode 1, 16 bits, and is interrupted once in 10ms 40h10ms counting unit 41h second counting unit ... Published at 17:07, November 27, 2018 • 3 readings Analysis of the execution process of single chip microcomputer instructions When a general computer works, it first sends the program and data to the memory through the input interface circuit and data bus through the external equipment, and then one by one Published on November 27, 2018 16:57 • 7 readings How to change the pin of stm8s MCU to achieve the lowest power consumption In addition, when the AWU is turned on, the current becomes 200uA. If the watchdog is turned on, it becomes 500uA. These two parameters are not very good, not very Published on November 27, 2018 16:38 • 7 readings Ten common answers to single chip microcomputer programming 1. What are the advantages and disadvantages of C language and assembly language in MCU programming? A: assembly language is a kind of language that uses text mnemonics to represent machine instructions Published at 16:05, November 27, 2018 • 17 readings How can the lower bridge capacitor voltage be 228v in the full bridge circuit? Published at 13:58, November 27, 2018 • 4 readings Realization of optical power based on GP-IB interface / single chip microcomputer system

     

     

     

     

    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