Ebyte E180-Z5812SX Manual page 28

Tlsr8258 2.4ghz zigbce 3.0 multifunctional soc rf module
Table of Contents

Advertisement

Chengdu Ebyte Electronic Technology Co.,Ltd.
6.6.19 User GPIO parameters
Command format for Read:
Command Format
Send: FE 03 20 GpioId FF
Reply: FB 20 GpioId In/Out level
Command format for Configuration:
Command Format
指令:FD 03 20 GpioId In/Out level
FF
Reply: FA 20
gpioPeripheral configuration data format (3 Byte): GpioId In/Out level.
gpioid :Channel ID
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
Send: FE 06 21 PWMId FF
Reply: FB 21 PWMId start/stop
Period Period duty duty
Command format for Configuration:
Command Format
Send:FD 06 21 PwmId start/stop
Period1 Period2 duty1
duty2 FF
Copyright ©2012–2021, Chengdu Ebyte Electronic Technology Co., Ltd.
Command Example
Send: FE 03 20 00 FF
Reply: FB 20 00 01 01
Command Example
Send: FD 03 20 00 01 01 FF
Reply: FA 20
Channel ID
00
01
Command Example
Send: FE 06 21 00 FF
Reply: FB 21 00 01
0A 3E 63 50
Command Example
Send: FD 06 21 00 FF 03 65
02 48 FF
Reply: FA 21
GPIO interface
PC0 interface
PB4 interface
E180-Z5812SX User Manual
27

Advertisement

Table of Contents
loading

Table of Contents