MT-DB-U4
User Guide
Pin Capabilities
●
Digital: All pins can be used for general purpose I/O
●
Supports INPUT, OUTPUT, and INPUT_PULLUP.
●
Each pin can source or sink a maximum of 20 mA.
●
Internal pullup resistors of 2050 Kohms (disconnected by default).
●
Use the pinMode(), digitalWrite(), and digitalRead() functions.
●
Analog Inputs: 8 pins (MTDBU6) or 11 pins (MTDBU4) can be configured as ADC
analog inputs.
●
These are available using the analogRead() function.
●
All pins can be used for GPIO and some pins can be used for other digital functions (ie.
pwm or serial).
●
Each pin provides 10 bits of resolution (1024 values).
●
Each pin measures from ground to 5.0 volts.
●
The upper end of the measurement range can be changed using the AREF pin and the
analogReference() function.
●
PWM: 7 pins (MTDBU6, MTDBU4) or 4 pins (MTDBU2, MTDBU1) can be configured
as PWM outputs.
●
Available using the analogWrite() function.
●
Each pin provides 8 bits of resolution (256 values) by default.
●
External Interrupts: Up to 8 pins can be configured with external interrupts.
●
6 pins (MTDBU6), 5 pins (MTDBU4), or 8 pins (MTDBU2, MTDBU1).
●
Available using the attachInterrupt() function.
●
Serial: 1 pair of pins can be configured for TTL serial I/O.
●
MTDBU6: Serial1: pin 31 (RX) and pin 32 (TX).
●
MTDBU4: Serial1: pin 20 (RX) and pin 21 (TX).
●
MTDBU2, MTDBU1: Serial1: pin 15 (RX) and pin 16 (TX).
●
SPI: 3 or 4 pins can be configured for SPI I/O (SPI).
●
MTDBU6: Pin 21 (MOSI), pin 20 (SCK), pin 22 (MISO), and optionally pin 19 (SS, not
currently used).
●
MTDBU4: Pin 15 (MOSI), pin 14 (SCK), pin 16 (MISO), and optionally pin 13 (SS, not
currently used).
●
MTDBU2, MTDBU1: Pin 2 (MOSI), pin 1 (SCK), pin 3 (MISO), and optionally pin 0
(SS, not currently used).
●
SPI communication using the SPI library.
●
TWI (I2C): 2 pins can be configured for TWI I/O (Wire).
●
MTDBU6: Pin 30 (SDA) and pin 29 (SCL).
●
MTDBU4: Pin 19 (SDA) and pin 18 (SCL).
●
MTDBU2, MTDBU1: TWI not present
●
TWI communication using the Wire library.
●
LED: One pin can be configured to light the onboard LED (LED_BUILTIN).
●
Pin 0 (MTDBU6), pin 25 (MTDBU4), or pin 13 (MTDBU2, MTDBU1).
●
Bring the pin HIGH to turn the LED on.
●
AREF: One pin can be configured as an AREF analog input.
December 30, 2015
17
http://www.mattairtech.com/