chipKIT Basic I/O Shield Reference Manual
Discrete Digital I/O Devices
The Basic I/O Shield provides various discrete
digital I/O devices. These can be accessed
using the digitalRead and digitalWrite
functions. The pinMode function is used to set
the pin to input or output.
When the buttons and switches on the Basic
I/O are not being used, the pins are available
on the pass-through shield connectors for use
by other shields in the stack. The pins used by
the LEDs are also available, however the
presence of the LEDs on the lines will load
them down, possibly causing some devices to
not work. It is safe to use any of these pins as
either inputs or outputs.
Push Buttons : There are four push buttons
switches labeled BTN1 (pin 4), BTN2 (pin 34),
BTN3 (pin 36), and BTN4 (pin 37). The
digitalRead function will return LOW if the
button is not pressed and HIGH when the
button is pressed.
Slide Switches : There are four slide switches
labeled SW1 (pin 2), SW2 (pin 7), SW3 (pin 8)
and SW4 (pin 35). The digitalRead function will
return LOW when the switch is down (toward
the push buttons) and HIGH when the switch is
up (toward the OLED display).
LEDs : There are eight LEDs, labeled LD1 –
LD8 accessed as digital pins 33 – 26. An LED
will be illuminated when the corresponding pin
is set to the HIGH state using the digitalWrite
function and off when set to the LOW state.
The LEDs are attached to the low eight bits of
PORTE, with LD1 connected to PORTE bit 0,
and LD8 connected to PORTE bit 7. An 8-bit
value written to PORTE (or LATE) will display
the corresponding binary value on the LEDs.
Open Drain FET Outputs
The Basic I/O provides four open drain FET
outputs. These are low-side N-channel devices
and can be used to provide a digital switch
www.digilentinc.com
closure to ground. These can be used to
switch external loads, such as relay coils,
solenoids, stepper motors, and so on.
The FETs used are the NTHD4508N. These
FETs are rated for a maximum V DS (voltage
from drain to source) of 20V. They are rated for
a maximum continuous current of 3.0A at 25oC
and 2.2A at 85oC. For more detailed
specifications for the FETs refer to the data
sheet available from the On Semiconductor
web site.
The FETs are labeled Q1A (pin 9), Q1B (pin
6), Q2A (pin 5), and Q2B (pin 3). These four
pins are also four of the PWM outputs
supported by the chipKIT boards and the FETs
can be switched using pulse width modulation
(PWM) using the analogWrite function.
An FET is switched on by driving its gate high.
When the FET is on, it provides a low
impedance path to ground (similar to a closed
switch to ground). When the FET is switched
off by driving its gate low, it becomes a high
impedance path to ground (similar to an open
switch to ground). Pull-down resistors are
connected to the gate of each FET to ensure
that it is off unless being actively driven high by
the microcontroller on the chipKIT board.
The FET outputs are accessed via the screw
terminal connectors J7 and J8 on the left side
of the board. The digital signals used to switch
the FETs on and off are also available on
screw terminal connectors J9 and J10 at the
left side of the upper edge of the board.
A FET is used to switch an external load, such
as a relay coil, on and off. The load is wired
between the positive side of an external power
supply and the output of the FET. When the
FET is switched on, current will flow from the
external power supply through the load and the
FET to ground.
FETs are often used to switch highly inductive
loads, such as relay coils, solenoids, and
motors. When the current through an inductive
load is switched off, a voltage spike will occur
page 5 of 15
Copyright Digilent, Inc. All rights reserved. Other product and company names mentioned may be trademarks of their respective owners.
相关PDF资料
TDGL007 BOARD MOTOR CTRL DSPIC337128MC
TEACL-PIC-DB ADAPTER DEBUG TEACLIPPER/PICICD2
TEACL-STAMP-DB ADAPTER DEBUG TEACLIPPER/STAMP
TEH-9P CONN DB9 PLUG IDC PLASTIC
TEH-9S CONN DB9 SOCKET IDC PLASTIC
TEMPCOMPRTC-RD KIT REF DES TEMP COMPENS RTC
THS6182DWEVM EVAL MODULE FOR THS6182DW
TISP1082F3DR SURGE SUPP -66V UNIDIR 8-SOIC
相关代理商/技术参数
TDGL006 功能描述:界面开发工具 chipKIT Network Shield RoHS:否 制造商:Bourns 产品:Evaluation Boards 类型:RS-485 工具用于评估:ADM3485E 接口类型:RS-485 工作电源电压:3.3 V
TDGL007 功能描述:开发板和工具包 - PIC / DSPIC DIGILENT CEREBOT MC7 MOTOR CONTROL BRD RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
TDGL008 功能描述:开发板和工具包 - PIC / DSPIC Digilent Cerebot MX3ck Dev Brd RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
TDGL009 功能描述:开发板和工具包 - PIC / DSPIC Digilent Cerebot MX4cK Dev Brd RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
TDGL010 功能描述:开发板和工具包 - 其他处理器 Digilent Cerebot MX7cK Dev Brd RoHS:否 制造商:Freescale Semiconductor 产品:Development Systems 工具用于评估:P3041 核心:e500mc 接口类型:I2C, SPI, USB 工作电源电压:
TDGL011 功能描述:MODULE DIGILENT PMOD WIFI RoHS:是 类别:RF/IF 和 RFID >> RF 评估和开发套件,板 系列:Digilent 标准包装:1 系列:- 类型:GPS 接收器 频率:1575MHz 适用于相关产品:- 已供物品:模块 其它名称:SER3796
TDGL012 功能描述:MODULE DIGILENT PMODRF2 RoHS:是 类别:RF/IF 和 RFID >> RF 评估和开发套件,板 系列:Digilent 标准包装:1 系列:- 类型:GPS 接收器 频率:1575MHz 适用于相关产品:- 已供物品:模块 其它名称:SER3796
TDGL013 功能描述:MODULE DIGILENT PMODRTCC RoHS:是 类别:编程器,开发系统 >> 评估演示板和套件 系列:* 标准包装:1 系列:- 主要目的:数字电位器 嵌入式:- 已用 IC / 零件:AD5258 主要属性:- 次要属性:- 已供物品:板 相关产品:AD5258BRMZ1-ND - IC POT DGTL I2C1K 64P 10MSOPAD5258BRMZ10-ND - IC POT DGTL I2C 10K 64P 10MSOPAD5258BRMZ100-ND - IC POT DGTL I2C 100K 64P 10MSOPAD5258BRMZ50-ND - IC POT DGTL I2C 50K 64P 10MSOPAD5258BRMZ1-R7-ND - IC POT DGTL I2C 1K 64P 10MSOPAD5258BRMZ10-R7-ND - IC POT DGTL I2C 10K 64P 10MSOPAD5258BRMZ50-R7-ND - IC POT DGTL I2C 50K 64P 10MSOPAD5258BRMZ100-R7-ND - IC POT DGTL I2C 100K 64P 10MSOP