跳转至内容
  • 版块
  • 最新
  • 标签
  • 热门
折叠
品牌标识

YunTu Forum

YTMicro.com
  1. 主页
  2. Discussion & Question
  3. YTM32B1M系列
  4. YTM32B1MD14低功耗问题

YTM32B1MD14低功耗问题

已定时 已固定 已锁定 已移动 未解决 YTM32B1M系列
1 帖子 1 发布者 39 浏览
  • 从旧到新
  • 从新到旧
  • 最多赞同
登录后回复
此主题已被删除。只有拥有主题管理权限的用户可以查看。
  • mingchang_maM 离线
    mingchang_maM 离线
    mingchang_ma
    编写于 最后由 编辑
    #1

    低功耗配置为standby模式,文档说standby模式下要配置GPIO时钟源为SXOSC才能正常实现唤醒,为什么我没配置GPIO时钟源也可IO中断唤醒standby。
    dd2f7d90-c7af-4701-9a56-e043722dff82-image.png

    时钟配置如下:
    /*

    • Copyright 2020-2024 Yuntu Microelectronics co.,ltd
    • All rights reserved.
    • YUNTU Confidential. This software is owned or controlled by YUNTU and may only be
    • used strictly in accordance with the applicable license terms. By expressly
    • accepting such terms or by downloading, installing, activating and/or otherwise
    • using the software, you are agreeing that you have read, and that you agree to
    • comply with and are bound by, such license terms. If you do not agree to be
    • bound by the applicable license terms, then you may not retain, install,
    • activate or otherwise use the software. The production use license in
    • Section 2.3 is expressly granted for this software.
    • @file clock_config.c
    • @brief

    */

    #include "stddef.h"
    #include "clock_config.h"

    /*! @brief peripheral clock PeripheralClockConfig */

    peripheral_clock_config_t clock_config0PeripheralClockConfig[5] = {
    {
    .clkName = GPIO_CLK,
    .clkGate = true,
    .divider = DIV_BY_1,
    .clkSrc =CLK_SRC_DISABLED,
    },
    {
    .clkName = LINFlexD2_CLK,
    .clkGate = true,
    .divider = DIV_BY_1,
    .clkSrc = CLK_SRC_FXOSC,
    },
    {
    .clkName = lpTMR0_CLK,
    .clkGate = true,
    .divider = DIV_BY_1,
    .clkSrc = CLK_SRC_FXOSC,
    },
    {
    .clkName = WKU_CLK,
    .clkGate = true,
    .divider = DIV_BY_1,
    .clkSrc =CLK_SRC_FXOSC,
    },
    {
    .clkName = FlexCAN0_CLK,
    .clkGate = true,
    .divider = DIV_BY_1,
    .clkSrc = CLK_SRC_DISABLED,
    },
    };

    const scu_config_t clock_config0ScuConfig = {
    .fircEnable = true,
    .fircDeepSleepEnable = false,
    .sircDeepSleepEnable = true,
    .sircStandbyEnable = true,
    .sircPowerDownEnable = true,
    .sysClkSrc = SCU_SYSTEM_CLOCK_SRC_PLL,
    .fxoscConfig =
    {
    .enable = true,
    .bypassMode = false,
    .gainSelection = 5,
    .frequency = 24000000U,
    },
    .pllConfig =
    {
    .enable = true,
    .pllRefClock = SCU_PLL_REF_FXOSC_CLK,
    .pllFeedBackDiv = 10,
    .pllRefClkDiv = 1,
    },
    .sysDiv = SCU_SYS_CLK_DIV_BY_1,
    .fastBusDiv = SCU_SYS_CLK_DIV_BY_1,
    .slowBusDiv = SCU_SYS_CLK_DIV_BY_3,
    .flashDiv = SCU_SYS_CLK_DIV_BY_3,
    .clockOutConfig =
    {
    .enable = false,
    .source = SCU_CLKOUT_SEL_PLL_CLK,
    .divider = 1
    },
    };

    /*! @brief User Configuration structure clock_config0ClockManager */
    clock_manager_user_config_t clock_config0ClockManager = {
    .scuConfigPtr = &clock_config0ScuConfig,
    .cmuConfigPtr = NULL,
    .ipcConfig =
    {
    .peripheralClocks = clock_config0PeripheralClockConfig,
    .count = 5,
    },
    };

    /*! @brief Array of pointers to User configuration structures */
    clock_manager_user_config_t const *g_clockManConfigsArr[] = {
    &clock_config0ClockManager,
    };

    /*! @brief Array of pointers to User defined Callbacks configuration structures /
    /
    The tool do not support generate Callbacks configuration. It's always empty. */
    clock_manager_callback_user_config_t *g_clockManCallbacksArr[] = {(void *)0};

    1 条回复 最后回复
    0

  • 云途开发生态介绍

    快速上手云途开发生态

  • 云途论坛规则/Yuntu Forum Rules

    发帖前请查看

  • YT CONFIG TOOL调查问卷

    帮助改进和优化YT CONFIG TOOL,有机会抽取YTM32B1ME0 EVB哦...

  • can
    28
    demo
    23
    uds
    14
    lin stack
    13
    md14
    6
    yt-link
    6
    fbl
    5
    adc模块
    4
    Online Users
    • 登录

    • 登录或注册以进行搜索。
    • 第一个帖子
      最后一个帖子
    0
    • 版块
    • 最新
    • 标签
    • 热门