i need to write program for motor control using 8051 for different frequencies, can any one suggest me how to write the lookup table .......its urgent please....................
With a lookup table, your "input" value tells you where to look in the table to find your "output" value - what 'C' data structure springs to mind to implement such an approach...?<p>
Don't ask such leading questions, or you might get "a switch/case structure" as an answer. ;)
which the compiler might then implement as a jump table - which is a type of lookup table!
:-)