找回密码
 立即注册
楼主: QQ624***

提供一套RTC温度补偿算法

[复制链接]

该用户从未签到

4

主题

85

回帖

642

积分

高级会员

积分
642
发表于 2023-5-17 13:39:16 | 显示全部楼层
本帖最后由 jmg 于 2023-5-17 14:09 编辑

To measure temperature, there is no ADC pathway I can see.

I did find this info below, on IRC32k, and it has a strong temperature and voltage effect, so a regulated Vcc can give temperature from kHz, but there seems to be no means in STC8 to read both 32.768kHz Xtal and the IRC32K ?
No timers can capture from 32k sources, and RTC is only Xtal  or  IRC32K ?


Looks like the external Temperature Sensor choices are an NTC for ~1c and also run the ADC on 1 pin, or a ~20c semiconductor sensor on 1 or 2 pins.
IRC32K_tempco.JPG
回复 支持 反对 送花

使用道具 举报

  • TA的每日心情
    奋斗
    2023-12-5 13:56
  • 签到天数: 5 天

    [LV.2]偶尔看看I

    12

    主题

    245

    回帖

    1540

    积分

    超级版主

    积分
    1540
    发表于 2023-5-17 14:37:11 | 显示全部楼层
    Building owner, ADC temperature measurement example reference is as follows:


    https://www.stcai.com/filedownload/630381   代码下载在这!



    电话:0513-55012946 QQ:2195591714  微信:  19952583740
    回复 支持 1 反对 0 送花

    使用道具 举报

    该用户从未签到

    4

    主题

    85

    回帖

    642

    积分

    高级会员

    积分
    642
    发表于 2023-5-17 16:36:59 | 显示全部楼层
    Building owner, ADC temperature measurement example reference is as follows:

    Thanks, yes that's an example using an external NTC for temperature sense, and it uses floating point calc (log) to curve fit.
    TI has some good notes on Code size / power / resource for floating point on NTC and other sensors
    https://www.ti.com/lit/an/snoaa12/snoaa12.pdf
    If this is used to correct a parabolic crystal error of RTC, it may be simplest to simply create a LUT that applies both NTC and parabola corrections in one pass.
    回复 支持 反对 送花

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    QQ|手机版|深圳国芯人工智能有限公司 ( 粤ICP备2022108929号-2 )

    GMT+8, 2024-5-3 17:38 , Processed in 0.054005 second(s), 37 queries .

    Powered by Discuz! X3.5

    © 2001-2024 Discuz! Team.

    快速回复 返回顶部 返回列表