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.

CCS/TMDSSOLARPEXPKIT: TMDSSOLARPEXPKIT How to make the code work with the light sensor.

Part Number: TMDSSOLARPEXPKIT

Tool/software: Code Composer Studio

The PV EMU is working when the light intensity is hard coded.  I would like to use the light sensor value to modify the shape of the PV data.  The values for the light is in the data, but I am not sure where it is used to modify the data in the table.  The info on the PV emu states it is a simple and will not track a true panel, but I can not find where the simple modification to the table values is located.

  • Line 803 , Gui_LightRatio =_IQ13mpy(Gui_Light,LIGHTSENSOR_MAX_INV);

    will be the light sensor data as measured on the panel f28027

    Line 811
    LuminanceRatio = Gui_LightCommandValue>>4; //convert from IQ13 to IQ9

    In this code Gui_LightCommandValue is used to scale the LuminanceRation,

    You can change the Gui_LightCommandValue to be Gui_LightRatio, to use the light sensor instead..
  • Thanks for the info. I need to replace the fuse. I must have created a short. I will try this after getting a new fuse.
  • The Emulator is working after replacing the fuse. It seems that nothing was damaged other than the fuse. After making the changes to the code the light sensor works. Thanks again for the help. The design for a 200W power stage is complete. The plan is to have the power stage built and tested in the next four week. I think it would help me to do some kind of flow chart of the code. Then I will run the power stage using a launchpad.