Reply by Honnold John-r37277 February 17, 20032003-02-17
Bob:

Unfortunately, you will need to 'roll your own'. You could setup all of the variables and table(s) necessary to use the interpolation instructions with C, then use inline assembly for the ETBL or TBL with instruction.

Regards,

John Honnold -----Original Message-----
From: Bob White [mailto:]
Sent: Saturday, February 08, 2003 3:38 PM
To:
Subject: [68HC12] ETBL
I'm using Metrowerks CodeWarrior for HC12. The HC12 has a couple of cool new instructions for interpolation, TBL and ETBL. Is there some way that the compiler will use these instructions, or do I have to roll my own? I looked in the "manuals", to no avail.

Thanks,
Bob White --------------------
<http://www.motorola.com/mcu ">http://docs.yahoo.com/info/terms/> .



Reply by Paul Johnson February 11, 20032003-02-11
This doesn't really answer the question of whether the Metrowerks compiler
uses TBL or ETBL, which is a question I've been interested in too. Frankly,
I'm not sure when/how a compiler would decide to use these instructions,
given that there is no C analog that I can think of.

For my purposes, I have dropped into assembly to use there functions.

Paul

> -----Original Message-----
> From: Bruce McMillan [mailto:]
> Sent: Saturday, February 08, 2003 3:16 PM
> To:
> Subject: Re: [68HC12] ETBL > Bob,
> Application note AN1771 on sine wave synthesis has a good example of
> using TBL & ETBL in interpolation.
> The Reference manuals also have a section on 'Fuzzy Logic Support'
> which mentions it briefly.
> Bruce
>
> Bob White wrote:
>
> > I'm using Metrowerks CodeWarrior for HC12. The HC12 has a
> couple of cool new instructions for interpolation, TBL and ETBL.
> Is there some way that the compiler will use these instructions,
> or do I have to roll my own? I looked in the "manuals", to no avail.
> >
> > Thanks,
> > Bob White
> >
> >
> >
> >
> >
> >
> > --------------------
> >
> >
> >
> > ">http://docs.yahoo.com/info/terms/
> >
> >
> > .
> >
> > --
> Bruce McMillan
> www.Pocket-Neurobics.com Tools for the Mind
> a division of Minder Labs PL ACN 093279915
> ..pocket-sized, integrated 4ch neurofeedback and light & sound >
> -------------------- >
> ">http://docs.yahoo.com/info/terms/




Reply by Bruce McMillan February 8, 20032003-02-08
Bob,
Application note AN1771 on sine wave synthesis has a good example of
using TBL & ETBL in interpolation.
The Reference manuals also have a section on 'Fuzzy Logic Support'
which mentions it briefly.
Bruce

Bob White wrote:

> I'm using Metrowerks CodeWarrior for HC12. The HC12 has a couple of cool new instructions for interpolation, TBL and ETBL. Is there some way that the compiler will use these instructions, or do I have to roll my own? I looked in the "manuals", to no avail.
>
> Thanks,
> Bob White >
> -------------------- >
> ">http://docs.yahoo.com/info/terms/ > .


--
Bruce McMillan
www.Pocket-Neurobics.com Tools for the Mind
a division of Minder Labs PL ACN 093279915
..pocket-sized, integrated 4ch neurofeedback and light & sound



Reply by Bob White February 8, 20032003-02-08
I'm using Metrowerks CodeWarrior for HC12. The HC12 has a couple of cool new instructions for interpolation, TBL and ETBL. Is there some way that the compiler will use these instructions, or do I have to roll my own? I looked in the "manuals", to no avail.

Thanks,
Bob White