| Electronic Components Datasheet Search |
|
AS3661 Datasheet(PDF) 69 Page - ams AG |
|
|
|||||||||||||||||||||||||||||
AS3661 Datasheet(HTML) 69 Page - ams AG |
|
69 / 87 page ![]() www.austriamicrosystems.com Revision 1.3 68 - 85 AS3661 Datasheet - D e t a i l e d D e s c r i p t i o n Figure 29. RAMP Instruction Example 8.12.2 RAMP (Variables) 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 step time is 0 or 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 0x3C). LED TEST ADC register (address 0x42) 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 0x06, 0x07, or 0x08 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. COMPILER COMMAND SYNTAX: RWV, prescale[1], sign[1], step time[2], number of increments[2]; Table 76. RWV Parameter Description Name Value Description prescale 0 Divides master clock (32 768 Hz) by 16 = 2048 Hz -> 0.488 ms cycle time 1 Divides master clock (32 768 Hz) by 512 = 64 Hz -> 15.625 ms cycle time sign 0 Increase PWM output 1 Decrease PWM output step time 0-3 One ramp increment done in (step time) x (prescale). Step time is loaded with the value (5 LSB bits) of the variable defined below. 1 local variable A 2 local variable B 3 local variable C 4 register address 3CH variable D value, or register address 42H value. The value of the variable should be from 00001b to 11111b (1d to 31d) for correct operation. |
|
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 |