Die Temperature sensor

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
ScEn_283436
Level 5
Level 5
5 sign-ins First solution authored 100 replies posted

Hello,

   

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

   

Nick

0 Likes
3 Replies
Anonymous
Not applicable
        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 ]   
0 Likes
Anonymous
Not applicable
        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.   
0 Likes
Anonymous
Not applicable
          
      

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);

      

       }

      

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

     
    
   
0 Likes