<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>chakoku</author_name>
  <author_url>https://blog.hatena.ne.jp/chakoku/</author_url>
  <blog_title>chakokuのブログ(rev4)</blog_title>
  <blog_url>https://chakoku.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>ロータリエンコーダのドライバをPIOで作ってみようと思い、まずは、2bitバスを入力できるように設定してみる。 IN命令により2bit分をPin6,Pin7から入力してISRに格納、PUSH命令でISRからRX FIFOにPUSHする。while文でgetメソッドでFIFOから読み取る。 PUSH IN 2bitバス [RX FIFO]&lt;---[ISR]&lt;-------(Pin6, Pin7) &lt;-------/---- [ロータリエンコーダ]以下がテストプログラム。 # # PIO IN test # from machine import Pin from rp2 import PIO, …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchakoku.hatenablog.com%2Fentry%2F2021%2F03%2F27%2F210955&quot; title=&quot;RP2040のPIOで2bitバスで入力を受け付ける - chakokuのブログ(rev4)&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-03-27 21:09:55</published>
  <title>RP2040のPIOで2bitバスで入力を受け付ける</title>
  <type>rich</type>
  <url>https://chakoku.hatenablog.com/entry/2021/03/27/210955</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
