Page 1 of 1

Using TMR1 disables outputs B and C

Posted: Wed Jan 21, 2015 12:21 pm
by singerinst_ben
I've come across a bit of a strange one, took me a while to pinpoint but I'm sure it is something I'm doing wrong.

Basically if I enable transistors B and C and then enable TMR1 both outputs are turned off. Is this a bug or is there a reason for it?
B_C_problem.jpg
B_C_problem.jpg (48.08 KiB) Viewed 6028 times
I've attached a file to show this. If you disable the top icon so that the timer is never enabled the outputs work fine. By enabling the timers the problem occurs. After flashing I always power cycle as until you power cycle the problem doesn't always show up. In the above code the macro timer1Test is empty.

Any help is greatly appreciated.

Regards,

Ben

Re: Using TMR1 disables outputs B and C

Posted: Wed Jan 21, 2015 12:47 pm
by medelec35
Hi Ben,
I believe that is related to this bug
If you follow the link I have posted a work around.
Can you let us know if it works for you or not.

Thanks

Martin

Re: Using TMR1 disables outputs B and C

Posted: Wed Jan 21, 2015 12:53 pm
by singerinst_ben
Hi Martin,

Thanks for the reply, that indeed fixed the problem! Phew, what a PITA that was to find!

Thanks again,

Ben

Re: Using TMR1 disables outputs B and C

Posted: Wed Jan 21, 2015 6:59 pm
by medelec35
Hi Ben,
Thanks for letting us know.

I know for a fact that this bug has been fixed for the next update.
So after update has gone out live (not sure when that is, maybe Matrix staff can answer that one) and its installed, you will no longer require C code after timer 1 interrupt.


Martin