This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] TLC5946:TLC 在点校正模式下不工作

Guru**** 2507185 points
Other Parts Discussed in Thread: SK-AM64B, TLC5946

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/power-management-group/power-management/f/power-management-forum/1327640/tlc5946-tlc-not-working-with-dot-correction-mode

器件型号:TLC5946
主题中讨论的其他器件:SK-AM64B

您好!  

我想仅使用点校正模式来控制 LED。 是否有任何我可以遵循的示例代码?  

我正在使用 SK-AM64B 板、并使用 SPI0将 tlc5946连接到 RPI 接头。 SPI 模式为时 钟极性(CPOL)和时钟相位(CPHA)为0。  

这里是我将为100%电流写入96位的测试代码。  

int led_test(void) {
	
	char spi_data[12] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,0xff, 0xff, 0xff, 0xff};
	int status;	
	
		/*turn on leds*/
	
	status = spi_write(global_spi_devs->shift_reg_spi, spi_data, 12);
	
	printk("status:%d\n", status);
	
	return 0;
	
}

下面是原理图、我也将 IREF 电阻器更改为4.7K。  

 :