Hi Dialog team ,
默认情况下,DA14580需要两秒钟才能稳定在电源期间睡眠前。但在我们的应用程序中,我们需要做一个广告,然后使DA芯片立即从电源开始深入睡眠。所以进行测试目的将稳定时间值从3200变为1(在RWIP.C中)。在调试SRAM时,首次广告后立即睡觉(它的工作正常!)。但是在OTP中编程后,在第一个广告上的电源期间,执行后跟额外的70毫秒的高峰(如图所示)!
So my question is is there a way to remove this additional current peaks and make the da14580 to immediately go to sleep after fist advertisement from power on ???
This additional current happens only during power on- advertisement, when an interrupt is given to wake up the chip there is no such peaks of current ,it advertises and immediately goes to sleep! .
Power on - advertisiement:
https://www.dropbox.com/s/rcdgcdnn0vh658q/power%20on.png?dl=0
Durring中断:
https://www.dropbox.com/s/w2yw1eoyzbsxnex/interrupt.png?dl=0
我们更加认真地删除这些额外的当前,为我们的申请!所以我们正在等待你的反应!
(我们已经在旧线程中讨论过,因为波形的链接已过期,而且还有适当的解决方案,在此处发布)
谢谢
Hi hrq,
the 32KHz Xtal oscillator is activated in the booter during power on. This is one of the first things that is done because the 32KHz xtal oscillator takes quite a long time to stabilize. We set 2 seconds for that. When modifying the setting in sysram, the 32KHz xtal oscillator is already running stable for a while.
在OTP中燃烧后,32kHz XTAL振荡器必须在上电时启动,直接接下来是您的广告。32kHz XTAL振荡器尚未稳定。
This could cause what you are observing during power-on.
执行中断时,32kHz XTAL振荡器已运行一段时间,并运行稳定。
你能尝试使用设置> 1吗?
最好的问候,bb_dialog。
嗨对话小组
But Da14580 starts to advertise before the stabilisation time right? (you can verify the current waveforms)! Then what is the exact use for such a delay or the stabilization function ?? Is BLE advertising irrespective of the crystal stabilzation ! ?? could you explain in detail in this regard .
谢谢
Hi hrq,
for the BLE function the 32KHz Xtal is not used. BLE uses the accurate and trimmed 16 MHz crystal oscillator.
16MHz XTAL振荡器刚刚开始之前启动。16MHz XTAL振荡器需要大约2毫秒进行启动并变得稳定。
32kHz XTAL振荡器已经在运行,以便在广告后首先睡眠前变得稳定。
32kHz是低功率时钟,用于睡眠模式。
Because of the high Q-factor, and the low frequency, it can take upto 2 seconds before the 32K Xtal oscillator has stabilised.
假设晶体Q系数为10.000,这是晶体的相对低的Q系数。
通常,假设需要(3 * Q)的周期数来获得稳定的XTAL振荡器幅度和频率。确保采取5 * Q因子。
3 * Q = 30.000循环,这将是32.768 kHz水晶的1秒。
如你所知,我们为它设置了2秒。
如果您想要更快,最好使用内部RCX20振荡器。这个是更快的,但有局限性。例如。只能用于降压模式。
Please, see the datasheet for this.
最好的问候,bb_dialog.
如果我们的应用程序就像加勒比海盗advertisemen之一t da14580 will be shutdown (it doesn't go to sleep ).So in this case , how to remove this crystal time .i.e we dont want to use the 32khz crystal?? what are the software modifications to be done ?
谢谢
Hi hrq,
1st:选择在DA14580_CONFIG中的*低功耗时钟选择*中使用RCX20振荡器*
为RCX设置0xAA。0x00用于XTAL32K
2nd:可选但建议做:去激活XTAL32K振荡器,以节省一点电流:SetBits16(CLK_32K_REG,XTAL32K_ENABLE,0);//禁用xtal32khz.
Add this as the last line in section "else if (lp_clk_sel == LP_CLK_RCX20)" of * Power up BLE core & reset BLE Timers" in arch_system.c
=>http://support.dialog-semicondiondiondiondum/faq/how-fix-rcx20-bug-sdk-306
就这样。
最好的问候,bb_dialog.
谢谢你的信息 !自从we are not using sleep modes is RCX20 osc is also needed ? you mentioned that ble uses 16Mhz osc ,then why we need to use RCX again ? because we are goin to turn off Da14580 after one adv !
Hi hrq,
如果您真正关闭DA14580,而不是使用任何睡眠模式,则不必使用32kHz XTAL振荡器或RCX20振荡器。
Normally in e.g. proximity reporter, between advertisement events the device is in sleep mode, using either Xtal32K or the RCX20.
最好的问候,bb_dialog.
所以在“*低功率时钟选择* / #define cfg_lp_lk”中,要放置的值是什么,以便禁用32khz&rcx20?
谢谢
Hi hrq,
选择任何您喜欢的,但最佳选择32khz XTAL振荡器(0x00),因为这一个已在运行以来,BootROM切换到它。
In the software, then you can disable the 32KHz Xtal oscillator by adding following line:
SetBits16(CLK_32K_REG,XTAL32K_ENABLE,0);//禁用xtal32khz.
最好的问候,bb_dialog
嗨bb_dialog.
I followed your instructions in disabling the oscillators, but when i add the line SetBits16(CLK_32K_REG, XTAL32K_ENABLE, 0); // Disable Xtal32KHz ,
DA14580没有启动,没有电源或广告!我用rcx20尝试了,仍然是同一个da芯片没有电源,似乎至少应该启用电源,!!!
我已附加了我试图禁用XTAL32 OSC的快照。
https://www.dropbox.com/s/cho4zwadcz16t5g/xtal.jpg?dl=0
那么如何禁用两者?
谢谢
Hi hrq,
我们认为必须将以下内容设置为UNDEF,其中一个现在定义,但请将它们设置为UNDEF。
禁用深延长的睡眠:在da14580_config.h中
#undef cfg_ext_sleep.
#undef CFG_DEEP_SLEEP
最好的问候,bb_dialog.
嗨bb_dialog.
我试过禁用深延长的睡眠:在da14580_config.h中,仍然存在问题,da14580没有打开!你能试试一次吗?并尽快确认?由于我们需要尽量减少我们需要禁用振荡器的大部分不必要的功耗!
谢谢
Hi hrq,
在我的情况下它有效。接近记者是广告的,没有睡眠模式。广告事件之间的基本电流高于正常。
我刚刚未定义两个睡眠模式,但xtal32k仍被选为LP时钟。
B.R., BB_Dialog
嗨bb_dialog.
I tried the same with 32Khz enable and undefine sleep modes. the base current is high as you said ,now the situation is worse ! Why this much excess current ? is the 32khz operating unconditionally ! So is there no way to disable these Osc ??
谢谢