Summary of TLC59401

Source: Internet
Author: User

First, the chip pin definition and role

31:blank when BLANK was high and all outn outputs was forced OFF. GS counter is also reset.

When BLANK was low, OUTN was controlled by the grayscale PWM control.

24:GSCLK Reference clock for grayscale PWM control (square wave provided by TIME3)

1:SCLK Serial Data Shift Clock (provides transport SCLK for the write of Sin)

2:sin Serial Data input (high write to 1 low write is 0)

23:sout Serial Data output

3:mode Input mode-change pin. When mode = GND, the device was in GS MODE. When mode = VCC, the device was in DC MODE.

32:xlat level triggered latch signal. When XLAT are high, the TLC59401 writes data from the input shift register to either GS Register (MODE is low) or DC regist   ER (MODE is high). When XLAT was low, the data in the GS or DC registers was held constant and do no change.

Ii. two important modes GS mode and DC mode

3:mode Input mode-change pin. When mode = GND, the device was in GS MODE. When mode = VCC, the device was in DC MODE.

The GS data must are set before the DC data is set. (You must set the DC before you set the GS)

XLAT must is low when the MODE pin is goes high-to-low or low-to-high to change back and forth between GS mode and DC mode.

1, SETTING DOT CORRECTION

The TLC59401 have the capability to fine-adjust, the output current of every channel (OUT0 to OUT15) independently. (Electricity per lamp Independent control)

Each of the channels can is programmed with a 6-bit word. (level 63) 6-bit*16 = 96bit. The control points of each lamp occupy 6bit.

The channel output can be adjusted on steps from 0% to 100% of the maximum output current Imax.

(There are 64 levels of light control)

 

 

 

There are two ways to work with data in memory when designing a computer system. A value called Little-endian that holds the lowest bit in memory is the rightmost part of the data (that is, the lowest bit of data).

Big-endian format the lowest bit from the leftmost data.

 

the form of data transmission:

The format is Big-endian format. In this format, the MSB was transmitted first, followed by the MSB-1, etc.

 

 

implementation of the related code:

 

if (type = = Dc_mode)

{

for (uint8_t i = 0; i <; i++)//

{

Dc_data = p_tlc->led_dc_data_buff[15-i];

for (uint8_t t = 0; t < 6; t++)

{

if (Dc_data & 0x20)

{

Hal_gpio_writepin (Ir_sin_gpio_port,ir_sin_pin,gpio_pin_set);

Hal_gpio_writepin (Ir_sclk_gpio_port,ir_sclk_pin,gpio_pin_set); //

Hal_gpio_writepin (Ir_sclk_gpio_port,ir_sclk_pin,gpio_pin_reset);

}

Else

{

Hal_gpio_writepin (Ir_sin_gpio_port,ir_sin_pin,gpio_pin_reset);

Hal_gpio_writepin (Ir_sclk_gpio_port,ir_sclk_pin,gpio_pin_set);

Hal_gpio_writepin (Ir_sclk_gpio_port,ir_sclk_pin,gpio_pin_reset);

}

Dc_data = Dc_data << 1;

}

}

}

2, SETTING grayscale

The use of a bits per channel results in 4096 different brightness steps, from 0% to 100% brightness.

3, Grayscale PWM operation

The first GSCLK pulse after BLANK goes low increases the grayscale counter by one and switches on all outn with a grayscal E Value not equal to zero.

Each following rising edge of GSCLK increases, the grayscale counter by one.

The TLC59401 compares the grayscale value of each output outn with the grayscale counter value. All outn and grayscale values equal to the counter values is switched off.

Output On-time

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.