<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>katogiso-tech</author_name>
  <author_url>https://blog.hatena.ne.jp/katogiso-tech/</author_url>
  <blog_title>いかにして問題を解くか</blog_title>
  <blog_url>https://katogiso-tech.hatenablog.com/</blog_url>
  <categories>
    <anon>RaspberryPi</anon>
    <anon>Hardware</anon>
  </categories>
  <description>やること Raspberry Pi 用の特別なライブラリとドライバを利用せずにPWMをC言語で操作する。 注意点 Linux のシステムコールを含む(mmap関数)ので、root 権限が必要なため sudo コマンドを利用する必要があります。 プログラム名を sample.c とするならば、 $ gcc sample.c $ sudo ./a.out のように実行してください。 main() IC 18pin (RaspberryPi の端子だと 12pin) をALT5モードにして、PWMを発生させる。 PWM のサブモードは ある期間(M, RNG)内で、バランスよく N(N, DAT) …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkatogiso-tech.hatenablog.com%2Fentry%2F2017%2F11%2F12%2F172142&quot; title=&quot;Raspberry pi で AP のレジスタをC言語で直接変更して PWM を操作する - いかにして問題を解くか&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/k/katogiso-tech/20171112/20171112170346.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-11-12 17:21:42</published>
  <title>Raspberry pi で AP のレジスタをC言語で直接変更して PWM を操作する</title>
  <type>rich</type>
  <url>https://katogiso-tech.hatenablog.com/entry/2017/11/12/172142</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
