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!
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?
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.
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?
Please support detailed FAE.
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.
You can be in when the bluetooth radio to refresh, refresh didn't finish before cannot let the system to sleep