mirror of
https://github.com/espressif/esp-idf
synced 2025-03-09 17:19:09 -04:00
doc: update sigma-delta doc for esp32c3
This commit is contained in:
parent
f1c7a3e06d
commit
5fe6c9f8ab
BIN
docs/_static/typical_sallenkey_LP_filter.png
vendored
Normal file
BIN
docs/_static/typical_sallenkey_LP_filter.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
@ -9,7 +9,13 @@ Introduction
|
||||
Functionality Overview
|
||||
----------------------
|
||||
|
||||
There are eight independent sigma-delta modulation channels identified with :cpp:type:`sigmadelta_channel_t`. Each channel is capable to output the binary, hardware generated signal with the sigma-delta modulation.
|
||||
.. only:: esp32 or esp32s2
|
||||
|
||||
There are eight independent sigma-delta modulation channels identified with :cpp:type:`sigmadelta_channel_t`. Each channel is capable to output the binary, hardware generated signal with the sigma-delta modulation.
|
||||
|
||||
.. only:: esp32c3
|
||||
|
||||
There are four independent sigma-delta modulation channels identified with :cpp:type:`sigmadelta_channel_t`. Each channel is capable to output the binary, hardware generated signal with the sigma-delta modulation.
|
||||
|
||||
Selected channel should be set up by providing configuration parameters in :cpp:type:`sigmadelta_config_t` and then applying this configuration with :cpp:func:`sigmadelta_config`.
|
||||
|
||||
@ -21,6 +27,22 @@ Another option is to call individual functions, that will configure all required
|
||||
|
||||
The range of the 'duty' input parameter of :cpp:func:`sigmadelta_set_duty` is from -128 to 127 (eight bit signed integer). If zero value is set, then the output signal's duty will be about 50%, see description of :cpp:func:`sigmadelta_set_duty`.
|
||||
|
||||
|
||||
Convert to analog signal (Optional)
|
||||
-----------------------------------
|
||||
|
||||
Typically, if the sigma-delta signal is connected to an LED, you don't have to add any filter between them (because our eyes are a low pass filter naturally). However, if you want to check the real voltage or watch the analog waveform, you need to design an analog low pass filter. Also, it is recommended to use an active filter instead of a passive filter to gain better isolation and not lose too much voltage.
|
||||
|
||||
For example, you can take the following `Sallen-Key topology Low Pass Filter`_ as a reference.
|
||||
|
||||
.. figure:: ../../../_static/typical_sallenkey_LP_filter.png
|
||||
:align: center
|
||||
:alt: Sallen-Key Low Pass Filter
|
||||
:figclass: align-center
|
||||
|
||||
Sallen-Key Low Pass Filter
|
||||
|
||||
|
||||
Application Example
|
||||
-------------------
|
||||
|
||||
@ -31,3 +53,5 @@ API Reference
|
||||
|
||||
.. include-build-file:: inc/sigmadelta.inc
|
||||
.. include-build-file:: inc/sigmadelta_types.inc
|
||||
|
||||
.. _Sallen-Key topology Low Pass Filter: https://en.wikipedia.org/wiki/Sallen%E2%80%93Key_topology
|
||||
|
Loading…
x
Reference in New Issue
Block a user