![Gemalto Cinterion EHS6 Command Manual Download Page 472](http://html.mh-extra.com/html/gemalto/cinterion-ehs6/cinterion-ehs6_command-manual_2206684472.webp)
Cinterion
®
EHS6 AT Command Set
19.8 AT^SWDAC
EHS6_ATC_V03.001
15/12/3
Confidential / Released
Page 472 of 513
Open or close DAC
0
(D)
Close DAC
1
Open DAC
PWM frequency
0
(D)
400 Hz (accuracy of 1 percentage step)
1
1000 Hz (accuracy of 3 percentage steps)
2
8,125 Hz (accuracy of 1 percentage step)
3
16,250 Hz (accuracy of 1 percentage step)
4
32,500 Hz (accuracy of 1 percentage step)
5
65,000 Hz (accuracy of 2 percentage steps)
Note
• Once the PWM channel is opened with a certain duty cycle and frequency, only changing the duty cycle while
using the same frequency is permitted. However, to change the frequency first close the PWM channel, and
then open it again with new frequency.
Example
This example shows how to open the GPIO7/PWM1 output and change the duty cycle while using the same fre-
quency.
<oc>
(num)(NV)
<fq>
(num)(NV)
AT^SWDAC=0,50,1,2
Initial opening of GPIO7/PWM1, while setting PWM
signal to 8,125 Hz at 50% duty cycle.
OK
AT^SWDAC=0,75
Change duty cycle of the open GPIO7/PWM1 output.
OK
AT^SWDAC=0,80
Change duty cycle of the open GPIO7/PWM1 output.
OK
AT^SWDAC=0,0,0
Close GPIO7/PWM1 output.
OK