搜寻

Product Results:NUC131SD2AE, Matches
Keyword Results:NUC131SD2AE, 15 Matches

常见问答 / 在使用NuMicro® NUC131以及M0518系列的PWM/BPWM时,为什么PWM0/1的通道(0, 1)、(2, 3)、(4, 5)无法设置两种不同频率?而BPWM0/1的通道(0, 1, 2, 3, 4, 5)也无法各自设定不同的频率?



在使用NuMicro® NUC131以及M0518系列的PWM/BPWM时,为什么PWM0/1的通道(0, 1)、(2, 3)、(4, 5)无法设置两种不同频率?而BPWM0/1的通道(0, 1, 2, 3, 4, 5)也无法各自设定不同的频率? 1464845639619 这是因为PWM0/1的通道(0, 1), (2, 3), (4, 5)除了共享预分频器(Prescaler)外,还共享同一个计数器,因此无法独立设定不同的输出频率,但是占空比(Duty)可以个别设定。 其方块图如下所示,通道(0, 1)共用计数器Counter0_1、通道(2, 3)共用计数器Counter2_3、通道(4, 5)共用计数器Counter4_5: 而BPWM的通道(0, 1, 2, 3, 4, 5)都共享一个预分频器(Prescaler)以及同一个计数器,因此无法设定不同的输出频率,但是占空比(Duty)可以个别设定。 其方块图如下所示,通道(0, 1, 2, 3, 4, 5)共用计数器Counter0_1: 因此在应用上,无法设定PWM0频率为60Hz、占空比50%控制LED,又设定PWM1频率为523Hz、占空比50%控制蜂鸣器。不过可以设定PWM0频率为60Hz、占空比50%以及设定PWM1频率为60Hz、占空比80%控制LED。


NuMicro M0 开发板软件开发包 (BSP)



BSP List Content Version Date M091 github gitlab gitee M091 series software package based on CMSIS version 5.1.1. It supports IAR, Keil and Eclipse development environment with drivers and samples codes. Examples source code for NuMaker-M091 are included. For detailed, please download and unzip it. V3.01.000 2024-12-23 M071M github gitlab gitee M071M series software package based on CMSIS version 3.01. It supports Keil, IAR and GNU Eclipse development environments with drivers and sample codes. For detailed, please download it and unzip it. V3.00.003 2024-11-18 M071Q/M071V github gitlab gitee M071Q/M071V series software package based on CMSIS version 4.30. It supports both IAR and Keil development environment with drivers and samples codes. For details, please download it and unzip it. V3.00.003 2024-03-08 M071R/M071S github gitlab gitee M071R/M071S series software package based on CMSIS version 3.01. It supports both IAR and Keil development environment with drivers and samples codes.