FlashForth: for PIC and Atmega Wiki
Brought to you by:
oh2aun
Look-up tables are important for embedded controllers.
Here are some examples:
Here is a set of words to generate sin and cos values from a sin look-up table based on angles in degrees. The table values can be placed in ram, eeprom or flash. Flash seems to make the most sense if the table values will not be changed. Try making words for the other trig expressions such as tan, cot, sec or csc.
Last edit: Mikael Nordman 2014-12-26