From 66bdcc9b077d9c093080e475b68331c7b5d34589 Mon Sep 17 00:00:00 2001 From: Gabriel Koppenstein <82903393+1nct@users.noreply.github.com> Date: Sun, 20 Mar 2022 16:20:32 +0100 Subject: [PATCH] Updated Configuration Variables (CV) List (markdown) --- Configuration-Variables-(CV)-List.md | 32 +++++++++++++++++++++------- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/Configuration-Variables-(CV)-List.md b/Configuration-Variables-(CV)-List.md index 8f61df3..17a1aab 100644 --- a/Configuration-Variables-(CV)-List.md +++ b/Configuration-Variables-(CV)-List.md @@ -1,35 +1,51 @@ # Comments regarding Configuration Variables: -CV.h contains default values for every CV. When your board is still "factory new" these values need to be written into flash. This is done easiest by writing a value of 8 to CV8. Also note that index 0 in the CV array corresponds with CV1 and so forth. Also note that the CV list only contains CVs that are in use. +CV.h contains default values for every CV. When your board is still "factory new" these values need to be written into flash. This is normally done automatically (see CV65 for reference), alternatively you can write a value of 8 to CV8. Also note that index 0 in the CV array corresponds with CV1 and so forth. This list only contains CVs that are in use. # CV List: ### CV1 - Basic address Short DCC address *** + ### CV2 - V_min -Min motor voltage +Min motor voltage/speed *** + ### CV3 - Acceleration rate CV_3*CV_59 = Time for one discrete speed step change in ms *** + ### CV_4 - Deceleration rate CV_4*CV_59 = Time for one discrete speed step change in ms *** + ### CV_5 - V_max -Max motor voltage +Max motor voltage/speed *** + ### CV_6 - V_mid -Mid motor voltage +Mid motor voltage/speed *** + ### CV_7 - Version No. Rev 0.2 = 1 - -Writing a value of 7 starts the offset adjustment procedure ("Motor calibration") *** + ### CV_8 - Manufacturer Default = 13 = Public Domain & Do-It-Yourself Decoders -Writing a value of 8 resets all CV values to the values in CV.h +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 *** + ### CV_9 - PWM Frequency f in Hz = CV_9 * 100 + 10000 -Default = (150 * 100 + 10000)Hz = 25kHz \ No newline at end of file +Default = (150 * 100 + 10000)Hz = 25kHz +*** + +### CV_59 - speed_helper timer delay +This timer delay can be used to change the time between two speed steps. So basically an additional option to adjust dec/acc rate +*** + +### CV_65 - New flash variable +Each bit of the factory new flash chip should have a inital state of "1"(Resulting in a value of 0xFF for the whole byte of CV_65). 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. +*** \ No newline at end of file