|
Post by jjbrisvegas on Jun 19, 2014 13:15:51 GMT
Hi all,
Have just welded together my first 8 function accessory decoder (I won't insult those who can actually solder ;-) and am having a couple of toggling issues, so would appreciate any advice as a newb.
I am using Pic16F676 with the AccV0.06 Beta 1 firmware which is the latest I could find. With a PICkit2 I managed to pre-program correct address so my Lenz sees it as accessories 9-12 - all good there. I changed CV3-6=00. Have tested individual dual aspect signals and all ok, but when I connect them to the decoder I am getting some weird results :-(
Outputs A+B only A illuminates on and off when I toggle Acc9 Outputs C+D operate correctly when I toggle Acc10 Outputs E+F only E illuminates on and off when I toggle Acc11 Outputs G+H operate correctly when I toggle Acc12
Prior to inserting PIC I checked voltages as per manual and found nothing werid there...
Am I missing a few CV settings perhaps?
Jeff Gold Coast Au
|
|
|
Post by Paul Harman on Jun 21, 2014 18:15:13 GMT
Take a look at CV33. Lenz does not send deactivate commands so it is important that this CV is set correctly, I think 15 should be the correct value.
|
|
|
Post by jjbrisvegas on Jun 22, 2014 9:18:50 GMT
Thanks Paul, CV changed but still same... Outputs C&D and G&H function normally. Outputs A&B and E&F - only A and E operate when + is selected. They extinguish when - is pressed but B and F don't light up.
When first powered up outputs A,C,D,E,G, and H are all lit if that's a further clue for anyone.
Jeff
|
|
|
Post by Paul Harman on Jun 23, 2014 15:18:56 GMT
I will have a look and see if I can recreate what you are seeing.
|
|
|
Post by jjbrisvegas on Jun 24, 2014 2:52:24 GMT
All fixed. Built a second one and tested - worked fine. Reapplied firmware a couple of times to first, changed CV33=15, and away we go. Hmmmm...
|
|
|
Post by Paul Harman on Jun 26, 2014 23:44:16 GMT
Most peculiar. If it happens again take a copy of the program memory, fuses and EEPROM with the PIC programmer and send me the .HEX file, it looks like it might be hard to replicate.
The only thing that I can think it might be is if flicker had been applied to the affected outputs. I have seen instances where the pseudo random sequence has ended up a sequence of continuous zeros making the output appear off, but that goes away with a reboot and cannot be repeated.
|
|
|
Post by jjbrisvegas on Jun 29, 2014 11:26:20 GMT
Thanks Paul,
Have constructed third unit and no problems. I am putting it down to dodgy original flashing of that 16F676 so will keep an eye on it. Thanks again for the help :-)
|
|