QC12864 LCD serial timing driver solution

Publisher:北极星小鹏Latest update time:2012-08-15 Source: 51heiKeywords:QC12864 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Arbitrary function curves can be drawn when serial timing cannot read operations
Click to browse the next page

//The program format is rough and there is no time to organize it. If you have any questions, please leave a message
. Complete source code download: http://www.51hei.com/f/12864c5.rar

//12864 serial timing implementation

///**************************************/
#include
#include 
#include       
/******************************************/
#define uchar unsigned char
#define uint unsigned int

#define clear 0x01 //Clear screen
#define reset_DDRAM 0x02 //DDRAM address reset
#define left_move 0x04 //Move cursor left
#define right_move 0x06 //Move cursor right
#define all_left_move 0x05 //Move the entire screen to the left
#define all_right_move 0x07 //Move the entire screen to the right
#define display_left_move 0x10 //Display cursor moves left
#define display_right_move 0x14 //Display cursor moves right
#define set_function1 0x30 //Basic instruction set action
#define set_CGRAM 0x40 //Set CGRAM address
#define set_DDRAM 0x80 //Set DDRAM address
#define set_function2 0x34 //Extended instruction set action
#define fanbai 0x04 //Highlight the first line (expand the instruction set)
#define set_GDRAM 0x80 //Set GDRAM address (expand instruction set)
#define ON_G 0x36 //Turn on drawing display (expanded instruction set)
#define set_function2 0x34 //Turn off the graphics display (expand the instruction set)

//Port definition
sbit LCD_CS=P1^3;
sbit LCD_SID=P1^1; //Serial data line
sbit LCD_SCLK=P1^2; //Serial clock input
uchar code a[]={"QC12864"}; //Define the string to be displayed
       
/******************************************/
//Delay function
/******************************************/
void Delay_nms(uchar n)
{
   uchar i;
   uchar j;
   for(i=0;i
Keywords:QC12864 Reference address:QC12864 LCD serial timing driver solution

Previous article:Wireless communication NRF24L01-receive
Next article:Development of a temperature controller for foot bath

Recommended ReadingLatest update time:2024-11-16 17:51

AD1549 LCD12864 LCD display program
AD1549 LCD 12864 LCD display program #include"reg52.h"  #include "intrins.h"  sbit AD_CS = P3^7;  sbit AD_DAT = P3^5;  sbit AD_CLK = P3^4; sbit RS=P3^6; //RS="H", means DB7--DB0 is display data,                    //RS="L", means DB7--DB0 is display instruction data  sbit WRD = P2^5; //R/W="H",E="H", data is read f
[Microcontroller]
STM32f4---TFTLCD display experimental code (01)
In this experiment, we use FSMC to drive LCD. From the previous introduction, we know that the RS of TFTLCD is connected to A6 of FSMC, CS is connected to FSMC_NE4, and it is a 16-bit data bus. That is, we use the 4th area of ​​FSMC memory 1. We define the following LCD operation structure (defined in lcd.h): //LCD op
[Microcontroller]
Problems in PIC+DS18B20+LCD design and programming
1、mcu:pic18f25k22  2. Since the ds18b20 program has been written in the previous article, it will not be outlined for now;  3. LCD display uses SMS Sun LCD display;  4. The actual picture is as follows: 5. Use xc to compile and debug. When using static bit, you cannot pass parameters to functions. It is a headache.
[Microcontroller]
Problems in PIC+DS18B20+LCD design and programming
Quan Ding strongly promotes AOS solutions for LCD TV
Alpha Omega Semiconductor ( AOS ) has announced the release of 500/600/650/700 volt rated MOSFET products. This marks a major expansion of AOS' growing high voltage MOSFET product portfolio. The new high voltage MOSFET devices are used in a range of AC and DC power supplies and adapters for d
[Home Electronics]
Quan Ding strongly promotes AOS solutions for LCD TV
msp430 MCU controls lcd1602 display C program
//1602 LCD display program written by MSP430 2011/8/26 //Hardware connection      //P4 数据口  P3.7---E P3.6---RW  P3.5----RS #include"msp430x14x.h" #define    uint          unsigned int #define rw(x) P3OUT=(P3OUT&(~BIT6))|(x?BIT6:0); unsigned char table0 ="hankouxueyuan";                                           
[Microcontroller]
SAM4E MCU Tour - 13. Introduction to ASF of LCD
Atmel Software Framework (ASF framework) is integrated in Atmel Studio 6. With the libraries it provides, new projects can be completed quickly. The ultimate goal of this time is to use ASF to display the text "Hello World!" on the LCD. The current goal is to light up the backlight of the LCD. The learning goal is to
[Microcontroller]
SAM4E MCU Tour - 13. Introduction to ASF of LCD
TV Compass: Which is better, LCD or LED?
What is LED? LED is the abbreviation of Light Emitting Diode. LED applications can be divided into two categories: one is LED single tube application, including backlight LED, infrared LED, etc.; the other is LED display screen. At present, there is still a certain gap between China and the international l
[Power Management]
How to Power Automotive TFT-LCD Displays of the (Not-So-Distant) Future
The electronics for automotive infotainment TFT-LCD displays must be minimal to limit PCB size and cost. After reviewing the drawbacks of typical low-integration solutions, we introduce a new approach using a PMIC with serial communications that tightly integrates the complex array of power rails that bias the TFT-L
[Embedded]
How to Power Automotive TFT-LCD Displays of the (Not-So-Distant) Future
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号