<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" version="2.0"><channel><title>标签：pwm - Sinon的博客</title><link>https://sinon.top/tags/pwm</link><atom:link href="https://sinon.top/tags/pwm/feed/tags/pwm.xml" rel="self" type="application/rss+xml"/><description>Sinon的博客</description><language>zh-cn</language><lastBuildDate>Sat, 21 Nov 2026 22:20:55 GMT</lastBuildDate><item><title><![CDATA[单片机学习笔记之2——通过输入捕获实现对pwm波的测量]]></title><link>https://sinon.top/archives/the-measurement-of-pwm</link><description><![CDATA[<img src="https://sinon.top/plugins/feed/assets/telemetry.gif?title=%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%E4%B9%8B2%E2%80%94%E2%80%94%E9%80%9A%E8%BF%87%E8%BE%93%E5%85%A5%E6%8D%95%E8%8E%B7%E5%AE%9E%E7%8E%B0%E5%AF%B9pwm%E6%B3%A2%E7%9A%84%E6%B5%8B%E9%87%8F&amp;url=/archives/the-measurement-of-pwm" width="1" height="1" alt="" style="opacity:0;">之前学校比赛的时候要求我们测量pwm波的频率和占空比，于是我就用了输入捕获来实现这一功能。 但是我在使用库函数写程序的时候不知道为什么每次捕获都只能捕获到一次上升沿和下降沿，无法捕获第二个上升沿。也就是只能捕获到一次高电平的时间而无法捕获到整个周期的时间，后来我在尝试使用寄存器编写的时候发现竟然完全]]></description><guid isPermaLink="false">/archives/the-measurement-of-pwm</guid><dc:creator>SinonJZH</dc:creator><enclosure url="https://sinon.top/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2FIMG_1754.png&amp;size=m" type="image/jpeg" length="0"/><category>单片机</category><category>学习笔记</category><pubDate>Mon, 26 Nov 2018 05:57:32 GMT</pubDate></item></channel></rss>