打印
[MCU]

G2553里面有没有温度传感器啊,有的话怎么设置呢?

[复制链接]
352|13
手机看帖
扫描二维码
随时随地手机跟帖
沙发
jiaxw| | 2019-8-4 15:02 | 只看该作者

Using the Integrated Temperature Sensor

        To use the on-chip temperature sensor, select the analog input channel INCHx = 1010. Any other
        configuration is done as if an external channel was selected, including reference selection,
        conversion-memory selection, etc.

        The typical temperature sensor transfer function is shown in Figure 22-13. When using the temperature
        sensor, the sample period must be greater than 30 µs. The temperature sensor offset error is large.
        Deriving absolute temperature values in the application requires calibration. See the device-specific data
        sheet for the parameters.

        Selecting the temperature sensor automatically turns on the on-chip reference generator as a voltage
        source for the temperature sensor. However, it does not enable the VREF+  output or affect the reference
        selections for the conversion. The reference choices for converting the temperature sensor are the same
        as with any other channel.

使用特权

评论回复
板凳
zhenykun| | 2019-8-4 15:05 | 只看该作者


有的,你看下官方例程。在AD那部分。具体哪个文件你翻一下。。。

使用特权

评论回复
地板
shimx| | 2019-8-4 15:08 | 只看该作者
G2553内部的这个温度传感器是不是只能测芯片内部的温度啊?要想测外部的温度还得使用外围设备吧?例如18b20,是这样的么?

使用特权

评论回复
5
spark周| | 2019-8-4 15:13 | 只看该作者


对,不过430本身发热很小,如果要求不高,可以近似认为是环境温度;
最好使用18b20等传感器,或者成本低的可以使用热敏电阻。

使用特权

评论回复
6
liliang9554| | 2019-8-4 15:15 | 只看该作者
你可以把芯片靠近热源就行了  但不要温度太高  否则芯片工作也不稳定   要是做温度的应用的话 还是买个传感器吧  温度传感器型号多了去了

使用特权

评论回复
7
午夜粪车| | 2019-8-4 15:18 | 只看该作者


内部的传感器误差比较大。

使用特权

评论回复
8
zhaoxqi| | 2019-8-4 15:21 | 只看该作者
内部的温度传感器玩玩可以。。总产品还是搞外部的精度高得吧

使用特权

评论回复
9
huangchui| | 2019-8-4 15:26 | 只看该作者
片内温度传感器是为了应对超低功耗下的便携产品中的低精度温度测量,如果参数不能满足或工艺条件不准许,那就应该外扩适当的传感器。

使用特权

评论回复
10
zhenykun| | 2019-8-4 15:29 | 只看该作者

有的,拿到板子包装里面的快速启动指导手册里就有说明,第一次将板子的usb连接启动自带的demo时,按下按键P1.3就启动了了温度监测,并且是通过板子上LED的亮度来体现温度高低的

使用特权

评论回复
11
liliang9554| | 2019-8-4 15:32 | 只看该作者

ADC10CTL0 |=ENC+ADC10SC; //开始转换

while(ADC10IFG==0); //等待 ADC10IFG 标志变高(转换完成)

ADC10_Result=ADC10MEM;

TEMP=((ADC10_Result-746)/(0.000355*678)+286)/10;

使用特权

评论回复
12
wuhany| | 2019-8-4 15:34 | 只看该作者
温度不是很热,没有问题。

使用特权

评论回复
13
lizye| | 2019-8-4 15:38 | 只看该作者
这个跟外部的环境没有关系吧。

使用特权

评论回复
14
jiahy|  楼主 | 2019-8-4 15:44 | 只看该作者

嗯,我再好好缕一缕吧,有了好消息及时通知大家,结贴喽

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

862

主题

9861

帖子

4

粉丝