| Electronic Components Datasheet Search |
|
LM8322 Datasheet(PDF) 20 Page - National Semiconductor (TI) |
|
|
|
|||||||||||||||||||||||||||||
LM8322 Datasheet(HTML) 20 Page - National Semiconductor (TI) |
|
20 / 42 page ![]() 14.4 RAMP COMMAND The RAMP command generates a duty-cycle ramp starting from the current value. At each step, the ramp counter is in- cremented or decremented by one, unless it has reached its its saturation value (0xFF for increment, or 0x00 for decre- ment). The time for one step is controlled by the PRESCALE bit and STEPTIME field. The minimum time for one step is 0.49 milliseconds. and the maximum time is about 1 second, which supports both very fast and very slow ramps. The IN- CREMENT field specifies the number of steps to be executed by the command. The maximum value is 126, which corre- sponds to half of full scale. There are two special cases in the instruction encoding. If all bits and fields are 0, it is interpreted as the GO TO START command. If the STEPTIME field is 0 but any other bit or field is non-zero, it is interpreted as the SET_PWM command. 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 0 PRESCALE STEPTIME SIGN INCREMENT Bit or Field Value Description PRESCALE 0 Divide the 32.768 kHz clock by 16 1 Divide the 32.768 kHz clock by 512 STEPTIME 1–63 Number of prescaled clock cycles per step SIGN 0 Increment ramp counter 1 Decrement ramp counter INCREMENT 1–126 Number of steps executed by this instruction 14.5 SET_PWM COMMAND The SET_PWM command loads the ramp counter from the 8-bit DUTYCYCLE field in the instruction. Please note: Only 0x00 and 0xFF are valid values for the duty cycle in SET_PWM command. Other values can be estab- lished by initializing the duty cycle to either 100% or 0% followed by a RAMP command. 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 0 1 0 0 0 0 0 0 DUTYCYCLE Bit or Field Value Description DUTYCYCLE 0 Duty cycle is 0%. 255 Duty cycle is 100%. 14.6 GO_TO_START COMMAND The GO_TO_START command jumps to the first command in the script command file. 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 0 14.7 BRANCH COMMAND The BRANCH command jumps to the specified command in the script command file, with the option of looping for a spec- ified number of repetitions. Nested loops are not allowed. 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 1 0 1 LOOPCOUNT 0 ADDRESS Field Value Description LOOPCOUNT 0 Loop until a STOP PWM SCRIPT command is issued by the host. 1–63 Number of repetitions to perform, biased by -1. The range is 0–62 repetitions. ADDRESS 0–59 Branch destination address in the script command file. If this field is greater than 59, no looping will be performed. www.national.com 20 |
|
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 |