I want to implement a 2-input 1-output fuzzy logic controller using lookup table on the dsPIC33EP256MC506 microcontroller. I am comparing the lookup table and actual fuzzy logic controller side by side in Simulink. In order to minimize the error between the lookup table and actual controller, I am having to generate a huge table, having around 50,000 entries. The input 1 range is -5000 to 5000
, input 2 range is -1000 to 1000
and output range is -9999 to 9999
. I am using Simulink code generation.
I went over the datasheet's memory section, but still need some expert guidance in relating the lookup table size to the program memory size. My questions are: how can I find out if this lookup table will fit into the program memory? How can I estimate the approximate size of the lookup table? What are key things to look for in datasheet or the lookup table from practical implementation viewpoint?