I'm having issues with pic16 lookup tables, I'm working in asm.
I have a pot wired to an analogue in on a pic16f88, its a linear pot.
I want to select either a linear function or log function as per the old fashioned log volume pots.
Linear is no problem I can just use the value direct from the atod module, to convert lin to log I was thinking of using a lookup table, my maths are a bit rusty, anyone know where I can find a 256 element lookup table for the purpose?
Also I found with the dt function if I have more than 1 line I get errors from the assembler, can I have a 256 element table that isnt all on one line, I'm sure I've done it before but I cant find that program.
I have a pot wired to an analogue in on a pic16f88, its a linear pot.
I want to select either a linear function or log function as per the old fashioned log volume pots.
Linear is no problem I can just use the value direct from the atod module, to convert lin to log I was thinking of using a lookup table, my maths are a bit rusty, anyone know where I can find a 256 element lookup table for the purpose?
Also I found with the dt function if I have more than 1 line I get errors from the assembler, can I have a 256 element table that isnt all on one line, I'm sure I've done it before but I cant find that program.