找回密码
 立即注册

QQ登录

只需一步,快速开始

打印 上一主题 下一主题
开启左侧

[Mini51] PWM Fan Control

[复制链接]
跳转到指定楼层
楼主
admin 发表于 2022-6-16 10:49:39 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
  • Application: This code uses Mini51 PWM Channel 0 (P2.2) to control 4-wire PWM fan speed and uses Timer 0 external capture pin (P3.2) to detect fan speed in RPM.
  • BSP Version: Mini51DE Series BSP CMSIS v3.02.000
  • Hardware: NuTiny-SDK-Mini54 V3.1, 4-wire PWM fan
This example code uses PWM Channel 0 (P2.2) to control 4-wire PWM fan speed and uses Timer 0 external capture pin (P3.2) to detect fan speed in RPM. Inputting PWM waveform to the PWM fan control pin can control fan speed. By changing PWM duty ratio, PWM fan can operate in suitable speed. The PWM fan sense pin outputs tachometer signal, which changes voltage level when rotating from one pole to another. By calculating the time which fan takes when rotating one round, user can get the fan speed in RPM.

To use this example code, user should connect PWM channel 0 (P2.2) to PWM fan control pin and connect Timer 0 external capture pin (P3.2) to fan sense pin.

You can download the sample code at https://www.nuvoton.com/resource-downlo ... 1216133919
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 顶 踩
牛卧堂
回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies |上传

本版积分规则

新唐MCU