Chengdu Ebyte Electronic Technology Co.,Ltd.
E180-Z5812SX User Manual
Copyright ©2012–2021, Chengdu Ebyte Electronic Technology Co., Ltd.
27
6.6.19 User GPIO parameters
Command format for Read:
Command Format
Command Example
Send: FE 03 20 GpioId FF
Reply: FB 20 GpioId In/Out level
Send: FE 03 20 00 FF
Reply: FB 20 00 01 01
Command format for Configuration:
Command Format
Command Example
指令
:FD 03 20 GpioId In/Out level
FF
Reply: FA 20
Send: FD 03 20 00 01 01 FF
Reply: FA 20
gpioPeripheral configuration data format (3 Byte): GpioId In/Out level.
gpioid :Channel ID
Channel ID
GPIO interface
00
PC0 interface
01
PB4 interface
In/Out: Channel output/input mode
0 output
1 input
level: the level status of the channel
0 low level
1 high level
2 flip
Note: When configured as input, level represents the input level value 0 (low level) or 1 (high level), when configuring output,
level represents 0 (low level), 1 (high level), 2 (electrical Flat flip) output.
6.6.20User PWM parameters
Command format for Read:
Command Format
Command Example
Send: FE 06 21 PWMId FF
Reply: FB 21 PWMId start/stop
Period Period duty duty
Send: FE 06 21 00 FF
Reply: FB 21 00 01
0A 3E 63 50
Command format for Configuration:
Command Format
Command Example
Send:FD 06 21 PwmId start/stop
Period1 Period2 duty1
duty2 FF
Send: FD 06 21 00 FF 03 65
02 48 FF
Reply: FA 21