cmitcham
10-20-2010, 12:12 AM
i am programming pics for the ren24lv driving dc ssrs for the first time, for another member, and i don't have the lv board to test with, so...
here is all i find on the ren24lv wiki page:
Firmware
All Renard Firmware is located Renard_Firmware This board REQUIRES the POSITIVE OUTPUT firmware option. Comment out the following line:
[ #define OUTPUT_NEGATIVE_TRUE] as follows;
[;; #define OUTPUT_NEGATIVE_TRUE]
sounded like the only change was sourcing rather than sinking outputs.
but comments in the firmware lead me to believe in addition to the above, that i need to change DC_build and CTR_LOCKOUT.
so here is what i'm going with. does this look right?
;; PWM_build can be either 0 or 1
#define PWM_build 1
;; DC_build can be either 0 or 1 (it should be 0 if PWM_build is 0)
#define DC_build 1
#define CLOCKRATE 18432000
#define BAUDRATE 57600
;; CTR_LOCKOUT should be 1 for the DC build, can be a somewhat larger number
;; for non-PWM or non-DC builds.
;; #define CTR_LOCKOUT 15
#define CTR_LOCKOUT 1
;; For positive_true outputs, remove the following define (normally, this
;; should be left in place).
;; #define OUTPUT_NEGATIVE_TRUE
thanks for any help.
here is all i find on the ren24lv wiki page:
Firmware
All Renard Firmware is located Renard_Firmware This board REQUIRES the POSITIVE OUTPUT firmware option. Comment out the following line:
[ #define OUTPUT_NEGATIVE_TRUE] as follows;
[;; #define OUTPUT_NEGATIVE_TRUE]
sounded like the only change was sourcing rather than sinking outputs.
but comments in the firmware lead me to believe in addition to the above, that i need to change DC_build and CTR_LOCKOUT.
so here is what i'm going with. does this look right?
;; PWM_build can be either 0 or 1
#define PWM_build 1
;; DC_build can be either 0 or 1 (it should be 0 if PWM_build is 0)
#define DC_build 1
#define CLOCKRATE 18432000
#define BAUDRATE 57600
;; CTR_LOCKOUT should be 1 for the DC build, can be a somewhat larger number
;; for non-PWM or non-DC builds.
;; #define CTR_LOCKOUT 15
#define CTR_LOCKOUT 1
;; For positive_true outputs, remove the following define (normally, this
;; should be left in place).
;; #define OUTPUT_NEGATIVE_TRUE
thanks for any help.