Announcements
IMPORTANT: Cypress Developer Community currently doesn’t allow sign-in to prepare for the upcoming transition. To learn more, check out our announcement.
cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1

ScEn_283436
New Contributor II

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