Using TMR1 disables outputs B and C

For MIAC users to discuss projects, applications, and any other issues related to the MIAC unit.

Moderators: Benj, Mods

Post Reply
singerinst_ben
Posts: 22
Joined: Fri Jun 20, 2014 4:41 pm
Location: England, UK
Has thanked: 10 times
Been thanked: 7 times
Contact:

Using TMR1 disables outputs B and C

Post 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 5395 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
Attachments
MIAC_B_and_C_debug.fcfx
(5.21 KiB) Downloaded 388 times

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: Using TMR1 disables outputs B and C

Post 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
Martin

singerinst_ben
Posts: 22
Joined: Fri Jun 20, 2014 4:41 pm
Location: England, UK
Has thanked: 10 times
Been thanked: 7 times
Contact:

Re: Using TMR1 disables outputs B and C

Post 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

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: Using TMR1 disables outputs B and C

Post 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
Martin

Post Reply