MIAC program simulates but wont run on Miac?

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

Moderators: Benj, Mods

Post Reply
juliansilver
Flowcode v5 User
Posts: 13
Joined: Mon Apr 26, 2010 8:08 pm
Contact:

MIAC program simulates but wont run on Miac?

Post 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
Attachments
jmiac led grow1.fcf
(47.77 KiB) Downloaded 315 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: MIAC program simulates but wont run on Miac?

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

juliansilver
Flowcode v5 User
Posts: 13
Joined: Mon Apr 26, 2010 8:08 pm
Contact:

Re: MIAC program simulates but wont run on Miac?

Post 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

juliansilver
Flowcode v5 User
Posts: 13
Joined: Mon Apr 26, 2010 8:08 pm
Contact:

Re: MIAC program simulates but wont run on Miac?

Post by juliansilver »

Yep. Changing the clock source for TMR0 worked a reat. Many thanks Martin.

Regds...j

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: MIAC program simulates but wont run on Miac?

Post by medelec35 »

Your welcome jules.
Just glad your all sorted.
Thanks for the update


Martin
Martin

Post Reply