| поискавой системы для электроныых деталей |
|
LP5569 датащи(PDF) 28 Page - Texas Instruments |
|
|
|
|||||||||||||||||||||||||||||
LP5569 датащи(HTML) 28 Page - Texas Instruments |
|
28 / 86 page ![]() 28 LP5569 SNVSAP8 – JULY 2017 www.ti.com Product Folder Links: LP5569 Submit Documentation Feedback Copyright © 2017, Texas Instruments Incorporated 8.5.2.2 Variables The LP5569 device has four LED engine variables which are divided into local and global variables. Variables A and B are engine-specific local variables and each of the three engines has separate A and B variables, so there is a total of six A and B variables. Variable A can be read and written via I2C registers 42h–44h. Local variable B is not available via I2C and can only be accessed by the LED engine. Variables C and D are global variables which are shared by all three LED engines. Global variable C is not available via I2C and can only be accessed by the LED engines. The D variable can be read and written via I2C register 3Eh. Variables are referenced to instructions with 2 bits, see Table 3 for details. Note that some instructions (ld, add, sub) can use only variables A, B, and C as target variables. Table 3. LED Engine Variables VARIABLE BITS LOCAL/GLOBAL A 00 Local B 01 Local C 10 Global D 11 Global (1) This opcode is used with numerical operands. (2) This opcode is used with variables. 8.5.2.3 Instruction Set The LP5569 device has three independent programmable execution engines. All the program execution engines have their own program memory block allocated by the user. The maximum program size for any one engine is limited to 128 locations. At least one engine must be in the load-program mode with the engine-busy bit cleared before writing to any program memory address. Program execution is clocked with a 32.768-kHz clock. Instruction execution takes sixteen clock cycles (488 μs). This applies also to ramp and wait instructions where execution time is a multiple of 488 μs. This clock can be generated internally or an external clock can be supplied to the CLK pin. Using an external clock enables synchronization of LED timing to the external clock signal and is also more power-efficient. The supported instruction set is listed in Table 4 through Table 6. The LP5569 device is fully compatible with the LP5523 instruction set. A command compiler is available for easy sequence programming. With the command compiler it is possible to write sequences with simple ASCII commands, which are then converted to binary or hex format. Table 4. LED Driver Instructions INSTRUCTION USAGE COMPILER EXAMPLE ramp(1) Generate a programmable PWM ramp to mapped LED driver(s) from the current value to a new value in steps of +1 or –1 with programmed step time. ramp 0.6, 255; ramp to full scale in 0.6 s ramp(2) ramp var1, prescale, var2 {Punctuation here? only need space ] var1 is a variable (ra, rb, rc, rd); prescale is a boolean constant (pre = 0 or pre = 1); Var2 is a variable (ra, rb, rc, rd). Output PWM with increasing or decreasing duty cycle. ld ra, 31 ld rb, 255 ramp ra, pre=0, +rb; ramp up to full scale over 3.9 s. set_pwm(1) Set PWM or current value to mapped LED driver(s), effective immediately. set_pwm 128; set duty cycle to 50%: set_pwm(2) set_pwm var1 {Punctuation here? Only space] Var1 is a variable (ra, rb, rc, rd). Generate a continuous PWM output. ld rc, 128; set_pwm rc; set PWM duty cycle to 50%. wait Wait for a given time. Time span is from 0.488 ms to 484 ms. wait 0.4; wait for 0.4 s: (1) These instructions are compatible with the LP5523 and LP55231 mux_* LED mapping instructions. (2) x - The instruction activates LED mapping to the driver when the instruction is executed. Table 5. LED Mapping Instructions INSTRUCTION(1) ACT(2) USAGE COMPILER EXAMPLE load_start Define the LED mapping-table start address in SRAM. Starting address at 01h: load_start 01h; Starting address at 01h map_start x Define the LED mapping-table start address in SRAM and set that address active. map_start 01h ;Starting address at 01h |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |