# Using N-Channel MOSFET as level shifter

**URL:** <https://community.aisler.net/t/using-n-channel-mosfet-as-level-shifter/3634>\
**Category:** 💡 Deep dives\
**Created:** [February 7, 2024, 4:48pm UTC](https://community.aisler.net/t/using-n-channel-mosfet-as-level-shifter/3634 "2024-02-07T16:48:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thea](https://community-cdn.aisler.net/user_avatar/community.aisler.net/thea/32/1177_2.png) [@Thea](https://community.aisler.net/u/Thea)\
**Post date:** [February 7, 2024, 4:48pm UTC](https://community.aisler.net/t/using-n-channel-mosfet-as-level-shifter/3634/1 "2024-02-07T16:48:11Z")

</div>

## Introduction

Modern circuits often use multiple voltage levels domains in a single design, the microcontroller may require 3.3V and the temperature sensor 1.8V for example. To interface with the temperature sensor, we need a device that translates the two logic levels. These devices are called level shifter or voltage translators and available in various configurations, in this article we describe how N-Channel MOSFETs can be used as simple and low-cost level shifter for active low interfaces like I²C and UART.

## Circuit Description

A resistor pulls the signal lines to their respective logic level, and an N-channel MOSFET separates the two logic levels. The MOSFETs gate is connected to the lower supply voltage, source to the low voltage signal, drain to the high voltage signal.

 ![Circuit Schematic](https://community.aisler.net/uploads/default/original/2X/1/142fbb0760d59f2e62035e12f7b80085c129350b.png)

## Working principle

**Steady State**

In the steady state, when no data is transferred, the voltage at the gate and source of the MOSFET are equal, the MOSFET does not conduct. The body diode is reversed biased and does not conduct.

 ![Steady State](https://community.aisler.net/uploads/default/original/2X/7/79287240cca7de9ff63cd7c5e2cf3d757be07e3c.png)

**Low-side is pulled low**

When the low-side is pulled low, the voltage from gate to source increases and the MOSFET will start to conduct, sinking current to the low-side, decreasing the voltage on the high-side.

 ![Low side is pulled low](https://community.aisler.net/uploads/default/original/2X/4/4d5fd82c228a1319fa8ad257efa2448679d6e868.png)

**High-side is pulled low**

Pulling the logic level low on the high-side will forward bias the body diode, sinking current from the low-side, doing so reduces the voltage on the low side enough that the MOSFET starts to conduct too.

 ![grafik](https://community.aisler.net/uploads/default/original/2X/5/512a35109da01cd9cfd7205038d4edecff284c0c.png)
