English
Language : 

AS3665_04 Datasheet, PDF (52/78 Pages) ams AG – 9 Channel Advanced Command Driven RGB/White LED Driver
AS3665
Datasheet, Confidential - Programming Audio Processing
Audio Processing
Use austriamicrosystems sample codes for audio processing.
Sequencer Commands
Ramping of PWM(s) is achieved by the Ramp/Wait command shown in Table 72. The selected channels are chosen
by MUX tables - assignments of sequencers to channels on page 49. This command also can be used to wait for a
defined time in the program execution (if number of increments = 0).
Table 72. Ramp/Wait Command
lid Ramp/Wait Command
Ramps the PWM of the selected PWM generator up or down;
if the number of increments is zero, it simply waits
Name
Bits
Bitname
Parameter Description
a Compiler syntax: RMP, prescale, step time, sign, number of increments;
v D15
0
ill 0
each step has 16 clock cycles (typ. 0.49ms at 32768Hz)
D14
prescale
1
each step has 512 clock cycles (typ. 15.6ms at 32768Hz)
t the clock generation is described in section Clock Generation on page 14
G s Ramp/Wait D13:D9 step time
1-31
duration between single increments/decrements
e.g. if step time=8, prescale=0, sign=0, the duration between
every increment is typically 0.49ms*8 = 3.92ms
A t 0
ramp up, always increment by 1; 255 is maximum value
D8
sign
1
ramp down, always decrement by 1; 0 is minimum value
ms ten D7:D0
number of
increments
0
1-255
Wait for duration defined by prescale and step time
number of actual cycles in a single ramp command
(e.g. 255 defines a full scale ramp)
a n With the Set PWM command PWM(s) (PWM channels are connected to a sequencer as shown in section MUX tables
- assignments of sequencers to channels on page 49) can be immediately forced to a value:
o Table 73. Set PWM Command
l c Name
Technica Set PWM
Bits
D15:D8
D7:D0
Bitname
01000000b
(40h)
pwm value
Set PWM Command
Force PWM
Parameter Description
Compiler syntax: SPW, pwm value;
0-255
actual PWM value used:
0...off
255...full scale
www.austriamicrosystems.com
Revision 1.0.2
51 - 77