| Electronic Components Datasheet Search |
|
LP5562 Datasheet(PDF) 18 Page - Texas Instruments |
|
|
|||||||||||||||||||||||||||||
LP5562 Datasheet(HTML) 18 Page - Texas Instruments |
|
18 / 52 page ![]() PWM Control Value Current value Step time = 31.2 ms 1 2 3 4 5 6 7 8 End of 1st Ramp command, start next command Steps 1 2 4 3 5 6 7 8 9 10 End of 2nd Ramp command, start next command Rising ramp, Sign = 0 Downward ramp, Sign = 1 Increment = 4 => 5 cycles SVA-30197407 18 LP5562 SNVS820B – APRIL 2013 – REVISED DECEMBER 2016 www.ti.com Product Folder Links: LP5562 Submit Documentation Feedback Copyright © 2013–2016, Texas Instruments Incorporated 7.3.3.4.1 Ramp/Wait The ramp command generates a PWM ramp starting from current value. At each ramp step the output is incremented by one. Time for one step is defined with Prescale and Step time bits. Minimum time for one step is 0.49 ms and maximum time is 63 × 15.6 ms = 1 second/step, so it is possible to program very fast and also very slow ramps. Increment value defines how many steps are taken in one command. Number of actual steps is Increment + 1. Maximum value is 127d, which corresponds to half of full-scale (128 steps). If during ramp command PWM reaches minimum/maximum (0/255) ramp command will be executed to the end and PWM will stay at minimum/maximum. This enables the ramp command to be used as combined ramp and wait command in a single instruction. The ramp command can be used as wait instruction when increment is zero. Setting register 00h bit LOG_EN sets the scale as either linear to logarithmic. When LOG_EN = 0, linear scale is used, and when LOG_EN = 1, logarithmic scale is used. By using logarithmic scale the visual effect of the ramp command seems linear to the eye. Table 10. Ramp/Wait Command Ramp/Wait command 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 0 Pre- scale Step time Sign Increment Table 11. Ramp/Wait Command Bits NAME VALUE(d) DESCRIPTION Prescale 0 Divides master clock (32.768 Hz) by 16 = 2048 Hz, 0.49 ms cycle time 1 Divides master clock (32.768 Hz) by 512 = 64 Hz, 15.6 ms cycle time Step time 1-63 One ramp increment done in (step time) x (clock after prescale) Note: 0 means set PMW command. Sign 0 Increase PWM output 1 Decrease PWM output Increment 0-127 The number of steps is Increment + 1. Note: 0 is a wait instruction. For example, if following parameters are used for ramp: • Prescale = 1 ≥ cycle time = 15.6 ms • Step time = 2 ≥ time = 15.6 ms × 2 = 31.2 ms • Sign = 0 ≥ rising ramp Increment = 4 ≥ 5 cycles Ramp command will be: 0100 0010 0000 0100b = 4204h If current PWM value is 3, and the first command is as described above, the next command is a ramp with otherwise same the parameters, but with Sign = 1 (Command = 4284h), the result will be like in the following figure: Figure 16. Example of 2 Sequential Ramp Commands |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |