Users Manual

Table Of Contents
Chengdu Ebyte Electronic Technology Co.,Ltd. E180-ZG120B User Manual
Copyright ©2012–2020, Chengdu Ebyte Electronic Technology Co.,Ltd.
25
02
PC6 Port
03
PC7 Port
In/Out: Channel output / input mode
0 Output
1 Input
level: Channel Level state
0 Low level
1 High level
2 Flip
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
Pwm Peripheral configuration data format6 Byte):PwmId start/stop Period1 Period2 duty1 duty2
PwmId : Channel ID
Channel ID
PWM GPIO Port
0x00
PF2 Port
0x01
PF3 Port
0x02
PF4 Port
0x03
PF5 Port
0x04
PF6 Port
start/stop:
Start/stop channel PWM output
0xFF Start PWM
0x00 Stop PWM
periodpwm period timeUnit 1 = 1ms
Recommended setting range 0x0A0xFFFF
Period1 High 8 bits of period
Period2 Low 8 bits of period
Ifperiod=0x0352
ThenPeriod1=0x03 Period2=0x52
dutypwm duty cycle timeUnit 1 = 1ms
Can be set from 0x0A0xFFFF
duty1
Indicates the upper 8 bits of duty cycle
duty2
Indicates
the lower 8 bits of duty cycle
Ifduty=0x028A
ThenPeriod1=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 format3 Byte):adcid voltage1 voltage2