找回密码
 立即注册
楼主: QQ624353765

提供一套RTC温度补偿算法

[复制链接]
  • 打卡等级:初来乍到
  • 打卡总天数:4
  • 最近打卡:2025-05-01 06:58:22

5

主题

184

回帖

1333

积分

金牌会员

积分
1333
发表于 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
回复 支持 反对

使用道具 举报 送花

  • 打卡等级:偶尔看看II
  • 打卡总天数:20
  • 最近打卡:2025-04-28 16:56:43

21

主题

376

回帖

2345

积分

超级版主

积分
2345
发表于 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
  • 最近打卡:2025-05-01 06:58:22

5

主题

184

回帖

1333

积分

金牌会员

积分
1333
发表于 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, 2025-5-3 01:01 , Processed in 0.117196 second(s), 61 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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