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?
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
Using TMR1 disables outputs B and C
-
- 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
- Attachments
-
- MIAC_B_and_C_debug.fcfx
- (5.21 KiB) Downloaded 416 times
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: Using TMR1 disables outputs B and C
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
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
-
- 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
Hi Martin,
Thanks for the reply, that indeed fixed the problem! Phew, what a PITA that was to find!
Thanks again,
Ben
Thanks for the reply, that indeed fixed the problem! Phew, what a PITA that was to find!
Thanks again,
Ben
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: Using TMR1 disables outputs B and C
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
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