Page 1 of 1

HPACT Actuators training panel example code?

Posted: Thu Jan 15, 2009 12:33 pm
by dtstrgt
Hi,

Where can I find the "Free worksheets (code TEFWS)" for this board, or any flowcode examples code for it?

There was a mini CD with it but that didn't seem to contain anything to do with it.

For that matter how do I even find the board on the web site other than searching for HPACT. Under Products the only mention of it that I can find is in one of the brochures, where I think it is classed as an accessory.

Thanks.

Re: HPACT Actuators training panel example code?

Posted: Thu Jan 15, 2009 12:47 pm
by Benj
Hello

You can find the HPACT board by clicking Products -> Eblock Accessories.

Re: HPACT Actuators training panel example code?

Posted: Thu Jan 15, 2009 1:32 pm
by dtstrgt
Thanks.

I was looking on the Home page and selecting subsections of products, where E-block accessories aren't listed, rather than selecting Products which lists a few more subsections. Question over webpage design?

Still not sure where I was supposed to get the TEFWS and example code other than by having to ask for it.

I haven't test it yet, as the code is for an 877 and the only ones we have are 877-04's which probably aren't going to run with the default 19.6608MHz Xtal. I'll have to move parts of the code to the supplied 88. OK some I could use an RC clock for the stepper and DC motor but I'd guess the servo won't work if the timing is way off. Shame the Xtal isn't in a plugin socket so it can be changed.

Re: HPACT Actuators training panel example code?

Posted: Thu Jan 15, 2009 3:04 pm
by Steve
The crystal is socketted on our EB-006 and HP-488 boards.

Re: HPACT Actuators training panel example code?

Posted: Thu Jan 15, 2009 3:39 pm
by dtstrgt
steve wrote:The crystal is socketted on our EB-006 and HP-488 boards.
Appologies, so it is, it's so flush mounting I didn't see it.

However I'm still puzzled by the example code.

Stepper & DC motor are OK.

Is the servo code designed to work at a particular frequency, if so what?

As it seems to use TMR0 overflow to generate the servo period, which is noramally 20ms, and the code had a 64 prescaler that would give Tcs = 20 ms / (256*64), F = 3.2768MHz which is very odd so maybe I got something wrong?

I've previously written ASM code running at 4MHz to drive servos, no problems, but I'm very new to flowcode.

Is there any documentation regards using the servo on the HPACT in flowcode?

Re: HPACT Actuators training panel example code?

Posted: Thu Jan 15, 2009 3:48 pm
by Steve
I believe there is an article int he "Articles" section of the forum that may help. I also know that my colleague, Sean, has rewritten the HPACT sample program and he'll post it here sometime soon.

Hopefully these will help...

Re: HPACT Actuators training panel example code?

Posted: Thu Jan 15, 2009 4:16 pm
by dtstrgt
dtstrgt wrote:F = 3.2768KHz
Err make that 3.2768MHz, which at least exists.

:oops:


Which has now been corrected.

:lol: Great I can edit all my errors in previous posts. If only I'd know that before I pointed one out to people.

Re: HPACT Actuators training panel example code?

Posted: Thu Jan 15, 2009 4:36 pm
by Steve
You also mentioned a "19.6608GHz" crystal in a previous post, but I let that one pass too!!

Re: HPACT Actuators training panel example code?

Posted: Fri Jun 17, 2011 1:16 pm
by medelec35
Hi, Ben,

Code: Select all

Test RoutineB.FCF
&

Code: Select all

TEFWS.doc 
attachment’s are corrupt.
Would you mind reposting please?

Re: HPACT Actuators training panel example code?

Posted: Fri Jun 17, 2011 2:38 pm
by Benj
Cheers Martin,

I have reloaded the files and they should open correctly now.

Re: HPACT Actuators training panel example code?

Posted: Fri Jun 17, 2011 2:50 pm
by medelec35
Thanks Ben.