This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Create a lookup table for sinewave tms320f28335 for PSIM

How can i create a lookup table of a sine wave for psim. I tried with some examples that i found on web but I always get the error 3009.

Is this the easy and fast way to generate an internal reference sine wave?


Best regards for all!!

 

Carlos

  • Excel ?

    (other spreadsheets are available)

  • Yes, but what else do i have to add in my psim project. Because when i add a lookup table i always get an error.

  • Carlos,

    I'm not sure what error 3009 is, there are 2 ways to do this.  Either allocate(and reserve off in SRAM) the size of the array you are working with and load it in the C code.  Or allocate it and load it thru an external interface like SCI; you can feed your array through the comm channel and let the CPU write to that memory.


    If it is not dynamic simplest would be to have it loaded with the program as part of the program.  I think there are some extensions with GUI composer that will suck in a file to a location that is defined as well.

    Matt