7 posts / 0 new
The Last post
index219
Offline
Last seen:1 year 8 have a line
Joined:The 2016-05-23 07:00
DA14681 waked up into the extend mode cycle how to access the iic?

Hello, I'm using DA14681 product development, according to the requirements of the product function da in sleep state, cycle awakens the judge a peripherals IIC data, in order to determine whether da into work mode.
Now the implementation code configuration is as follows:
1. Engineering use DA1468x_SDK_BTLE_v_1. 0.6.968 for Pxp_reporter;
2. Sleep mode configuration: pm_set_sleep_mode (pm_mode_extended_sleep);
3. Broadcasting interval configuration: set_advertising_interval (ADV_INTERVAL_POWER);

Under the above configuration, the da to function into the extend mode, and Power consumption and the official document "the AN - B - 037 DA1468x Power measurements_v1. 3. PDF" has the same description.
I want to take advantage of da in the annex ble to wake up at the time to visit iic, whether can you?
If you can, where should join the iic access code?

P. da iic access code in normal work mode can be successfully read peripherals parameters.

Looking forward to reply!

Keywords:
Device:
Qinjiny_Dialog
Offline
Last seen:2 have 1 day a line
The Staff
Joined:The 2016-11-01 05:47
If only to wake up for I2C operation implementation cycle

If only to wake up for I2C operation implementation cycle, use a timer with the I2C adapter inside own wakeup callback indicator.

Wake up for BLE broadcast cycle is not stable, you is for the sake of power considerations to add this process must be in the process of BLE?

index219
Offline
Last seen:1 year 8 have a line
Joined:The 2016-05-23 07:00
Yes, I am in order to make the whole of the DA achieve the lowest power consumption

Yes, I am in order to make the whole of the DA achieve the lowest power consumption, don't want to cause the timer, but to direct in ble radio wake time, iic peripherals.
BLE broadcast cycle is not stable it doesn't matter, as long as you wake up to read the parameters of the iic peripherals, can.
Excuse me,
1. In ble radio wake time how to join the iic judgment?
2. I tried in da after entering the extend mode, directly in the freertos task, cycle judgment iic peripherals, read out the parameter is wrong.
But the task of uart print information at the same time, it is normal.How do you explain this phenomenon?

Looking forward to Qinjiny_Dialog and fellow netizens reply.

index219
Offline
Last seen:1 year 8 have a line
Joined:The 2016-05-23 07:00
Want to ask about if you use i2c AD wakeup

Want to ask about if using the i2c AD wakeup timer callback + how to configure software code.
The timer timing wake up time.
I2c adapter to see this function:
Const adapter_call_backs_t ad_i2c_pm_call_backs = {
Ad_prepare_for_sleep = ad_i2c_prepare_for_sleep,
Ad_sleep_canceled = ad_i2c_sleep_canceled,
Ad_wake_up_ind = ad_i2c_wake_up_ind,
Ad_xtal16m_ready_ind = NULL,
. Ad_sleep_preparation_time = 0
};
What is the logic?

index219
Offline
Last seen:1 year 8 have a line
Joined:The 2016-05-23 07:00
Please support detailed FAE.

Please support detailed FAE.

kingwheat
Offline
Last seen:1 year 2 have a line
Joined:The 2016-12-08 09:21
Hi, index219

Hi, index219
If we can create a new task, in a waiting wakeup notify the callback.When the task to notify to IIC operation, should be the CPU in a time of awakening.

Jelphi
Offline
Last seen:8 have 2 days a line
The Staff
Joined:The 2015-09-10 12:07
You can refresh when in bluetooth radio

You can be in when the bluetooth radio to refresh, refresh didn't finish before cannot let the system to sleep