lookup table

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....................

Parents
  • What do you mean by that?

    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...?

    Or are you just wondering how to compute the values to go into your table?
    A spreadsheet (eg, MS Excel) is a great tool for that...

    The only thing that's specific to the 8051 here is that you probably should ensure that it goes into CODE space...

Reply
  • What do you mean by that?

    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...?

    Or are you just wondering how to compute the values to go into your table?
    A spreadsheet (eg, MS Excel) is a great tool for that...

    The only thing that's specific to the 8051 here is that you probably should ensure that it goes into CODE space...

Children
More questions in this forum