0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

ずっとFPGA初心者(その10:内部プルアップ)

Posted at

プルアップ設定

いつも使用しているFPGAボード内部に、プルアップ抵抗の設定ができることがわかったので、本記事では、プルアップ有無時の動作の確認を行う。

VHDLコード

今回のコードは自明。BTN(ボタン押下)をLED(点灯)に結びつけるのみ。

Pullup.vhd
library ieee;
use ieee.std_logic_1164.all;

entity Pullup is
  port (
    BTN: in  std_logic;
    LED: out std_logic);
end;

architecture RTL of Pullup is 
begin 
  LED <= BTN;			
end RTL;

Quartusの設定

デフォルトでは、プルアップ設定を行うことができない。設定を行うために、Pin Plannerメニューで、BTNやLEDあたりで右クリックすると、「Customize Columns...」が見つかるので、これをクリック。
CustomizeColumn.png

次に「Weak Pull-Up Resistor」を選び、コラムに追加することにより、設定を行えるようになる(表示される)。
WeakPullupAdd.png

プルアップ未設定時の表示

PullupOff.png

プルアップ設定時の表示

このコラムをクリックすると、On/OFFを選べる。
WeakPullupOn.png

実験

ちなみに、本ボードのVddピン(電源)やGNDピン情報については、その8の外部入出力コネクタ情報を参照されたい。

FPGA内でプルアップ未設定

青枠内にプルアップ用抵抗がある。ボタン押下でLEDが点灯(負論理、下に見える緑色が
LED)。

FPGA内でプルアップ設定

電源が接続されていないことを確認。

ボタン押下でLEDが点灯(同じ)。

成功。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?