3 Replies Latest reply on Jul 10, 2013 10:28 PM by junichi.hiraoka

    Die Temperature sensor

    user_199038981

      Hello,

         

      Can someone point me to the data sheet that shows you how to read the die temperature in a PSoC 3?

         

      Nick

        • 1. Re: Die Temperature sensor
          junichi.hiraoka
                  As you know, Start DieTemp module and "DieTemp_GetTemp(int16 * temperature)" You can get "the temperature in degree of Celsius"... Anything else? [ http://www.cypress.com/?rID=46454 ]   
          • 2. Re: Die Temperature sensor
            junichi.hiraoka
                    IC, I see. I couldn't get the die temperature yet still actually. "DieTemp_GetTemp( &temp )" had never success. "DieTemp_Query( &temp )" get return CYRET_TIMEOUT always. You have to rise MyCase and let us know.   
            • 3. Re: Die Temperature sensor
              junichi.hiraoka
                        
                    

              Man! Wait, wait.

                    

              This code is working!

                    

              Needs Start and Stop everytimes.

                    

               

                    

              //////////////////////////////////////////////////////////////////////////////////

                    

              //  unsigned char sp;  int temp;

                    

              //////////////////////////////////////////////////////////////////////////////////

                    

                     while(1)

                    

                     {      BLed_ON;

                    

                            while( DieTemp_Start()!=CYRET_STARTED ) {};

                    

                            BLed_OFF;

                    

                            sp= DieTemp_Query( &temp );

                    

                            if( sp==CYRET_SUCCESS )

                    

                            {   LCD_Printf(0,0, " Die Temp=%d ", temp );

                    

                            }

                    

                            DieTemp_Stop();

                    

                            if((++k%10)<5) BLed_ON; else BLed_OFF;

                    

                            CyDelay(10);

                    

                     }

                    

              //////////////////////////////////////////////////////////////////////////////////