mirror of
https://github.com/espressif/esp-idf.git
synced 2026-05-04 20:05:25 +02:00
Merge branch 'feature/esp32s2beta_merge' into 'master'
esp32s2beta: Merge support to master Closes IDF-513, IDF-756, IDF-758, IDF-999, IDF-753, IDF-749, IDF-754, IDF-840, and IDF-755 See merge request espressif/esp-idf!6100
This commit is contained in:
@@ -22,6 +22,7 @@ Peripherals API
|
||||
Sigma-delta Modulation <sigmadelta>
|
||||
SPI Master <spi_master>
|
||||
SPI Slave <spi_slave>
|
||||
Temp sensor <temp_sensor>
|
||||
Timer <timer>
|
||||
Touch Sensor <touch_pad>
|
||||
UART <uart>
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
ESP32-S2 Temperature Sensor
|
||||
===========================
|
||||
|
||||
Overview
|
||||
--------
|
||||
|
||||
The ESP32-S2 has a built-in temperature sensor. The temperature sensor module contains an 8-bit Sigma-Delta ADC and a temperature offset DAC.
|
||||
The conversion relationship is the first columns of the table below. Among them, offset = 0 is the main measurement option, and other values are extended measurement options.
|
||||
|
||||
+--------+------------------------+------------------------+
|
||||
| offset | measure range(Celsius) | measure error(Celsius) |
|
||||
+========+========================+========================+
|
||||
| -2 | 50 ~ 125 | < 3 |
|
||||
+--------+------------------------+------------------------+
|
||||
| -1 | 20 ~ 100 | < 2 |
|
||||
+--------+------------------------+------------------------+
|
||||
| 0 | -10 ~ 80 | < 1 |
|
||||
+--------+------------------------+------------------------+
|
||||
| 1 | -30 ~ 50 | < 2 |
|
||||
+--------+------------------------+------------------------+
|
||||
| 2 | -40 ~ 20 | < 3 |
|
||||
+--------+------------------------+------------------------+
|
||||
|
||||
Application Example
|
||||
-------------------
|
||||
|
||||
Temperature sensor reading example: :example:`peripherals/temp_sensor`.
|
||||
|
||||
API Reference - Normal Temp Sensor
|
||||
----------------------------------
|
||||
|
||||
.. include:: /_build/inc/temp_sensor.inc
|
||||
@@ -169,7 +169,7 @@ The API provides a convenient way to handle specific interrupts discussed above
|
||||
|
||||
* **FIFO space threshold or transmission timeout reached** - the interrupts on TX or Rx FIFO buffer being filled with specific number of characters or on a timeout of sending or receiving data. To use these interrupts, first configure respective threshold values of the buffer length and the timeout by entering them in :cpp:type:`uart_intr_config_t` structure and calling :cpp:func:`uart_intr_config`. Then enable interrupts with functions :cpp:func:`uart_enable_rx_intr` and :cpp:func:`uart_enable_tx_intr`. To disable these interrupts there are corresponding functions :cpp:func:`uart_disable_rx_intr` or :cpp:func:`uart_disable_tx_intr`.
|
||||
|
||||
* **Pattern detection** - an interrupt triggered on detecting a 'pattern' of the same character being sent number of times. The functions that allow to configure, enable and disable this interrupt are :cpp:func:`uart_enable_pattern_det_intr` and cpp:func:`uart_disable_pattern_det_intr`.
|
||||
* **Pattern detection** - an interrupt triggered on detecting a 'pattern' of the same character being sent number of times. The functions that allow to configure, enable and disable this interrupt are :cpp:func:`uart_enable_pattern_det_baud_intr` and cpp:func:`uart_disable_pattern_det_intr`.
|
||||
|
||||
Macros
|
||||
^^^^^^
|
||||
|
||||
Reference in New Issue
Block a user