-
E220-400M22S has RXEN TXEN these pins. Can someone explain what is their role? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Some similar discussion here: #1265 Found with a search of just RXEN with many other hits, so there may be some other info to be looked at. |
Beta Was this translation helpful? Give feedback.
-
Explanation highly adapted from from https://github.com/meshtastic/firmware/blob/master/variants/EBYTE_ESP32-S3/variant.h (I wrote the text about the options in that file) The module connects the exposed TXEN and RXEN connections to an RF switch which connects the antenna to the transmission output of the SX1262 (the LoRa IC in the module) or the receiving input. Some modules also have Low Noise Amplifiers (LNA) and Power Amplifiers (PA) but this module doesn't have this. In your case, the antenna can only be connected to the transmission output of the SX1262 or its receiving input. Maybe the RF switch disconnects the antenna completely when RXEN and TXEN are the same, but I don't know this as I don't have the datasheet for the RF switch used. The SX126x's function "DIO2 as RF Switch" sets DIO2 to high when it is about to transmit. You can configure the delay between setting DIO2 high and starting the transmission. Your module's datasheet says when transmitting, have TXEN HIGH and RXEN LOW. When receiving, have TXEN LOW and RXEN HIGH. You can do this multiple ways:
Use option 1 if you can use 2 MCU pins for RF switching. For your module you don't need this, but for information: If you ever need TXEN and RXEN to be both off (or both on) always use option 1. For example, for modules with PAs and LNAs you might want to be able to do this (when you are neither TXing or RXing to save power if the PA is enabled by TXEN and the LNA is enabled by TXEN). Personally for your module I would use option 1 for the most flexibility, option 2 if I am slightly short on MCU pins, and option 3 if I am even more short on MCU pins are can add a hardware inverter, or if I am designing the PCB and want to be elegant or be sure I avoid undefined behaviour cases with an RF switch controlled by TXEN and RXEN |
Beta Was this translation helpful? Give feedback.
Explanation highly adapted from from https://github.com/meshtastic/firmware/blob/master/variants/EBYTE_ESP32-S3/variant.h (I wrote the text about the options in that file)
The module connects the exposed TXEN and RXEN connections to an RF switch which connects the antenna to the transmission output of the SX1262 (the LoRa IC in the module) or the receiving input.
Some modules also have Low Noise Amplifiers (LNA) and Power Amplifiers (PA) but this module doesn't have this.
In your case, the antenna can only be connected to the transmission output of the SX1262 or its receiving input. Maybe the RF switch disconnects the antenna completely when RXEN and TXEN are the same, but I don't know th…