<?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>标签：单片机 - Sinon的博客</title><link>https://sinon.top/tags/mcu</link><atom:link href="https://sinon.top/tags/mcu/feed/tags/mcu.xml" rel="self" type="application/rss+xml"/><description>Sinon的博客</description><language>zh-cn</language><lastBuildDate>Tue, 3 Nov 2026 13:07:21 GMT</lastBuildDate><item><title><![CDATA[单片机学习笔记之4——新的单片机：TM4]]></title><link>https://sinon.top/archives/tm4-basic-libraries</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%8B4%E2%80%94%E2%80%94%E6%96%B0%E7%9A%84%E5%8D%95%E7%89%87%E6%9C%BA%EF%BC%9ATM4&amp;url=/archives/tm4-basic-libraries" width="1" height="1" alt="" style="opacity:0;">由于我参加了自控方向的电赛，而我们省的电赛又是由Ti公司赞助的，所以在比赛是使用Ti公司的单片机会有得分加成，这就使得我需要重新再学习一种新的单片机，虽然刚开始的时候内心是拒绝的，但是后来当接触到了Ti之后，发现这个公司的IDE以及库函数比我原来开发stm32的那一套工具好用多了，于是也渐渐开始能接]]></description><guid isPermaLink="false">/archives/tm4-basic-libraries</guid><dc:creator>SinonJZH</dc:creator><enclosure url="https://sinon.top/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2FIMG_1789.jpg&amp;size=m" type="image/jpeg" length="0"/><category>单片机</category><category>学习笔记</category><pubDate>Tue, 12 Feb 2019 10:26:30 GMT</pubDate></item><item><title><![CDATA[单片机学习笔记之3——简单红外遥控小车]]></title><link>https://sinon.top/archives/a-small-car-controlled-by-infrared</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%8B3%E2%80%94%E2%80%94%E7%AE%80%E5%8D%95%E7%BA%A2%E5%A4%96%E9%81%A5%E6%8E%A7%E5%B0%8F%E8%BD%A6&amp;url=/archives/a-small-car-controlled-by-infrared" width="1" height="1" alt="" style="opacity:0;">今天水了一个社团的小车比赛（真的是水了比赛，我只花了二十分钟左右弄出来了），做了一个非常简单的红外遥控小车（没错大部分代码还是用的库）。只能实现用遥控器控制前进后退，左转右转的功能，比较辣鸡，这里把代码放出来（稍微加了一点注释） 首先是遥控器部分的代码： #include "remote.h" #i]]></description><guid isPermaLink="false">/archives/a-small-car-controlled-by-infrared</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>Sun, 2 Dec 2018 10:12:31 GMT</pubDate></item><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><item><title><![CDATA[单片机学习笔记之1——遥控器输入]]></title><link>https://sinon.top/archives/mcu-controller</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%8B1%E2%80%94%E2%80%94%E9%81%A5%E6%8E%A7%E5%99%A8%E8%BE%93%E5%85%A5&amp;url=/archives/mcu-controller" width="1" height="1" alt="" style="opacity:0;">自己写了一个通过遥控器输入数据输出pwm波的代码，代码的算法实现还是比较简单的，不过因为我的编码能力太差了，还是费了不少功夫的。在写这个代码的时候我深刻的体会到了用库的魅力（简称偷懒，而且在下一个代码里用库把我坑惨了），通过库省去了我很多的编码时间和学习时间（所以我学到的东西比较少，现在还是很菜）。]]></description><guid isPermaLink="false">/archives/mcu-controller</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>Thu, 22 Nov 2018 07:42:26 GMT</pubDate></item></channel></rss>