Cypress技术论坛
直播中

黄明光

8年用户 331经验值
私信 关注
[问答]

如何在PSoC 3中读取模具温度?

你好,
有人能告诉我如何在PSoC 3中读取模具温度吗?
尼克

以上来自于百度翻译


     以下为原文
  Hello,
    Can someone point me to the data sheet that shows you how to read the die temperature in a PSoC 3?
    Nick

回帖(3)

刘晓燕

2019-6-19 07:38:10
正如你所知道的,启动dieTeMP模块和“dieTungGETTEMP(It16*温度)”,你可以得到“摄氏摄氏度的温度”…别的?[ HTPP//wwwyCyPress?COM/?RID=46454

以上来自于百度翻译


     以下为原文
          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 ]   
举报

刘晓燕

2019-6-19 07:49:13
我知道了。实际上我还没有得到模具的温度。”DeEntPyGETTAMP(TAMP)从未成功过。DeEnEntQualQuy(ANP;TEMP)始终获得返回CyReTimeTimeOut.你必须提高MyCase,让我们知道。

以上来自于百度翻译


     以下为原文
          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.   
举报

刘晓燕

2019-6-19 08:01:04
伙计!等等,等等。
这个代码工作!
每一次都需要开始和停止。
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//无符号字符;
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
(1)
{Belyon on;
同时(dieNeTimeStad())!= CyrReGH启动){};
贝德罗夫;
SP = dieTunpQuy查询(ANP;TEMP);
如果(SP==CyrRyTa成功)
{LCDApRITCF(0,0,“模具TEMP= %D”,TEMP);
}
dieTimeSpult();
如果((++K % 10)& lt;5)BDeLyon;否则BDeLyOFF;
CyDelay(10);
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

以上来自于百度翻译


     以下为原文
                    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);

      
       }

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

     
        
举报

更多回帖

发帖
×
20
完善资料,
赚取积分