Yup, good old fixed point. The "best" part about it is that I really only have the time to do the math on 16 bit variables and the additions, at one point, lead to values that way exceed what I can...
Type: Posts; User: holychicken
Yup, good old fixed point. The "best" part about it is that I really only have the time to do the math on 16 bit variables and the additions, at one point, lead to values that way exceed what I can...
Ah, I see what you are driving at and your function makes more sense to me now.
Thanks again for the help.
Wow, thanks for the fast replies.
I guess I could just use the int part, that seems to make the most sense to me and, for input into the array, I am only using the int part.
And master5001...
So I have two union typedefs:
typedef union LOWFIXED20_12
{
int full;
struct lowPart20_12
{
int fraction: 12,
integer: 4;
nvoigt,
Thank you. I get it. Very good explanation. I think I will just take your advice and create a setter function.
tabstop,
Thanks for the reply.
I can do is something like this:
MyObjectInstance.InputArray[50] = new PointF(100f, 200f);
and the value will be properly stored. So I don't believe that...
I have had a hard time searching for the answer to my problem because it always comes up with indexing the class itself, and not the array as a field of the class. I assume the answer is simple, but...
Sweeet.
I found the problem. Not exactly sure why it works or what the hell it is doing, but I am pretty sure the problem has been solved. Maybe you guys could explain it to me a little better....
It is only written to when the serial interfaces calls the function to generate them. Intentionally, of course, I guess I could have some kind of pointer problem writing randomly, but I don't think...
Salem,
Your suggestion definitely makes sense and it is something I have explored.
However, all I do is send the information about the wave and then generate it on chip; I send the amplitude...
Thanks for the response, but it is nothing like that. If that were the case, I would think that the problem could arise at anytime, but it only happens when I try to update the LUT.
I think I...
Using a Freescale DSP chip, I have 3 timers that grab a value out of an their own respective LUT to generate a sine wave (often with many harmonics) and then send the information out to a DAC. The...