在第28页,介绍system_rtc_clock_cali_proc的返回值:
RTC 时钟周期,单位:微秒,bit11 ~ bit0 为小数部分(取 2 位小小数并 * 100:(RTC_CAL*100)>> 12 )
(RTC_CAL*100)>>12得到的数字的单位是什么?光年?
On page 29, return of the function system_rtc_clock_cali_proc():
RTC clock period (in us), bit11~ bit0 are decimal. ((RTC_CAL * 100)>> 12 )
What's the unit of (RTC_CAL * 100)>> 12? Light year I think?
SDK编程手册有错误/Mistake in SDK Programming Manual
Re: SDK编程手册有错误/Mistake in SDK Programming Manual
Postby ESP_Faye » Thu Sep 10, 2015 10:32 am
您好,
system_rtc_clock_cali_proc 的返回值 bit11 ~ bit0 为小数部分
因此,
如需取整,则为 system_rtc_clock_cali_proc()>>12
如需保留 2 位小数部分,则为 (system_rtc_clock_cali_proc() x 100)>>12
感谢您的热心反馈,我们将更新文档,以便于理解。
system_rtc_clock_cali_proc 的返回值 bit11 ~ bit0 为小数部分
因此,
如需取整,则为 system_rtc_clock_cali_proc()>>12
如需保留 2 位小数部分,则为 (system_rtc_clock_cali_proc() x 100)>>12
感谢您的热心反馈,我们将更新文档,以便于理解。
Re: SDK编程手册有错误/Mistake in SDK Programming Manual
Postby thuwrx10 » Fri Sep 11, 2015 9:32 am
Espressif_Faye wrote:您好,
system_rtc_clock_cali_proc 的返回值 bit11 ~ bit0 为小数部分
因此,
如需取整,则为 system_rtc_clock_cali_proc()>>12
如需保留 2 位小数部分,则为 (system_rtc_clock_cali_proc() x 100)>>12
感谢您的热心反馈,我们将更新文档,以便于理解。
还是直接说system_rtc_clock_cali_proc返回值的单位是1/4096微秒比较好。
Who is online
Users browsing this forum: No registered users and 34 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.