User Pwm Parameter; User Adc Parameter - Ebyte E180-ZG120B User Manual

Efr32 2.4ghz zigbee, soc wireless module
Hide thumbs Also See for E180-ZG120B:
Table of Contents

Advertisement

Chengdu Ebyte Electronic Technology Co.,Ltd.
In/Out: Channel output / input mode
0 Output
1 Input
level: Channel Level state
0 Low level
1 High level
Flip
2
Note: When configured as input, the level indicates the input level value is 0 (low level) or 1 (high level). When the
output is configured, the level indicates 0 (low level), 1 (high level), 2 (Level flip) output.

6.6.21 User pwm parameter

Peripheral configuration data format
Pwm
Channel ID
PwmId :
Start/stop channel PWM output
start/stop:
0xFF Start PWM
0x00 Stop PWM
period time
period:pwm
(Unit 1 = 1ms)
Recommended setting range
Period1 High 8 bits of period
Period2 Low 8 bits of period
If:period=0x0352
Then:Period1=0x03
duty cycle time
duty:pwm
Can be set from
Indicates the upper 8 bits of duty cycle
duty1
Indicates
duty2
If:duty=0x028A
Then:Period1=0x02
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

Peripheral read data format
Adc
Copyright ©2012–2020, Chengdu Ebyte Electronic Technology Co.,Ltd.
02
03
(6 Byte):PwmId start/stop Period1 Period2
Channel ID
0x00
0x01
0x02
0x03
0x04
0x0A~0xFFFF
Period2=0x52
(Unit 1 = 1ms)
0x0A~0xFFFF
the lower 8 bits of duty cycle
Period2=0x8A
(3 Byte):adcid voltage1 voltage2
PC6 Port
PC7 Port
duty1 duty2
PWM GPIO Port
PF2 Port
PF3 Port
PF4 Port
PF5 Port
PF6 Port
E180-ZG120B User Manual
25

Advertisement

Table of Contents
loading

Table of Contents