Navigation

    Freqchip开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Recent
    1. Home
    2. xsq
    X
    • Continue chat with xsq
    • Start new chat with xsq
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups

    xsq

    @xsq

    0
    Reputation
    1
    Posts
    1244
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    xsq Follow

    Posts made by xsq

    • PWM精度问题

      使用8016的PD6输出一个4MHz的PWM波,程序如下。
      pmu_set_pin_to_CPU(GPIO_PORT_D,(1<<GPIO_BIT_6));
      system_set_port_mux(GPIO_PORT_D,GPIO_BIT_6,PORTD6_FUNC_PWM0);
      pwm_init(PWM_CHANNEL_0,4000000,50); //4MHz
      pwm_start(PWM_CHANNEL_0);
      system_sleep_disable();

      发现输出的波形占空比偏差很大,可能是什么原因呢?(逻辑分析仪的采样频率设置为20MHz)
      0_1727083745160_1.png

      posted in FR801xH
      X
      xsq