Files
RP2040-Decoder/sphinx/html/other/CV_list.html
T
2024-11-27 22:16:41 +00:00

343 lines
25 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html class="writer-html5" lang="en" data-content_root="../">
<head>
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Configuration Variables (CV) &mdash; RP2040-Decoder 0.3, 1.0 documentation</title>
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=80d5e7a1" />
<link rel="stylesheet" type="text/css" href="../_static/css/theme.css?v=e59714d7" />
<script src="../_static/jquery.js?v=5d32c60e"></script>
<script src="../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../_static/documentation_options.js?v=6bd3bce2"></script>
<script src="../_static/doctools.js?v=9bcbadda"></script>
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../_static/js/theme.js"></script>
<link rel="index" title="Index" href="../genindex.html" />
<link rel="search" title="Search" href="../search.html" />
<link rel="next" title="Troubleshooting" href="troubleshooting.html" />
<link rel="prev" title="Header files" href="../software/header_files.html" />
</head>
<body class="wy-body-for-nav">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
<div class="wy-side-scroll">
<div class="wy-side-nav-search" >
<a href="../index.html" class="icon icon-home">
RP2040-Decoder
</a>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<p class="caption" role="heading"><span class="caption-text">Contents:</span></p>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="getting_started.html">Getting started</a></li>
<li class="toctree-l1"><a class="reference internal" href="../hardware/hw.html">Hardware</a></li>
<li class="toctree-l1"><a class="reference internal" href="../software/sw.html">Software</a></li>
<li class="toctree-l1 current"><a class="current reference internal" href="#">Configuration Variables (CV)</a><ul>
<li class="toctree-l2"><a class="reference internal" href="#note">Note</a></li>
<li class="toctree-l2"><a class="reference internal" href="#speed-step-configuration">Speed step configuration</a></li>
<li class="toctree-l2"><a class="reference internal" href="#cv-list">CV List</a><ul>
<li class="toctree-l3"><a class="reference internal" href="#cv-1-basic-address">CV_1 - Basic address</a></li>
<li class="toctree-l3"><a class="reference internal" href="#cv-2-v-min">CV_2 - V_min</a></li>
<li class="toctree-l3"><a class="reference internal" href="#cv-3-acceleration-rate">CV_3 - Acceleration rate</a></li>
<li class="toctree-l3"><a class="reference internal" href="#cv-4-deceleration-rate">CV_4 - Deceleration rate</a></li>
<li class="toctree-l3"><a class="reference internal" href="#cv-5-v-max">CV_5 - V_max</a></li>
<li class="toctree-l3"><a class="reference internal" href="#cv-6-v-mid">CV_6 - V_mid</a></li>
<li class="toctree-l3"><a class="reference internal" href="#cv-7-version-no-read-only">CV_7 - Version No. (Read-Only)</a></li>
<li class="toctree-l3"><a class="reference internal" href="#cv-8-manufacturer-read-only">CV_8 - Manufacturer (Read-Only)</a></li>
<li class="toctree-l3"><a class="reference internal" href="#cv-9-motor-pwm-frequency">CV_9 - Motor PWM Frequency</a></li>
<li class="toctree-l3"><a class="reference internal" href="#cv-11-packet-timeout">CV_11 - Packet timeout</a></li>
<li class="toctree-l3"><a class="reference internal" href="#cv-12-permitted-operating-modes">CV_12 - Permitted operating modes</a></li>
<li class="toctree-l3"><a class="reference internal" href="#cv-17-cv-18-14-bit-extended-long-address">CV_17 &amp; CV_18 - 14-Bit extended/long address</a></li>
<li class="toctree-l3"><a class="reference internal" href="#cv-29-decoder-configuration">CV_29 - Decoder Configuration</a></li>
<li class="toctree-l3"><a class="reference internal" href="#cv-31-cv-32-extended-cv-pointer-read-only">CV_31 &amp; CV_32 - Extended CV pointer (Read-Only)</a></li>
<li class="toctree-l3"><a class="reference internal" href="#cv-47-feed-forward-gain-k-ff">CV_47 - Feed-forward gain k_ff</a></li>
<li class="toctree-l3"><a class="reference internal" href="#cv-48-filter-time-constant-tau-in-ms">CV_48 - Filter time constant (tau) in ms</a></li>
<li class="toctree-l3"><a class="reference internal" href="#cv-49-pid-control-sampling-time-t-in-ms">CV_49 - PID Control sampling time t in ms</a></li>
<li class="toctree-l3"><a class="reference internal" href="#cv-50-pid-control-i-factor">CV_50 - PID Control I Factor</a></li>
<li class="toctree-l3"><a class="reference internal" href="#cv-51-pid-control-d-factor">CV_51 - PID Control D Factor</a></li>
<li class="toctree-l3"><a class="reference internal" href="#cv-52-cv-53-pid-integral-limits">CV_52 &amp; CV_53 - PID Integral Limits</a></li>
<li class="toctree-l3"><a class="reference internal" href="#cv-54-cv-55-gain-scheduling-config-k-p-x0">CV_54 &amp; CV_55 - Gain scheduling config k_p &#64; x0</a></li>
<li class="toctree-l3"><a class="reference internal" href="#cv-56-cv-57-gain-scheduling-config-k-p-x1">CV_56 &amp; CV_57 - Gain scheduling config k_p &#64; x1</a></li>
<li class="toctree-l3"><a class="reference internal" href="#cv-58-cv-59-gain-scheduling-config-k-p-x2">CV_58 &amp; CV_59 - Gain scheduling config k_p &#64; x2</a></li>
<li class="toctree-l3"><a class="reference internal" href="#cv-60-gain-scheduling-config-x1-shift-percentage">CV_60 - Gain scheduling config x1 shift percentage</a></li>
<li class="toctree-l3"><a class="reference internal" href="#cv-61-measurement-iterations">CV_61 - Measurement Iterations</a></li>
<li class="toctree-l3"><a class="reference internal" href="#cv-62-measurement-delay">CV_62 - Measurement Delay</a></li>
<li class="toctree-l3"><a class="reference internal" href="#cv-63-cv-64-measurement-array-cutoffs">CV_63 &amp; CV_64 - Measurement array cutoffs</a></li>
<li class="toctree-l3"><a class="reference internal" href="#cv-65-new-flash-variable">CV_65 - New flash variable</a></li>
<li class="toctree-l3"><a class="reference internal" href="#cv-112-cv-113-cv-114-cv-115-gpio-pwm-configuration">CV_112, CV_113, CV_114, CV_115 - GPIO PWM Configuration</a></li>
<li class="toctree-l3"><a class="reference internal" href="#cv-116-to-cv-171-pwm-slice-configuration">CV_116 to CV_171 - PWM Slice configuration</a></li>
<li class="toctree-l3"><a class="reference internal" href="#cv-172-adc-offset">CV_172 - ADC Offset</a></li>
<li class="toctree-l3"><a class="reference internal" href="#cv-173-adc-offset-measurement-cycles">CV_173 - ADC offset measurement cycles</a></li>
<li class="toctree-l3"><a class="reference internal" href="#cv-174-additional-motor-pwm-clock-divider">CV_174 - Additional motor-PWM clock divider.</a></li>
<li class="toctree-l3"><a class="reference internal" href="#cv-175-speed-helper-timer-delay">CV_175 - speed_helper timer delay</a></li>
<li class="toctree-l3"><a class="reference internal" href="#cv-176-cv-177-cv-178-cv-179-base-pwm-level-used-in-feed-forward-control">CV_176, CV_177, CV_178, CV_179 - Base PWM Level used in feed-forward control</a></li>
<li class="toctree-l3"><a class="reference internal" href="#cv-257-to-cv-512-function-mapping-cvs">CV_257 to CV_512 - Function Mapping CVs</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="troubleshooting.html">Troubleshooting</a></li>
</ul>
</div>
</div>
</nav>
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="../index.html">RP2040-Decoder</a>
</nav>
<div class="wy-nav-content">
<div class="rst-content">
<div role="navigation" aria-label="Page navigation">
<ul class="wy-breadcrumbs">
<li><a href="../index.html" class="icon icon-home" aria-label="Home"></a></li>
<li class="breadcrumb-item active">Configuration Variables (CV)</li>
<li class="wy-breadcrumbs-aside">
<a href="../_sources/other/CV_list.md.txt" rel="nofollow"> View page source</a>
</li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div itemprop="articleBody">
<section id="configuration-variables-cv">
<h1>Configuration Variables (CV)<a class="headerlink" href="#configuration-variables-cv" title="Link to this heading"></a></h1>
<section id="note">
<h2>Note<a class="headerlink" href="#note" title="Link to this heading"></a></h2>
<p>CV.h contains default values for every CV. When your board is still “factory new” these values are automatically written into flash. CV_65 == 255 indicates a factory condition and resets all CVs to default. Alternatively to reset all CVs to default a value of 8 can be written to CV8. Also note that index 0 in the CV array corresponds with CV_1, index 1 corresponds with CV_2 and so forth. This list only contains CVs that are in use.</p>
</section>
<section id="speed-step-configuration">
<h2>Speed step configuration<a class="headerlink" href="#speed-step-configuration" title="Link to this heading"></a></h2>
<p><img alt="Speed Table" src="https://github.com/gab-k/RP2040-Decoder/blob/main/docs/svg/speed_table.svg" /></p>
<ul class="simple">
<li><p>V_min = CV_2</p></li>
<li><p>V_mid = CV_6 * 16</p></li>
<li><p>V_max = CV_5 * 16</p></li>
</ul>
<p>The illustration above shows how the speed steps can be configured using the corresponding CVs. The red * represents V_min which is always at speed step 1, the green * shows V_mid at speed step 64 and the blue * shows V_max at speed step 126.</p>
</section>
<section id="cv-list">
<h2>CV List<a class="headerlink" href="#cv-list" title="Link to this heading"></a></h2>
<section id="cv-1-basic-address">
<h3>CV_1 - Basic address<a class="headerlink" href="#cv-1-basic-address" title="Link to this heading"></a></h3>
<p>Short DCC address</p>
</section>
<section id="cv-2-v-min">
<h3>CV_2 - V_min<a class="headerlink" href="#cv-2-v-min" title="Link to this heading"></a></h3>
<p>Min motor voltage/speed</p>
</section>
<section id="cv-3-acceleration-rate">
<h3>CV_3 - Acceleration rate<a class="headerlink" href="#cv-3-acceleration-rate" title="Link to this heading"></a></h3>
<p>CV_3*CV_175 = Time for one discrete speed step change in ms</p>
</section>
<section id="cv-4-deceleration-rate">
<h3>CV_4 - Deceleration rate<a class="headerlink" href="#cv-4-deceleration-rate" title="Link to this heading"></a></h3>
<p>CV_4*CV_175 = Time for one discrete speed step change in ms</p>
</section>
<section id="cv-5-v-max">
<h3>CV_5 - V_max<a class="headerlink" href="#cv-5-v-max" title="Link to this heading"></a></h3>
<p>Max motor voltage/speed - V_max = CV_5 * 16</p>
</section>
<section id="cv-6-v-mid">
<h3>CV_6 - V_mid<a class="headerlink" href="#cv-6-v-mid" title="Link to this heading"></a></h3>
<p>Mid motor voltage/speed - V_max = CV_6 * 16</p>
</section>
<section id="cv-7-version-no-read-only">
<h3>CV_7 - Version No. (Read-Only)<a class="headerlink" href="#cv-7-version-no-read-only" title="Link to this heading"></a></h3>
<p>Rev 0.3 = 1</p>
<p>Writing a value of 7 triggers am ADC offset adjustment.</p>
</section>
<section id="cv-8-manufacturer-read-only">
<h3>CV_8 - Manufacturer (Read-Only)<a class="headerlink" href="#cv-8-manufacturer-read-only" title="Link to this heading"></a></h3>
<p>Default = “13” = Public Domain &amp; Do-It-Yourself Decoders</p>
<p>Writing a value of 8 resets all CV values to the default values in CV.h.
This will also happen if CV_65 == “255” == “0xFF”.</p>
</section>
<section id="cv-9-motor-pwm-frequency">
<h3>CV_9 - Motor PWM Frequency<a class="headerlink" href="#cv-9-motor-pwm-frequency" title="Link to this heading"></a></h3>
<p>f in Hz = CV_9 * 100 + 10000</p>
</section>
<section id="cv-11-packet-timeout">
<h3>CV_11 - Packet timeout<a class="headerlink" href="#cv-11-packet-timeout" title="Link to this heading"></a></h3>
<p>If no package is received for x seconds (x = CV_11) the decoder will automatically stop the motor (Emergency Stop).</p>
</section>
<section id="cv-12-permitted-operating-modes">
<h3>CV_12 - Permitted operating modes<a class="headerlink" href="#cv-12-permitted-operating-modes" title="Link to this heading"></a></h3>
<p>Currently DCC Digital mode is the only supported mode.</p>
</section>
<section id="cv-17-cv-18-14-bit-extended-long-address">
<h3>CV_17 &amp; CV_18 - 14-Bit extended/long address<a class="headerlink" href="#cv-17-cv-18-14-bit-extended-long-address" title="Link to this heading"></a></h3>
<p>Address is only used if bit5 has a value of “1” in CV_29.</p>
<p><img alt="Long Address" src="https://github.com/gab-k/RP2040-Decoder/blob/main/docs/svg/Long_address.svg" /></p>
<p>Bit15 and bit14 which correspond to bit7 and bit6 of CV_17 are always “1”. CV_17 = “192” &amp; CV_18 = “0” is also not a valid address. Otherwise the valid value range of CV_17 ranges from “192” to “231” and “0” to “255” for CV_18 respectively.</p>
</section>
<section id="cv-29-decoder-configuration">
<h3>CV_29 - Decoder Configuration<a class="headerlink" href="#cv-29-decoder-configuration" title="Link to this heading"></a></h3>
<p>Bit0 is used to reverse direction i.e. “0” = normal, “1” = reverse.
Bit5 switches between basic and extended addressing modes i.e. “0” = basic address, “1” = extended address.
The other 6 bits are currently not in use and therefore irrelevant.</p>
</section>
<section id="cv-31-cv-32-extended-cv-pointer-read-only">
<h3>CV_31 &amp; CV_32 - Extended CV pointer (Read-Only)<a class="headerlink" href="#cv-31-cv-32-extended-cv-pointer-read-only" title="Link to this heading"></a></h3>
<p>Not in use.</p>
</section>
<section id="cv-47-feed-forward-gain-k-ff">
<h3>CV_47 - Feed-forward gain k_ff<a class="headerlink" href="#cv-47-feed-forward-gain-k-ff" title="Link to this heading"></a></h3>
<p>k_ff defines the correction behavior with regard to the y2 variable. High values for k_ff lead to a faster change in the variable. Values for k_ff that are too high can lead to oscillations.
k_ff = CV_47/10000</p>
</section>
<section id="cv-48-filter-time-constant-tau-in-ms">
<h3>CV_48 - Filter time constant (tau) in ms<a class="headerlink" href="#cv-48-filter-time-constant-tau-in-ms" title="Link to this heading"></a></h3>
<p>The time constant tau characterizes the low-pass filter which is connected downstream in the D component of the PID controller</p>
</section>
<section id="cv-49-pid-control-sampling-time-t-in-ms">
<h3>CV_49 - PID Control sampling time t in ms<a class="headerlink" href="#cv-49-pid-control-sampling-time-t-in-ms" title="Link to this heading"></a></h3>
<p>Every t seconds the pid_control() function gets called to compute the new control output</p>
</section>
<section id="cv-50-pid-control-i-factor">
<h3>CV_50 - PID Control I Factor<a class="headerlink" href="#cv-50-pid-control-i-factor" title="Link to this heading"></a></h3>
<p>Integral gain factor of the PID-Controller</p>
</section>
<section id="cv-51-pid-control-d-factor">
<h3>CV_51 - PID Control D Factor<a class="headerlink" href="#cv-51-pid-control-d-factor" title="Link to this heading"></a></h3>
<p>Derivative gain factor of the PID-Controller</p>
</section>
<section id="cv-52-cv-53-pid-integral-limits">
<h3>CV_52 &amp; CV_53 - PID Integral Limits<a class="headerlink" href="#cv-52-cv-53-pid-integral-limits" title="Link to this heading"></a></h3>
<p>Maximum and minimum integral part values</p>
</section>
<section id="cv-54-cv-55-gain-scheduling-config-k-p-x0">
<h3>CV_54 &amp; CV_55 - Gain scheduling config k_p &#64; x0<a class="headerlink" href="#cv-54-cv-55-gain-scheduling-config-k-p-x0" title="Link to this heading"></a></h3>
<p>CV_54 - High Byte – CV_55 - Low Byte</p>
</section>
<section id="cv-56-cv-57-gain-scheduling-config-k-p-x1">
<h3>CV_56 &amp; CV_57 - Gain scheduling config k_p &#64; x1<a class="headerlink" href="#cv-56-cv-57-gain-scheduling-config-k-p-x1" title="Link to this heading"></a></h3>
<p>CV_56 - High Byte – CV_57 - Low Byte</p>
</section>
<section id="cv-58-cv-59-gain-scheduling-config-k-p-x2">
<h3>CV_58 &amp; CV_59 - Gain scheduling config k_p &#64; x2<a class="headerlink" href="#cv-58-cv-59-gain-scheduling-config-k-p-x2" title="Link to this heading"></a></h3>
<p>CV_58 - High Byte – CV_59 - Low Byte</p>
</section>
<section id="cv-60-gain-scheduling-config-x1-shift-percentage">
<h3>CV_60 - Gain scheduling config x1 shift percentage<a class="headerlink" href="#cv-60-gain-scheduling-config-x1-shift-percentage" title="Link to this heading"></a></h3>
<p>Determines position of x1 in percent -&gt; x1 shift in % ≙ CV_60/255</p>
</section>
<section id="cv-61-measurement-iterations">
<h3>CV_61 - Measurement Iterations<a class="headerlink" href="#cv-61-measurement-iterations" title="Link to this heading"></a></h3>
<p>Total amount of BEMF-Voltage measurement iterations</p>
</section>
<section id="cv-62-measurement-delay">
<h3>CV_62 - Measurement Delay<a class="headerlink" href="#cv-62-measurement-delay" title="Link to this heading"></a></h3>
<p>BEMF-Voltage measurement delay</p>
</section>
<section id="cv-63-cv-64-measurement-array-cutoffs">
<h3>CV_63 &amp; CV_64 - Measurement array cutoffs<a class="headerlink" href="#cv-63-cv-64-measurement-array-cutoffs" title="Link to this heading"></a></h3>
<p>CV_63 determines how many elements from the left side (beginning with index 0) of the array will be discarded while CV_64 determines how many elements from the right side (beginning from highest index) will be discarded.</p>
</section>
<section id="cv-65-new-flash-variable">
<h3>CV_65 - New flash variable<a class="headerlink" href="#cv-65-new-flash-variable" title="Link to this heading"></a></h3>
<p>Each Byte of the factory new flash chip should have a inital state of “0xFF”. This will be checked for in the beginning of core0.c (see cv_setup_check()). When CV_65 == “255” == “0xFF” the default config (CV.h) will be written to flash. Alternatively a reset to default can be done by either writing “8” to CV_8 or writing “255” to CV_65 which then triggers a reset on startup.</p>
</section>
<section id="cv-112-cv-113-cv-114-cv-115-gpio-pwm-configuration">
<h3>CV_112, CV_113, CV_114, CV_115 - GPIO PWM Configuration<a class="headerlink" href="#cv-112-cv-113-cv-114-cv-115-gpio-pwm-configuration" title="Link to this heading"></a></h3>
<p>PWM enabled “1” - PWM disabled “0”</p>
</section>
<section id="cv-116-to-cv-171-pwm-slice-configuration">
<h3>CV_116 to CV_171 - PWM Slice configuration<a class="headerlink" href="#cv-116-to-cv-171-pwm-slice-configuration" title="Link to this heading"></a></h3>
<p><img alt="GPIO Slices" src="https://github.com/gab-k/RP2040-Decoder/blob/main/docs/svg/GPIO_slices.svg" /></p>
<p>Every slice controls two independent output channels, duty cycle from 0% to 100% inclusive and can be configured with several parameters:</p>
<ul class="simple">
<li><p>Wrap (16Bit): Sets the slice time period of x cycles - effectively determining the frequency</p></li>
<li><p>Clock Divider: Additional clock divider</p></li>
<li><p>Level Channel A / Level Channel B - (16Bit each): Determining how many of the x cycles the signal is at a high level - effectively determining the duty cycle</p></li>
</ul>
<p>To see which CVs correspond to which slice and channel, it is advisable to use CV.h as a reference</p>
<p>The PWM-frequency is calculated as follows: f<sub>PWM</sub> = 125 MHz / [ (CV<sub>clk_div</sub> + 1) * (CV<sub>wrap</sub> + 1) ]</p>
<p>The duty-cycle can be calculated as follows: D = CV<sub>Level</sub> / CV<sub>wrap</sub> + 1</p>
<p><strong>Example configuration - (AUX2: PWM-Frequency f<sub>PWM</sub> = 10kHz; Duty-cycle D = 20%):</strong></p>
<p>AUX1 =&gt; GPIO25 =&gt; Slice 4 / Channel B =&gt; Wrap: CV_144 &amp; CV_145; Clock-divider: CV_146; Level(B): CV_149 &amp; CV_150</p>
<p>=&gt; f<sub>PWM</sub> = 10kHz = 125 MHz / [ (0 + 1) * (12499 + 1) ];</p>
<p>=&gt; CV_144 = 110000, CV_145 = 11010011, CV_146 = 0; — (Note: “12499<sub>dec</sub>” = “11000011010011<sub>bin</sub>”)</p>
<p>=&gt; CV<sub>Level</sub> = CV_149 &amp; CV_150 = D * (CV<sub>wrap</sub> + 1) = 0.2 * 12500 = 2500</p>
<p>=&gt; CV_149 = 1001, CV_150 = 11000100; — (Note: “2500<sub>dec</sub>” = “100111000100<sub>bin</sub>”)</p>
<p>Another configuration which also achieves 10kHz and D = 20% would be CV<sub>clk_div</sub> = 10, CV<sub>wrap</sub> = 1249, CV<sub>Level</sub> = 250.</p>
<p>A more detailed explanation regarding PWM can be found in the <a class="reference external" href="https://datasheets.raspberrypi.com/rp2040/rp2040-datasheet.pdf">RP2040-Datasheet - Chapter 4.5</a>.</p>
</section>
<section id="cv-172-adc-offset">
<h3>CV_172 - ADC Offset<a class="headerlink" href="#cv-172-adc-offset" title="Link to this heading"></a></h3>
<p>If CV_172 = “0xFF” = “255” there will be a measurement procedure on startup</p>
</section>
<section id="cv-173-adc-offset-measurement-cycles">
<h3>CV_173 - ADC offset measurement cycles<a class="headerlink" href="#cv-173-adc-offset-measurement-cycles" title="Link to this heading"></a></h3>
<p>Determines how many ADC offset measurement iterations are done.</p>
</section>
<section id="cv-174-additional-motor-pwm-clock-divider">
<h3>CV_174 - Additional motor-PWM clock divider.<a class="headerlink" href="#cv-174-additional-motor-pwm-clock-divider" title="Link to this heading"></a></h3>
<p>Additional Clock Divider - works the same as any GPIO clock divider</p>
</section>
<section id="cv-175-speed-helper-timer-delay">
<h3>CV_175 - speed_helper timer delay<a class="headerlink" href="#cv-175-speed-helper-timer-delay" title="Link to this heading"></a></h3>
<p>This timer delay can be used to change the time between two speed steps. So basically an additional option to adjust the deceleration and acceleration rate.</p>
</section>
<section id="cv-176-cv-177-cv-178-cv-179-base-pwm-level-used-in-feed-forward-control">
<h3>CV_176, CV_177, CV_178, CV_179 - Base PWM Level used in feed-forward control<a class="headerlink" href="#cv-176-cv-177-cv-178-cv-179-base-pwm-level-used-in-feed-forward-control" title="Link to this heading"></a></h3>
<p>CV_176 - High Byte forward – CV_177 - Low Byte forward – CV_178 - High Byte reverse – CV_179 - Low Byte reverse</p>
<p>These values are equivalent to y1(forward) and y1(reverse) mentioned <a class="reference external" href="https://github.com/gab-k/RP2040-Decoder/wiki/Software-description#feed-forward">here</a>. Writing “0” to all four CVs schedules a new calibration on startup.</p>
</section>
<section id="cv-257-to-cv-512-function-mapping-cvs">
<h3>CV_257 to CV_512 - Function Mapping CVs<a class="headerlink" href="#cv-257-to-cv-512-function-mapping-cvs" title="Link to this heading"></a></h3>
<p>The switching status of the outputs depends both on the function instruction received and on the current direction of travel. That means you can, for example, use a function to switch two or more outputs or, as is usual with headlights, switch them depending on the direction of travel. For configuration, 32 bits (corresponding to the GPIOs) are available for each function in each direction of travel.</p>
</section>
</section>
</section>
</div>
</div>
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
<a href="../software/header_files.html" class="btn btn-neutral float-left" title="Header files" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
<a href="troubleshooting.html" class="btn btn-neutral float-right" title="Troubleshooting" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
</div>
<hr/>
<div role="contentinfo">
<p>&#169; Copyright 2024, Gabriel Koppenstein.</p>
</div>
Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
<a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
provided by <a href="https://readthedocs.org">Read the Docs</a>.
</footer>
</div>
</div>
</section>
</div>
<script>
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
});
</script>
</body>
</html>