LCD Driver-JZ2440

Publisher:丝语轻风Latest update time:2019-09-16 Source: eefocus Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

lcd_regs->lcdcon5 |= (1<<3); /* Enable LCD itself*/

*gpbdat |= 1; /* Output high level, enable backlight*/

 

/* 4. Registration */

register_framebuffer(s3c_lcd);

return 0;

}

 

static void lcd_exit(void)

{

unregister_framebuffer(s3c_lcd);

lcd_regs->lcdcon1 &= ~(1<<0); /* Turn off the LCD itself*/

*gpbdat &= ~1; /* Turn off backlight*/

dma_free_writecombine(NULL, s3c_lcd->fix.smem_len, s3c_lcd->screen_base, s3c_lcd->fix.smem_start);

iounmap(lcd_regs);

iounmap(gpbcon);

iounmap(gpccon);

iounmap(gpdcon);

iounmap(gpgcon);

framebuffer_release(s3c_lcd);

}

 

module_init(lcd_init);

module_exit(lcd_exit);

 

MODULE_LICENSE("GPL");

 

 


Makefile

KERN_DIR = /work/system/linux-2.6.22.6

 

all:

make -C $(KERN_DIR) M=`pwd` modules 

 

clean:

make -C $(KERN_DIR) M=`pwd` modules clean

rm -rf modules.order

 

obj-m += lcd.o

[1] [2]
Reference address:LCD Driver-JZ2440

Previous article:Touch screen driver-JZ2440
Next article:Button-LED

Recommended ReadingLatest update time:2024-11-16 14:30

Design of LCD module driven by PIC microcontroller
The bias voltage is generated by using an external resistor ladder network (see the circuit diagram below). Because the resistor ladder network is connected between VDD and Vss, there will be a current flowing through the resistor ladder network, and the current is inversely proportional to the resistance. In other wo
[Microcontroller]
Design of LCD module driven by PIC microcontroller
Design and implementation of terminal LCD driver circuit based on S3C2440A
introduction Most of the portable handheld terminal products now, such as mobile phones, navigation systems, etc., have a small LCD display, which makes the design of LCD drive circuit an important part of handheld terminal design. This article takes handheld terminals used in special industries as an exam
[Microcontroller]
Design and implementation of terminal LCD driver circuit based on S3C2440A
Implementation principle of LCD driver in embedded system
  Combined with Samsung's arm9 series embedded processor S3C2410, this paper explains how to perform modular programming of LCD driver and how to statically load the driver into the system kernel.   LCD (liquid crystal display) module meets the increasing requirements of embedded systems. It can display Chinese chara
[Microcontroller]
White LED driver solution for LCD backlight
LCD currently uses CCFL as the backlight source more commonly. However, due to the complex CCFL backlight driving circuit, high driving voltage and color rendering capabilities are required, and the backlight source is the part that consumes the most power in the system, so with power restrictions becoming increasi
[Power Management]
JZ2440 bare metal development and analysis: serial port programming 5 serial port implementation printf
Some important codes: main.c #include "s3c2440_soc.h" #include "uart.h" #include  "my_printf.h" int main(void) { unsigned char c; uart0_init(); puts("Hello, world!nr"); my_printf_test(); while(1) { c = getchar(); if (c == 'r') { putchar('n'); } if (c == 'n') { putchar('r'); } putchar(c); }
[Microcontroller]
HD4478U Display LCD and 51 MCU Driver
#include #include absacc.h   #include intrins.h sbit LCDRSPIN = P3^7; sbit LCDRWPIN = P3^6; sbit LCDEPIN = P2^6; #define UCHAR unsigned char void delay(unsigned int i) {     UCHAR j;     for(i; i 0; i--)         for(j = 200; j 0; j--); }       ///////////////////////////////// //control LCD unsig
[Microcontroller]
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号