TX2440A LED driver

Publisher:RadiantDreamsLatest update time:2016-12-03 Source: eefocusKeywords:TX2440A Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

       Compile the Linux system that supports NAND FLASH driver and yaffs2 file system according to the transplantation document, then burn the kernel image into FLASH, and then burn the root_2.6.31.bin image on the CD into FLASH. In this way, the most basic environment for testing the driver is established on the target board. At the same time, the compiled source code becomes the kernel tree environment for compiling the driver on the host machine.

       When compiling the driver, you can use: make -C /.../.../linux-2.6.31/ SUBDIRS=$PWD modules

                                           Note: Makefile is required; /.../.../linux-2.6.31/ is the kernel tree directory

                                           If you want to compile the LED driver of TX2440A, that is, the TX2440_led.c source file in the CD, there is a sentence in the Makefile file:

                                           obj-m := TX2440_led.o.

       When compiling the LED driver, you should also note that you need to modify the arch/arm/plat-s3c2440/common-smdk.c source file in the source code. In arch/arm/plat-s3c24xx/common-smdk.c, set GPF0-GPF3 as outputs, all outputting low levels. Just modify the smdk_machine_init function

void __init smdk_machine_init(void)

{

    /* Configure the LEDs (even if we have no LED support)*/

 

    s3c2410_gpio_cfgpin(S3C2410_GPF(0), S3C2410_GPIO_OUTPUT);

    s3c2410_gpio_cfgpin(S3C2410_GPF(1), S3C2410_GPIO_OUTPUT);

    s3c2410_gpio_cfgpin(S3C2410_GPF(2), S3C2410_GPIO_OUTPUT);

    s3c2410_gpio_cfgpin(S3C2410_GPF(3), S3C2410_GPIO_OUTPUT);

    s3c2410_gpio_cfgpin(S3C2410_GPF(4), S3C2410_GPIO_OUTPUT);

    s3c2410_gpio_cfgpin(S3C2410_GPF(5), S3C2410_GPIO_OUTPUT);

    s3c2410_gpio_cfgpin(S3C2410_GPF(6), S3C2410_GPIO_OUTPUT);

    s3c2410_gpio_cfgpin(S3C2410_GPF(7), S3C2410_GPIO_OUTPUT);


 

    s3c2410_gpio_setpin(S3C2410_GPF(0), 0);

    s3c2410_gpio_setpin(S3C2410_GPF(1), 0);

    s3c2410_gpio_setpin(S3C2410_GPF(2), 0);

    s3c2410_gpio_setpin(S3C2410_GPF(3), 0);

    s3c2410_gpio_setpin(S3C2410_GPF(4), 1);

    s3c2410_gpio_setpin(S3C2410_GPF(5), 1);

    s3c2410_gpio_setpin(S3C2410_GPF(6), 1);

    s3c2410_gpio_setpin(S3C2410_GPF(7), 1);

 


    if (machine_is_smdk2443())

        smdk_nand_info.twrph0 = 50;


    s3c_device_nand.dev.platform_data = &smdk_nand_info;


    platform_add_devices(smdk_devs, ARRAY_SIZE(smdk_devs));


    s3c_pm_init();

}

The code is generated by codehl software and then copied by opening it in Word.

 From this, you can also think that you can also add the code added in the smdk_machine_init function in the driver, and the effect is the same.


Keywords:TX2440A Reference address:TX2440A LED driver

Previous article:s3c2440 three clocks
Next article:Export functions available to Linux kernel ARM platform drivers

Recommended ReadingLatest update time:2024-11-16 16:34

S3C2440 LED Driver Summary
1. Circuit Diagram 2. Instructions for use Code language: javascript This driver implements two operating modes: Normal operation mode: ./LedTest led1/led2/led3 on/off Turn on or off a certain LED Mask operation mode: ./LedTest
[Microcontroller]
S3C2440 LED Driver Summary
Make LED drive design more efficient
1 Introduction The market for LED is getting wider and wider. The reasons are nothing more than low production cost, high reliability, excellent efficiency and transient response capability. Whether it is handheld terminal equipment, vehicle-mounted or even architectural lighting, LED is used everywhere. Al
[Power Management]
Make LED drive design more efficient
LNK406EG 14W dimmable, high efficiency LED driver design
This article describes a high power factor, TRIAC dimming LED driver that can drive LED strings with a rated voltage of 28 V and a rated current of 0.5 A over an input voltage range of 90 VAC to 265 VAC. This LED driver uses the LNK406EG device from the LinkSwitch-PH family of ICs. LinkSwitch-PH ICs enable th
[Power Management]
LNK406EG 14W dimmable, high efficiency LED driver design
Micro2440 uses LEDS and BUTTONS drivers to realize button control of LED lights [Development Summary]
I recently played with the micro2440 of Friendly Arm and realized the function of controlling the LED light on and off with a button. I would like to summarize it here. If there are any errors, I hope experts can point them out. I also hope to help novices who have just learned to drive. First post the LEDs dri
[Microcontroller]
Micro2440 uses LEDS and BUTTONS drivers to realize button control of LED lights [Development Summary]
Remote dimming LED using single-stage offline driver
  Dimming LED drivers have issues with light output stability at low light levels, this article will explore the root cause of this problem and propose a solution. This article does not discuss dimmable thyristor dimming techniques because the low light instability is caused by a different mechanism. Dimming methods t
[Power Management]
Remote dimming LED using single-stage offline driver
Powerint LNK405EG 15W PAR38 TRIAC dimming LED driver solution (DER-281)
DER-281 from Powerint is a 15W PAR38 TRIAC dimming flicker-free LED driver reference design using LNK405EG. It has an input voltage of 180VAC to 265VAC, an output voltage of 30V/0.5A, an efficiency of 83% at full load, and is EMI compliant with IEC 61000-4-5 ringwave, IEC 61000-3-2 Class C, and EN55015 B standards.
[Power Management]
Powerint LNK405EG 15W PAR38 TRIAC dimming LED driver solution (DER-281)
Design of six-way 45V dual dimming LED driver circuit
  Intersil's ISL97674 is a six-channel 45V dual dimming LED driver that supports 78 LEDs at 4.5V-26V and 48 LEDs at 2.7V-26V. It can use SMBus/I2C or PWM signals for dimming, with an input voltage of 4.5V-26.5V, a maximum output voltage of 45V, and a current of up to 40mA per LED. The current matching is ±0.7%. It is
[Power Management]
Design of six-way 45V dual dimming LED driver circuit
ON Semiconductor's advanced LED driver solutions for different applications
Today, high-brightness LEDs have been comprehensively improved in terms of light output, energy efficiency and cost. They also have many advantages such as compactness, low-voltage operation and environmental protection, and their application scope is constantly expanding. In the future, LED lighting will have par
[Power Management]
ON Semiconductor's advanced LED driver solutions for different applications
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号