系统时钟设定

预备知识

系统时钟的概念

作用, 本质 系统时钟设定, 调整性能已改变功耗 STM32中的设定 ? 低频 : underclock 超频 : overclock

cpufreq DOC

http://docs.openmv.io/library/omv.cpufreq.html?highlight=cpufreq#module-cpufreq

cpufreq数据格式 数据格式与每个所代表的含义

CPU与各个总线的频率

[0] - sysclk: frequency of the CPU (int). [1] - hclk: frequency of the AHB bus, core memory and DMA (int). [2] - pclk1: frequency of the APB1 bus (int). [3] - pclk2: frequency of the APB2 bus (int).

合法的CPU工作频率

  • cpufreq.CPUFREQ_120MHZ
  • cpufreq.CPUFREQ_144MHZ
  • cpufreq.CPUFREQ_168MHZ
  • cpufreq.CPUFREQ_192MHZ
  • cpufreq.CPUFREQ_216MHZ

Overclocking Example

脚本展示了, 如何使自己的openmv的cpu超频至216MHz

# Overclocking Example
# This example shows how to overclock your OMV2 cam to 216MHz. The camera will
# stay overclocked until the next hard reset, if you need to keep this frequency
# call the set_frequency function from your main script.
#
# WARNING: Overclocking to 216MHz should be safe, however Use at your own risk!
# 超频有一定的风险, 根据自己的项目来决定.

import cpufreq

# Print current CPU frequency
# 打印当前的CPU频率
print(cpufreq.get_frequency())

# Set frequency valid values are (120, 144, 168, 192, 216)
# 设定当前的 CPU频率
cpufreq.set_frequency(cpufreq.CPUFREQ_216MHZ)

# Print current CPU frequency
# 打印当前的CPU频率
print(cpufreq.get_frequency())
Copyright 杭州云江科技有限公司 2017 all right reserved,powered by Gitbook该文件修订时间: 2018-04-02 09:53:12

results matching ""

    No results matching ""