Page 1 of 1

MIAC program simulates but wont run on Miac?

Posted: Thu May 16, 2013 6:07 pm
by juliansilver
I have just flowcoded my first MIAC program and tested it with the simulation built into the latest Flowcode 5 software with no errors. I downloaded the latest USB drivers and connected with no problem. Downloaded the compiled program to the MIAC hardware with no errors. Unfortunately the (my) screen appears but nothing else seems to work - timer etc.

Obviously I am doing something stupid but cant figure out what it might be? Can anyone give me a few pointers please?

I have attached the fcf fyi if that helps?

Regards...jules

Re: MIAC program simulates but wont run on Miac?

Posted: Thu May 16, 2013 6:36 pm
by medelec35
Hi jules,
juliansilver wrote:I have attached the fcf fyi if that helps?
That always helps. :)

To get your timer to Run
Double click on your interrupt component.
Select properties.
Change Clock Source select from 'Transition on T0CKI' pin to' Internal clock'
Unfortunately the simulator does not take that setting into account :(

If you want a more accurate clock and the Day of the week to automatically be displayed, then go to:
http://www.matrixmultimedia.com/mmforum ... 19&#p43119
and scroll down to my second post.

Martin

Re: MIAC program simulates but wont run on Miac?

Posted: Fri May 17, 2013 1:29 am
by juliansilver
AHHHH! Thanks Martin. I was sure it was something stupid I was doing. I will try that out tomoz and update this post accordingly. Cheers jules

Re: MIAC program simulates but wont run on Miac?

Posted: Fri May 17, 2013 9:22 am
by juliansilver
Yep. Changing the clock source for TMR0 worked a reat. Many thanks Martin.

Regds...j

Re: MIAC program simulates but wont run on Miac?

Posted: Fri May 17, 2013 6:48 pm
by medelec35
Your welcome jules.
Just glad your all sorted.
Thanks for the update


Martin