Beginner, help displaying sine table with fullduplexserialplus
Beginner, needs help displaying sine table with fullduplexserialplus
I've went through the Propeller Ed. kit labs, and the forum examples
I'm just trying to display Sine table with the serial terminal.
Here is one of the several attemps I have made.
OBJ
Debug : "FullDuplexSerialPlus"
fMath : "Float32Full"
fString : "FloatString"
PUB TwoWayCom | a, b, c,I
fMath.start
Debug.start(31, 30, 0, 57600)
Waitcnt(clkfreq*2 + cnt)
Debug.tx(Debug#CLS)
repeat I from 0 to 90
c := fmath.Sin(I)
debug.str(fstring.FloatToString(c))
debug.str(string(13))
The only time I get any thing that makes any sense is when I put in individual value to the fmath.sin
I think it has something to do with how Integer and float numbers are handled
Thanks
Charlie
I've went through the Propeller Ed. kit labs, and the forum examples
I'm just trying to display Sine table with the serial terminal.
Here is one of the several attemps I have made.
OBJ
Debug : "FullDuplexSerialPlus"
fMath : "Float32Full"
fString : "FloatString"
PUB TwoWayCom | a, b, c,I
fMath.start
Debug.start(31, 30, 0, 57600)
Waitcnt(clkfreq*2 + cnt)
Debug.tx(Debug#CLS)
repeat I from 0 to 90
c := fmath.Sin(I)
debug.str(fstring.FloatToString(c))
debug.str(string(13))
The only time I get any thing that makes any sense is when I put in individual value to the fmath.sin
I think it has something to do with how Integer and float numbers are handled
Thanks
Charlie
Comments
c := fmath.Sin(fmath.FFloat(i))
Charlie