Chengdu Ebyte Electronic Technology Co., Ltd.
E22-xxxT22S series product user manual
Copyright©2012–2024
, Chengdu Ebyte Electronic Technology Co., Ltd.
13
6. Working Mode
The module has four working modes, which are set by pins M1 and M0; details are shown in the following table:
Mode (0-3)
M1
M0
Mode introduction
Remark
0
Transmission
Mode
0
0
UART and wireless channel are open, transparent transmission is
on
Support over-the-air
configuration via special
command
1
WOR Mode
0
1
Can be set as WOR Transmitter or WOR Receiver
Support wake up over the
air
2
Configuration
Mode
1
0
Users can access the registers through the serial port to control the
working status of the module
3
Deep Sleep
Mode
1
1
Module goes to sleep
6.1 Precautions for mode switching
No.
Remark
1
Users can combine high and low levels with M1 and M0 to determine the module’s working mode. Two GPIOs of the
MCU can be used to control mode switching;
After changing M1 and M0: If the module is idle, after 1ms, it can start working according to the new mode;
If there is serial port data of the module not been transmitted through the wireless, the new working mode can be
switched after the transmission is completed;
If the module receives the wireless data and transmits the data through the serial port, it needs to finish transmission
before switching to the new working mode;
Therefore, mode switching can only be valid when AUX output is 1, otherwise it will delay switching
2
For example, users continuously inputs a large amount of data and simultaneously performs mode switching. At this
time, the switching mode operation is invalid; the module will process all the user data before performing the new mode
detection;
Therefore, the general recommendation is to detect the output state of the AUX pin and switch mode after 2ms when
AUX outputs high level.
3
When the module is switched to sleep mode from other modes, if there is data not been processed yet, the module will
process these data (including receiving and sending) before entering sleep mode. This feature can be used for fast sleep
to save power;
For example, the transmitter module works in mode 0, the user transmits the serial port data "12345". At the time, user
does need to wait for the AUX pin to be idle (high level), user can directly switch the module to sleep mode and make
user’s main MCU immediately sleep, then the module will automatically transmit the user data through the wireless, and
will enters sleep mode within 1ms automatically; This will saves MCU's working time and reduces its power
consumption.
4
Similarly, any mode switching can use this feature. After the module processes the event in the current mode, it will
automatically enter the new mode within 1ms; This saves the user’s work of querying AUX and it achieves the purpose
of fast switching;
For example, switching from the transmit mode to the receive mode; the user MCU can also enter sleep before the mode
switch, and use the external interrupt function to acquire the AUX change, thereby performing mode switching.
5
This operation mode is very flexible and efficient. It is designed according to the user's MCU's operation convenience,
and it can reduce the workload of the entire system as much as possible, improving system efficiency, and reducing
power consumption as well..