Chengdu Ebyte Electronic Technology Co., Ltd
E104-BT05 User Manual
Copyright ©2012–2019
,
Chengdu Ebyte Electronic Technology Co.,Ltd
23
0 close PWM
Set
:
AT+PWM1=[para]
+OK
:
success
+ERR=[NUM]
:
error
Description: Be effective at once, save when power off.
5.45 Read/set PWM2 duty cycle
Command
Respond
Parameter
Request
:
AT+PWM2?
+OK=[para]
Para: 0~100% ASCII
0 close PWM
Set
:
AT+PWM2=[para]
+OK
:
success
+ERR=[NUM]
:
error
Description: Be effective at once, save when power off.
5.46 Read/Set PWM3 duty cycle
Command
Respond
Parameter
Request
:
AT+PWM3?
+OK=[para]
Para: 0~100% ASCII
0 close PWM
Set
:
AT+PWM3=[para]
+OK
:
success
+ERR=[NUM]
:
Description: Be effective at once, save when power off.
5.47 Request/Set PWM output cycle
Command
Respond
Parameter
Request
:
AT+PWMFRQ?
+OK=[para]
Para: 5000T~25T ASCII
T=0.01ms
Example:
Set 5 ms cycle
AT+PWMFRQ=500
Set
:
AT+PWMFRQ=[para]
+OK
:
success
+ERR=[NUM]
:
error
Description:
1. Be effective at once, save when power off.
2. 4 PWM output frequencies are identical.
PWM Period calculating method description:
Assuming that the required target cycle is t ,and the input parameter is para (i.e. "AT+PWMFRQ=para"), then
t=T*para,means para=t/T.
For example, the setting cycle is 5ms: then para=5ms/0.01ms=500.