The maximum input voltage that can be applied to the TPS54312PWPR is 42V, but it's recommended to keep it below 40V for reliable operation.
The inductor value depends on the output voltage, output current, and switching frequency. A good starting point is to use the inductor selection guide in the datasheet or use TI's WEBENCH Power Designer tool to get a recommended inductor value.
The EN (enable) pin is used to turn the converter on and off. It's an active-high input, so connect it to VIN or a logic high signal to enable the converter, and connect it to GND or a logic low signal to disable it.
The output voltage can be adjusted by changing the resistor divider network connected to the FB (feedback) pin. Use the formula in the datasheet to calculate the required resistor values for the desired output voltage.
The maximum output current of the TPS54312PWPR is 3A, but it's recommended to derate the output current based on the ambient temperature and the input voltage to ensure reliable operation.