Skip to main content

I2C Driver ,ESP32

 

I2C Driver

Overview

I2C is a serial, synchronous, half-duplex communication protocol that allows co-existence of multiple masters and slaves on the same bus. The I2C bus consists of two lines: serial data line (SDA) and serial clock (SCL). Both lines require pull-up resistors.

With such advantages as simplicity and low manufacturing cost, I2C is mostly used for communication of low-speed peripheral devices over short distances (within one foot).

ESP32 has two I2C controllers (also referred to as ports) which are responsible for handling communications on two I2C buses. Each I2C controller can operate as master or slave. As an example, one controller can act as a master and the other as a slave at the same time.

Comments

Popular posts from this blog

cpp and header file example

https://docs.microsoft.com/en-us/cpp/cpp/header-files-cpp
  AK7451 Magnetic Angle Sensor AKM Semiconductor features their AK7451 zero latency magnetic rotary angle sensor for motor-driven applications The AK7455 is a 14-bit angular rotation sensor that detects magnetic fields parallel or perpendicular to the surface of the IC and tracks high speeds up to 25,000 rpm using proprietary technology. A simple configuration of the AK7455 and a small magnet is used to sense the angle of rotation in a non-contact manner. The AK7455 is available in a power supply voltage range of 3.0V to 5.5V and a small package (QFN 24-pin). https://www.akm.com/eu/en/products/rotation-angle-sensor/ Key Features Anomaly magnetic field detection A function to detect magnetic fields other than the sensor magnet as an anomaly magnetic field has been added, contributing to the detection of system anomalies and malfunctions. Increased placement flexibility in Off-Axis configurations In addition to the conventional magnetic field detec...

Pulse Counter,ESP32,PCNT

  Pulse Counter The PCNT (Pulse Counter) module is designed to count the number of rising and/or falling edges of an input signal. Each pulse counter unit has a 16-bit signed counter register and two channels that can be configured to either increment or decrement the counter. Each channel has a signal input that accepts signal edges to be detected, as well as a control input that can be used to enable or disable the signal input. The inputs have optional filters that can be used to discard unwanted glitches in the signal.