Updated Configuration Variables (CV) List (markdown)
1 parent
ecdb1df63d
commit
66bdcc9b07
1 file changed
+24
-8
@@ -1,35 +1,51 @@
|
|||||||
# Comments regarding Configuration Variables:
|
# 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:
|
# CV List:
|
||||||
### CV1 - Basic address
|
### CV1 - Basic address
|
||||||
Short DCC address
|
Short DCC address
|
||||||
***
|
***
|
||||||
|
|
||||||
### CV2 - V_min
|
### CV2 - V_min
|
||||||
Min motor voltage
|
Min motor voltage/speed
|
||||||
***
|
***
|
||||||
|
|
||||||
### CV3 - Acceleration rate
|
### CV3 - Acceleration rate
|
||||||
CV_3*CV_59 = Time for one discrete speed step change in ms
|
CV_3*CV_59 = Time for one discrete speed step change in ms
|
||||||
***
|
***
|
||||||
|
|
||||||
### CV_4 - Deceleration rate
|
### CV_4 - Deceleration rate
|
||||||
CV_4*CV_59 = Time for one discrete speed step change in ms
|
CV_4*CV_59 = Time for one discrete speed step change in ms
|
||||||
***
|
***
|
||||||
|
|
||||||
### CV_5 - V_max
|
### CV_5 - V_max
|
||||||
Max motor voltage
|
Max motor voltage/speed
|
||||||
***
|
***
|
||||||
|
|
||||||
### CV_6 - V_mid
|
### CV_6 - V_mid
|
||||||
Mid motor voltage
|
Mid motor voltage/speed
|
||||||
***
|
***
|
||||||
|
|
||||||
### CV_7 - Version No.
|
### CV_7 - Version No.
|
||||||
Rev 0.2 = 1
|
Rev 0.2 = 1
|
||||||
|
|
||||||
Writing a value of 7 starts the offset adjustment procedure ("Motor calibration")
|
|
||||||
***
|
***
|
||||||
|
|
||||||
### CV_8 - Manufacturer
|
### CV_8 - Manufacturer
|
||||||
Default = 13 = Public Domain & Do-It-Yourself Decoders
|
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
|
### CV_9 - PWM Frequency
|
||||||
f in Hz = CV_9 * 100 + 10000
|
f in Hz = CV_9 * 100 + 10000
|
||||||
|
|
||||||
Default = (150 * 100 + 10000)Hz = 25kHz
|
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.
|
||||||
|
***
|
||||||
Reference in new issue
Block a user