PDA

View Full Version : ren24lv firmware



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.

mmulvenna
10-21-2010, 08:33 AM
Isnt the LV firmware located on Franks site?

RichF
10-21-2010, 12:36 PM
Yes and it is available on Franks site and also in the wiki.

cmitcham
10-21-2010, 01:14 PM
as usual, nothing is available at frank's site, or maybe it is my firewall here at work, but i don't think so. i can get to http://www.kostyun.com/, but all the links on that page show me an empty screen.

as i show above, the only firmware i find in the wiki is the standard renard .asm file. it does need some editing to work with dc ssrs, hence my questions...

repeating my guess for ren24lv changes:

1. comment out OUTPUT_NEGATIVE_TRUE line
2. change DC_build from 0 to 1
3. change CTR_LOCKOUT from 15 to 1
4. leave PWM_build set to 1

marble, i have your chips ready to mail, programmed with this guess, but i sure would love to hear from others if i have made the correct changes.

also, there are several similar but different paths through the wiki. if anyone knows the firmware i seek is in the wiki, please show me where.

thanks all!

budude
10-21-2010, 01:27 PM
That sounds correct - btw the Ren48LSD hex files in the File Library are identical to these settings.

cmitcham
10-21-2010, 03:27 PM
ahh, the file library. it didn't occur to me to look there. thanks very much.

marble, the chips are in the mail :)

marble42
10-21-2010, 04:43 PM
cmitcham
Thanks very much i will let you know how it works out