查看: 1745|回复: 3

[求助] LPC55S69进入deep sleep模式后, 如何通过CTIMER3唤醒?

[复制链接]
  • TA的每日心情
    难过
    2020-7-20 09:38
  • 签到天数: 1 天

    [LV.1]初来乍到

    2

    主题

    4

    帖子

    0

    注册会员

    Rank: 2

    积分
    79
    最后登录
    2021-5-12
    发表于 2021-3-16 00:00:26 | 显示全部楼层 |阅读模式
    LPC55S69进入深度睡眠模式是调用如下接口:
    void POWER_EnterDeepSleep(uint32_t exclude_from_pd,
                              uint32_t sram_retention_ctrl,
                              uint64_t wakeup_interrupts,
                              uint32_t hardware_wake_ctrl);


    如果要通过CTIMER3唤醒, wakeup_interrupts = WAKEUP_CTIMER3,
    WAKEUP_CTIMER3的时钟配置为FRO_1M,  exclude_from_pd = kPDRUNCFG_PD_FRO1M
    求助其他几个参数需要怎么设置?

    sram_retention_ctrl尝试设置为0
    hardware_wake_ctrl尝试设置了LOWPOWER_HWWAKE_PERIPHERALS或者LOWPOWER_HWWAKE_FORCED;
    都没有通过CTIMER3唤醒

    另外尝试POWER_EnterSleep();进入睡眠模式, 是可以通过CTIMER3中断唤醒的.

    最佳答案

    [attach]495527[/attach] 给你个例子, 注意一下几个点 这里要保持住CTIMER3的时钟         SYSCON->AHBCLKCTRLX[2] = SYSCON_AHBCLKCTRL2_ANALOG_CTRL_MASK|SYSCON_AHBCLKCTRL2 ...
    哎...今天够累的,签到来了~
    回复

    使用道具 举报

  • TA的每日心情
    开心
    2023-12-25 08:42
  • 签到天数: 391 天

    [LV.9]以坛为家II

    45

    主题

    1337

    帖子

    0

    金牌会员

    Rank: 6Rank: 6

    积分
    3156
    最后登录
    2024-2-19
    发表于 2021-3-16 08:12:20 | 显示全部楼层

    回帖奖励 +1 NXP金币

    你看一下这个图 81fab5e3657f1a45b16cf27c215ecd23.png 中断条件要与上WAKEUP_CTIMER3,#define WAKEUP_CTIMER3 (1ULL << 13)        /*!< [SLEEP, DEEP SLEEP                             ] */DEEP SLEEP是可以唤醒的
    哎...今天够累的,签到来了~
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    656

    主题

    6312

    帖子

    0

    超级版主

    Rank: 8Rank: 8

    积分
    20028
    最后登录
    2024-4-26
    发表于 2021-3-17 16:26:12 | 显示全部楼层
    楼主您好,
    1) 可以通过CTIMER3唤醒 DEEP SLEEP.
    2)WAKEUP_CTIMER3的时钟配置为FRO_12M 试一下。
    3) 注意一下注意事项在使用函数POWER_EnterDeepSleep():
    /**
    * @brief   Configures and enters in DEEP-SLEEP low power mode
    * @param   exclude_from_pd:
    * @param   sram_retention_ctrl:
    * @param   wakeup_interrupts:
    * @param   hardware_wake_ctrl:

    * @return  Nothing
    *
    *          !!! IMPORTANT NOTES :
    0 - CPU0 & System CLock frequency is switched to FRO12MHz and is NOT restored back by the API.
    *           1 - CPU0 Interrupt Enable registers (NVIC->ISER) are modified by this function. They are restored back in
    case of CPU retention or if POWERDOWN is not taken (for instance because an interrupt is pending).
    *           2 - The Non Maskable Interrupt (NMI) is disabled and its configuration before calling this function will be
    restored back if POWERDOWN is not taken (for instance because an RTC or OSTIMER interrupt is pending).
    *           3 - The HARD FAULT handler should execute from SRAM. (The Hard fault handler should initiate a full chip
    reset) reset)
    */
    void POWER_EnterDeepSleep(uint32_t exclude_from_pd,
                              uint32_t sram_retention_ctrl,
                              uint64_t wakeup_interrupts,
                              uint32_t hardware_wake_ctrl);



    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    擦汗
    2016-12-2 08:40
  • 签到天数: 3 天

    [LV.2]偶尔看看I

    97

    主题

    836

    帖子

    7

    版主

    Rank: 7Rank: 7Rank: 7

    积分
    3975
    最后登录
    2024-4-16
    发表于 2021-3-21 19:34:14 | 显示全部楼层
    lpc55s69_seekfree_iot_mdk.zip (708.58 KB, 下载次数: 8)
    回复 支持 反对

    使用道具 举报

    您需要登录后才可以回帖 注册/登录

    本版积分规则

    关闭

    站长推荐上一条 /4 下一条

    Archiver|手机版|小黑屋|恩智浦技术社区

    GMT+8, 2024-4-26 18:44 , Processed in 0.140766 second(s), 26 queries , MemCache On.

    Powered by Discuz! X3.4

    Copyright © 2001-2024, Tencent Cloud.

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