Hello.

Have to run a code in 12F1840, so quite limited in memory.

What I have. There are 98 preset values, pre-defined at programming stage, will not change, ranging from 0 to 100. The code should measure ADC input, convert it to 0-100 range value, and generate HPWM with duty cycle according to one defined in table. Say ADC reading is 20, then data is read from 20th cell of table, and data is 45 in that table. And so on. PBP allows several ways to do this, like multiple if-then, arrays, etc. Which one will be most memory efficient?