![Texas Instruments LED171596AEVM Скачать руководство пользователя страница 14](http://html.mh-extra.com/html/texas-instruments/led171596aevm/led171596aevm_user-manual_1094937014.webp)
EVM Software
www.ti.com
14
SNVU546C – October 2017 – Revised May 2018
Submit Documentation Feedback
Copyright © 2017–2018, Texas Instruments Incorporated
Using the LED171596AEVM Evaluation Module
3.12.1
Establishing I2C/SPI Communication
I2C or SPI is can be selected. IFSEL pin need to be set to high when I2C is selected because
IFSEL_LATCH is used for selecting between I2C-compatible and SPI after rising edge of EN pin.
Figure 21. I2C/SPI Selection
3.12.2
EN and IFSEL/Latch Pin Control
EN and IFSEL_LATCH pins can be controlled by using the Enable Pin button and the IFSeL Pin button
respectively, but the Enable Pin button is not valid if a Tiva Launchpad is not connected to PC. The button
color is turned red when the pin value is set to high and gray is low. IFSEL pin selects I2C-compatible or
SPI interfaces at rising edge of EN pin (see
Figure 22
). After detecting interface “IFSEL Pin” is turned to a
latch pin to support latch input for brightness and current register buffers when in normal mode. As a
default, “Latch pin” button is disabled because the evaluation software supports automatic latch pin control
every time when a value written to SRAM. “Latch pin” button is enable when automatic latch is disabled
(see
Section 3.12.8
).
Figure 22. Enable Pin, IFSET/Latch Pin
3.12.3
LED Brightness and Current Control
Individual LED’s current and brightness can be controlled through the LED buttons, LED brightness
trackbar/text, and LED current trackbar/text. There are buttons and texts, which are ordered in the same
order as the LEDs on the LED171596AEVM. Simply, a LED can be turned on or turned off is available
when a button is clicked. Brightness 0 is written into the LEDxx_BRI(0x160 + LED number) reigster when
the LED is turned off, LED brightness/current values configured by trackbars are written to
LEDxx_BRI(0x160 + LED number) register and LEDxx_CUR(0x100+LED number) register at once.
Therefore, LED must be turned off and then turn on to change the brightness or the current settings.