Operating Mode; Mode Switch - Ebyte E330-400T13S User Manual

433/470mhz 20mw wireless module
Table of Contents

Advertisement

Chengdu Ebyte Electronic Technology Co., Ltd.

6. Operating mode

The module has four working modes, which are set by pins M1 and M0; the details are shown in the following table:
Mode(0-3)
M1
0
Send mode
(0)
0
Receive mode
(1)
Configuration
1
mode (2)
Sleep mode
1
(3)

6.1 Mode switch

No
Users can combine high and low levels of M1 and M0 to determine the working mode of the module. Two GPIOs of
MCU can be used to control mode switching
After changing M1 and M0: If the module is idle, it can start to work according to the new mode after 1ms;
If the module has serial port data that has not been transmitted wirelessly, the new working mode can be entered after
1
the transmission is completed;
If the module receives wireless data and sends out data through the serial port, it must be sent to the new working mode;
Therefore, the mode switching can only be effective when AUX outputs 1, otherwise the switching will be delayed.
For example: the user continuously inputs a large amount of data and performs mode switching at the same time, the
switching mode operation at this time is invalid; the module will process all user data before proceeding to the new
mode detection
2
So the general suggestion is: check the output status of the AUX pin, wait for 2ms after outputting the high level, and
then switch.
When the module is switched from other modes to sleep mode, if there is data that has not yet been processed;
After the module processes these data (including receiving and sending), it can enter the sleep mode. This feature can be
used for fast sleep, thereby saving power consumption; for example: the transmitter module works in mode 0, the user
initiates serial data "12345", and then does not need to wait for the AUX pin to be idle (high level), and can directly
3
switch to sleep mode. And the user's main MCU will go to sleep immediately, and the module will automatically send
all user data wirelessly, and it will automatically go to sleep within 1ms.
Thereby saving MCU working time and reducing power consumption.
Similarly, this feature can be used in any mode switching. After the module processes the current mode event, it will
automatically enter a new mode within 1ms; thus eliminating the need for users to query AUX and achieving the
purpose of fast switching ;
4
For example, switching from the transmitting mode to the receiving mode; the user MCU can also go to sleep before the
mode switching, and use the external interrupt function to obtain the AUX changes, thereby performing the mode
switching.
Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
M0
0
The serial port is turned on, the wireless is turned on, and the
wake-up code is automatically added before sending the data
1
The serial port reception is closed, and the wireless is periodically
awakened to listen to air data. After receiving the data, open the
0
Deep sleep mode, configuration commands can be sent through the
serial port, the serial port fixed parameters 9600, 8N, 1
1
Module deep sleep mode, both serial port and wireless are closed
Mode introduction
packet;
serial port to output data;
Remark
E78-900M22S User manual
Remark
Use with mode 1
Use with mode 0
10

Advertisement

Table of Contents
loading

Table of Contents