| Datenblatt-Suchmaschine für elektronische Bauteile |
|
LP5523 Datenblatt(PDF) 38 Page - Texas Instruments |
|
|
|
|||||||||||||||||||||||||||||
LP5523 Datenblatt(HTML) 38 Page - Texas Instruments |
|
38 / 56 page ![]() LP5523 SNVS550D – SEPTEMBER 2009 – REVISED MAY 2013 www.ti.com Table 6. LP5523 Branch Instructions(1) (continued) wait for trigger send a trigger trigger 1 1 1 0 ext. ext. X X E3 E2 E1 X X E3 E2 E1 trig trig Number of instructions to be skipped if variable variable jne 1 0 0 0 1 0 0 the operation returns true 1 2 Number of instructions to be skipped if variable variable jl 1 0 0 0 1 0 1 the operation returns true 1 2 Number of instructions to be skipped if variable variable jge 1 0 0 0 1 1 0 the operation returns true 1 2 Number of instructions to be skipped if variable variable je 1 0 0 0 1 1 1 the operation returns true 1 2 Table 7. LP5523 Data Transfer and Arithmetic Instructions Bit Bit Bit Bit Bit Bit Inst. Bit [9] Bit [8] Bit [7] Bit [6] Bit [5] Bit [4] Bit [3] Bit [2] Bit [1] Bit [0] [15] [14] [13] [12] [11] [10] ld 1 0 0 1 target variable 0 0 8-bit value add (i) 1 0 0 1 target variable 0 1 8-bit value variable variable add (ii) 1 0 0 1 target variable 1 1 0 0 0 0 1 2 sub (i) 1 0 0 1 target variable 1 0 8-bit value variable variable sub (ii) 1 0 0 1 target variable 1 1 0 0 0 1 1 2 LED Driver Instructions Ramp This is the instruction useful for smoothly changing from one PWM value into another PWM value on the D1 to D9 outputs; in other words, generating ramps (with a negative or positive slope). The LP5523 allows programming very fast and very slow ramps. Ramp instruction generates a PWM ramp, using the effective PWM value as a starting value. At each ramp step the output is incremented/decremented by one unit, unless the number of increments is 0. Time span for one ramp step is defined with prescale -bit [14] and step time -bits [13:9]. Prescale = 0 sets 0.49 ms cycle time and prescale = 1 sets 15.6 ms cycle time; so the minimum time span for one step is 0.49 ms (prescale * step time span = 0.49ms x 1) and the maximum time span is 15.6 ms x 31 = 484ms/step. Number of increments value defines how many steps will be taken during one ramp instruction; increment maximum value is 255d, which corresponds increment from zero value to the maximum value. If PWM reaches minimum/maximum value (0/255) during the ramp instruction, ramp instruction will be executed to the end regardless of saturation. This enables ramp instruction to be used as a combined ramp & wait instruction. Note: Ramp instruction is wait instruction when the increment bits [7:0] are set to zero. Programming ramps with variables is very similar to programming ramps with numerical operands. The only difference is that step time and number of increments are captured from variable registers, when the instruction execution is started. If the variables are updated after starting the instruction execution, it will have no effect on instruction execution. Again, at each ramp step the output is incremented/decremented by one unless increment is 0. Time span for one step is defined with prescale and step time bits. Step time is defined with variable A, B, C or D. Variables A, B and C are set with ld-instruction. Variable D is a global variable and can be set by writing the VARIABLE register (address 3C). LED TEST ADC register (address 42) can be used as a source for the variable D, as well. Note: Variable A is the only local variable which can be read throughout the serial bus. Of course, the variable stored in 3CH can be read (and written), too. Setting register 06H, 07H, or 08H bit LOG_EN high/low sets logarithmic (1) or linear ramp (0). By using the logarithmic ramp setting the visual effect appears like a linear ramp, because the human eye behaves in a logarithmic way. 38 Submit Documentation Feedback Copyright © 2009–2013, Texas Instruments Incorporated Product Folder Links: LP5523 |
|
Link URL |
| War ALLDATASHEET hilfreich? [ DONATE ] |
Über Alldatasheet | Werbung | Kontakt | Privatsphäre und Datenschutz | Link zum Datenblatt | Linktausch | Hersteller 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 |