Ebyte E180-Z5812SX Manual page 29

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

Advertisement

Chengdu Ebyte Electronic Technology Co.,Ltd.
Reply: FA 21
PwmPeripheral configuration data format (6 Byte): PwmId start/stop Period1 Period2 duty1 duty2
PwmId :Channel ID
start/stop: start and stop channel PWM output
0xFF means to start PWM in 1mS unit, the parameter range is 0-340, then 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 with 0.5uS as the 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: pwm cycle time (determine the unit of the cycle and the maximum cycle according to the start/stop byte)
Period1 represents the upper 8 bits of the period
Period2 indicates that the lower 8 of the period is
duty: pwm duty cycle time (according to the start/stop byte to determine the cycle unit and maximum cycle)
duty1 represents the high 8 bits of the duty cycle
duty2 represents the lower 8 bits of the duty cycle
Note:
1. The period value must be greater than the duty cycle duty. It is recommended that the difference between the period period and the
duty cycle duty be greater than 2ms. If the period is less than the duty cycle, the system will default to the period equal to twice the
duty cycle duty. The empty ratio represents the high level time.
The PWM period units of 2.4 channels need to be the same, and some of the 4 channels cannot be configured at ms level and some are
configured at us level, because the frequency division coefficients of millisecond level and microsecond level are different, if some are
configured to millisecond level, Some configurations are at the microsecond level, which will cause the frequency division coefficient
to be based on the last configuration.
Copyright ©2012–2021, Chengdu Ebyte Electronic Technology Co., Ltd.
Channel ID
0x00
0x01
0x02
0x03
PWM GPIO interface
PC2 interface
PD2 interface
PC3 interface
PC4 interface
E180-Z5812SX User Manual
28

Advertisement

Table of Contents
loading

Table of Contents