User Adc Parameter - Ebyte E180-Z5812SP User Manual

2.4 ghz zigbee multifunctional soc wireless module
Hide thumbs Also See for E180-Z5812SP:
Table of Contents

Advertisement

Chengdu Ebyte Electronic Technology Co., Ltd.
start/stop: Start/stop channel PWM output
0xFF means to start PWM in 1mS unit, the parameter range is 0-340, and the maximum period that can be set
is 340mS. When the period parameter is less than 2, the period parameter is 2, and the period is 2mS (2*1mS ).
0xFE means to start PWM in 0.5uS unit, the parameter range is 0-3400, and the maximum period that can be
set is 1700uS (3400*0.5 ). When the period parameter is less than 2, the period parameter is 2, and the period is 1uS
(2*0.5uS).
0x00 means stop PWM.
Period: Cycle time of PWM (the unit of cycle and the maximum cycle are determined according to the start/stop byte)
Period1 indicates the upper 8 bits
Period2 indicates the lower 8 bits
Duty: Duty cycle time of PWM (the unit of cycle and the maximum cycle are determined according to the start/stop byte)
Duty1 indicates the upper 8 bits
Duty2 indicates the lower 8 bits
Note:
1. The value of period must be greater than the value of duty. It is recommended that the difference between period and
duty is greater than 2ms. If the period is less than duty, the system will default that period is equal to twice of duty. The
duty here represents the high level time.
2. The PWM cycle units of the four channels need to be the same.

6.5.21 User ADC parameter

Read command format:
Command format
Send: FE 03 22 adcid FF
Return: FB 22 adcid voltage1
voltage2
Adcformat of peripheral configuration data (3 Byte): adcid voltage1 voltage2
adcid:ADC channel ID
Channel ID
0x00
0x01
0x02
Voltage: ADC channel voltage value read (unit: mV)
Detectable range 0x0000~0x0E74 (0~3700)
voltage 1 indicates the upper 8 bits
voltage 2 indicates the lower 8 bits
For example, value read: voltage =0x0C
Then voltage is: voltage =0x0CE4
No:
1. If the power supply voltage is the highest 3.3V, the detection range of ADC can reach 3.3V.
2. The time interval between two times of reading of ADC voltage of the same device must be greater than 10ms.
Copyright ©2012–2019,Chengdu Ebyte Electronic Technology Co.,Ltd.
26
Command example
Send: FE 03 22 00 FF
Return: FB 22 00 0C E4
ADC GPIO port
VDD Power supply voltage detection
PB6 port
PB7 port
voltage =0xE4
E180-Z5812SP User Manual

Advertisement

Table of Contents
loading

Table of Contents