Chengdu Ebyte Electronic Technology Co.,Ltd.
E180-ZG120A User Manual
Copyright ©2012–2019, Chengdu Ebyte Electronic Technology Co.,Ltd.
1
If
:
period=0x0352
Then
:
Period1=0x03
Period2=0x52
duty
:
pwm duty cycle time
(
Unit 1 = 1ms
)
Can be set from 0x0A
~
0xFFFF
duty1 Indicates the upper 8 bits of duty cycle
duty2 Indicates the lower 8 bits of duty cycle
If
:
duty=0x028A
Then
:
Period1=0x02
Period2=0x8A
Note: The cycle period value must be greater than duty cycle duty, and the difference between the recommended cycle
period and the duty cycle duty is greater than 2ms. If the cycle is less than the duty cycle, The system default cycle
period is equal to twice the duty cycle duty, and the duty cycle here represents the high level time.
6.6.22 User adc parameter
Adc
Peripheral read data format
(
3 Byte
):
adcid voltage1 voltage2
adcid
:
ADC
channel
ID
Channel
ID
ADC GPIO Port
0x00
VDD
Power supply voltage
detection
0x01
PC8 Port
0x02
PC9 Port
0x03
PC10 Port
0x04
PC11 Port
Voltage
:
Read ADC channel voltage value
(
mV
)
Detectable range
0x0000
~
0x0E74
(
0
~
3700
)
voltage 1
Indicates high 8 digits
voltage 2
Indicates lower 8 bits
If
Read value
:
voltage =0x0C
voltage =0xE4
Then voltage
:
voltage =0x0CE4
Note: If the power supply voltage is the highest 3.7V, the detection range of the ADC can reach 3.7V.
6.6.23 Configure all network parameters
all_info
:
FD 1A FE 03 FE 5B 01 0B 0A 09 54 00 00 00 0A 1C 21 FE FF 57 B4 14 02 00 FF 05 05 A8 8A FF
Node type 03
;
Network PANID FE 5B
;
Network group number 01
;
Channel 0B
;
Transmitting power 0A
;
Baud rate 09
;
Sleep time 54
;
Target network short address 00 00
;
Target network group number 00
;
Target long
address 0A 1C 21 FE FF 57 B4 14
;
System transmitting mode 02
;
Data output mode 00
;
Network open time FF
;
rejoin
period 05
;
rejoin times 05
;
Wireless ID A8 8A
;
6.6.24 Configure all network parameters
all_info
:
FB FE 03 02 FE 5B F6 FA 1F 1C 21 FE FF 57 B4 14 00 00 0C 46 0C FE FF 9F FD 90 01 0B 0A 09 54 00
00 00 0A 1C 21 FE FF 57 B4 14 02 00 FF 05 05 A8 8A
Node type 03
;
Network status 02
;
Network PANID FE 5B; Local network short address F6 FA
;
Local
MAC address 1F 1C 21 FE FF 57 B4 14
;
Parent node network short address 00 00
;
Parent node MAC address 0C
46 0C FE FF 9F FD 90
;
Network group 01
;
Channel 0B
;
Transmitting power 0A
;
Baud rate 09
;
sleep time 54
;
Target network short address 00 00
;
Target network group 00
;
Target long address 0A 1C 21 FE FF 57 B4 14
;