Analog Devices MAXREFDES72# Operating instructions

  • Hello, I'm a chat assistant. I've reviewed the MAXREFDES72# Quick Start Guide. This document details how to configure the MAXREFDES72 adapter for mapping Arduino headers to a Pmod connector. It highlights features like arbitrary pin mapping and support for various Pmod types. I’m ready to help with any questions you have about this device.
  • How is the MAXREFDES72# board configured?
    What types of Pmod connectors are supported?
    Is any configuration needed for Type 1 and Type 2 Pmod connections?
    What is the function of the MAX14661 multiplexer?
Maxim&Integrated&cannot&assume&responsibility&for&use&of&any&circuitry&other&than&circuitry&entirely&embodied&in&a&Maxim&Integrated&product.&No&circuit&patent&licenses&are&implied.&Maxim&
Integrated&reserves&the&right&to&change&the&circuitry&and&specifications&without&notice&at&any&time.&
!
Maxim!Integrated!160!Rio!Robles,!San!Jose,!CA!95134!USA!1@408@601@1000!
!
!"#$%&"'()*+",-./01(./2"314256.78",-69"'()*+",-./01(./2"(-2".:/"'()*+",-./01(./2";404"(1/".1(2/+(1<7"4="'()*+",-./01(./2"314256.78",-69"
"
MAXREFDES72!"#Quick&Start&Guide!
!"#$%&"'()#$%*+",-(
>/?*6/"@*.:"("+42/1-"@/A"A14@7/1"(-2".:/"
(A*;*.B".4"@1*./".4"(-"/)./1-(;"CDE"21*?/"
'*61464-.14;;/1"A4(12"@*.:"F125*-4®"CGH"
IJK64+L(.*A;/"746</.":/(2/17"
'FMINO>NDP#Q"A4(12"
'FMJ#J#3'E%"41"4.:/1"3+42RK64+L(.*A;/"
L/1*L:/1(;"+425;/8"(?(*;(A;/":/1/"
./"&/%"0(
S:*7"T5*6<"D.(1."U5*2/"/)L;(*-7":4@".4"64-=*051/".:/"
'FMINO>NDP#Q".4"+(L"=5-6.*4-7"=14+"F125*-4"
:/(2/17".4"("3+42"64--/6.419""S:/"'FMINO>NDP#Q"*7"
6(L(A;/"4="(1A*.1(1B"L*-"+(LL*-0"@*.:"("=/@"
1/7.1*6.*4-79",-"0/-/1(;8".:/"A4(12"*7"64-=*051/2"AB"
@1*.*-0".4".:/"'FM%&VV%"+5;.*L;/)/1"4?/1".:/",#W"A579""
F7".:/"O*051/"#"7:4@78"X"F125*-4"2*0*.(;"U3,H"(1/"
64--/6./2".4".:/"3+42"64--/6.41".:1450:";/?/;"
7:*=./17"(-2"/(6:"4=".:/7/"X"7*0-(;7"(1/"(;74"64--/6./2"
.4".:/"+5;.*L;/)/19"S:/"X"2*0*.(;"7*0-(;7"@/1/"6:47/-"74"
.:(.".:/"F125*-4"C-4"IJ"D3,"7*0-(;7"(1/"64--/6./2"=41"
.:/"3+42"SBL/"#"(-2".4"(?4*2".:/",#W"(-2"CFIS"7*0-(;7"
(.".:/"F125*-4":/(2/179"O41"SBL/"%"YU3,HZ"(-2"SBL/"#"
YD3,Z8"-4"64-=*051(.*4-"*7"-/6/77(1B9"S4"*+L;/+/-."
SBL/"J8"SBL/"&8",#W8"41"4.:/1"657.4+"L*-"+(LL*-07".:(."
-//2"(66/77".4",#W8"CFIS8"41"4.:/1"1/(;".*+/"=5-6.*4-7"
756:"(7"3['8"64-=*051/".:/"+5;.*L;/)/1".4"145./".:/"
7*0-(;7".4".:/"(LL14L1*(./"L*-79"
"
"
"
O*051/"%"
"
"
123456 A
123456 B
GND
NC
D15
D14
D13
D12
D11
D10
D9
D8
D7
D6
D5
D4
D3
D2
D1
D0
A0
A1
A2
A3
A4
A5
VCCVL
IOREF+3.3V
VCCVL
MAX14611
TP0
TP1
TP2
TP3
TP4
TP5
VIN
GND
GND
+5V
+3.3V
RST#
IOREF
NC
PA1
PA2
PA3
PA4
PB1
PB2
PB3
PB4
AB09
AB10
AB11
AB12
AB13
AB14
AB15
AB16
AB08
AB07
AB06
AB05
AB04
AB03
AB02
AB01
COMB
COMA
SDA
SCL
D10
D11
D12
D13
D4
D5
D6
D7
D0
D1
D2
D3
SDA
SCL
D8
D9
GND
IOREF
SDA
SCL
GND
IOREF
SDA
SCL
GND
+3.3V DS3231M
RST#
BATSQW
SDAVCC
SCL32K
MAX14611
IOREF IOREF
IOREF
+3.3V
+3.3V
GNDTS#
GNDTS#
SD#
A1
A0
I2C#
IOREF
"
O*051/"#"
S:/"'FM%&VV%"*7"("%V\#"+(.1*)"+5;.*L;/)/1"@*.:"(;;"%V"4=".:/"F125*-4"2*0*.(;",H"64--/6./2".4".:/"%V"L41."7*2/"4=".:/"
+(.1*)"7@*.6:9""S:/"WH'"L*-7"4-".:/"#"L41."7*2/"4=".:/"+(.1*)"7@*.6:"(1/"57/2"*-./1-(;;B"=41"145.*-08"A5."(1/"(;74"
64--/6./2".4"./7."L4*-.7"(-2"6(-"A/"57/2"=41"2/A509""S4"145./".:/"CFIS".4".:/"3+42"64--/6.418".51-"4-".:/"F"7@*.6:"
64--/6./2".4".:/"IM"YFE$%Z"(-2".:/"F"7@*.6:"64--/6./2".4".:/"2/7*1/2"3+42"L*-"YFE%#Z8".:/-".51-"4-".:/"E"7@*.6:"
64--/6./2".4"SM"YFE$#Z"(-2".:/"E"7@*.6:"64--/6./2".4".:/"2/7*1/2"3+42"L*-"YFE%JZ9""F-B"4=".:/"X"L*-7".:(."(1/"-4."
64--/6./2".4".:/"3+42"64--/6.41"2*1/6.;B"6(-"A/"64--/6./2".4"(-B"4=".:/"X"3+42"64--/6.41"L*-7"(-2".:/"4-;B";*+*.(.*4-"
*7".:(."4-;B".@4"*-2/L/-2/-."7*0-(;7"6(-"A/"145./2";*</".:*7"(.".:/"7(+/".*+/9""S:/"+5;.*L;/)/1"*7"L1401(++(A;/"(-2".:/"
.@4"6:(--/;7"6(-"A/".*+/"+5;.*L;/)/2"*="-/6/77(1B9""F-"/)(+L;/"2/+4-7.1(.*-0":4@".4"24".:*7"@*.:".:/"+A/2"L;(.=41+"*7"
2/761*A/2"*-".:/"Included&Files"(-2"Procedure"7/6.*4-79"
,-".:/"*-6;52/2"/)(+L;/8".:/"+*61464-.14;;/1"*7"4-;B"57/2".4"64-=*051/".:/"'FM%&VV%9""S:/"ID#J#".1(-76/*?/1"*7"(6.5(;;B"
A/*-0"64--/6./2".4".:/"CFIS".:(."*7".:/"?*1.5(;"64+"L41."4-".:/"CDE"*-./1=(6/9""S:/"CFIS"*-7*2/".:/"+*61464-.14;;/1"
-//27".4"A/"2*7(A;/29""S:/"=;/)*A*;*.B"4=".:/"'FMINO>NDP#Q"(2(L./1"(;;4@7".:/"I)"(-2"S)".4"A/"7@(LL/2".4"64--/6.".:/"
3+42".4".:/"CFIS"*-7*2/".:/"+*61464-.14;;/1"41".4".:/"CDE"?*1.5(;"64+"L41.9""E/"6(1/=5;".4"6:/6<":4@".:/7/"7*0-(;7"(1/"
64--/6./2"4-".:/"L;(.=41+"B45":(?/"7/;/6./29""D//"Appendix&C:&mbed&Enabled&Board&Compatibility"=41"74+/"4=".:/"
<-4@-"64+L(.*A*;*.B"*775/79"""
1,23$'"'(4%3"5(
'FM%&VV%96LL"
'FM%&VV%9:"
'FMJ#J#]>N'H96LL"
"
6&72"'$&"(
S:*7"*7"(-"/)(+L;/"4=":4@".4"64-=*051/".:/"+5;.*L;/)/1"57*-0".:/"+A/2"L;(.=41+9"
%9 W4--/6.":(12@(1/"(7"7:4@-"*-"O*051/"%9"
#9 D/;/6."(-"+A/2"/-(A;/2"A4(12"@*.:"F125*-4":/(2/179"D//"Appendix&C:&mbed&Enabled&Board&Compatibility"=41"
<-4@-"64+L(.*A*;*.B"*775/79"
J9 O14+".:/"L;(.=41+"L(0/"=41".:/"7/;/6./2"L;(.=41+8"6;*6<"!"#$%&'#(%)*&"+,#-9"^45"+*0:."-//2".4"6;*6<".((%/*%
0*1-%&'#(%)*&"+,#-"=*17."*="B45":(?/"-4."(;1/(2B"(22/2"*.9"
&9 F"2*(;405/"A4)"@*;;"4L/-8"(7<*-0"B45".4"61/(./"-/@"L1401(+9"W:/6<".:/"L;(.=41+"*7".:/"4-/"B45"_57."7/;/6./28"
6:447/"2&"/0%3-*4-5&"=41".:/"./+L;(./8"(-2"L*6<"("L1401(+"-(+/"Y'FMJ#J#]>N'HZ9"
`9 [*.:"B451"-/@"/+L.B"L1401(+"7/;/6./2"*-".:/"64+L*;/18"6;*6<"G/@"aa"G/@"O*;/"(-2"-(+/".:/"=*;/"&5+$67"""*-"
.:/"2*(;405/"A4)9"
V9 W5."(-2"L(7./".:/"'FMJ#J#]>N'H"642/"=14+"Fppendix&D:&MAX3232&Demonstration&Code"*-.4".:/"A;(-<"
+(*-96LL"=*;/9"
P9 W;*6<".:/"8&"*-/"A5..4-"(.".:/".4L"4=".:/"64+L*;/19"
X9 W;*6<".4":*0:;*0:.".:/".4L"*./+"*-".:/";*7."4="1/75;.7"Y&'#(Z8".:/-"6;*6<"8&"*-/"*-".:/"5LL/1"1*0:."4=".:/"64+L*;/"
@*-24@8"(-2"6;*6<".:/"8&"*-/"A5..4-"(.".:/"A4..4+"4=".:/"2*(;405/"A4)".:(."L4L7"5L9"
b9 W;*6<".:/"8&"*-/"A5..4-"(.".:/".4L"4=".:/"64+L*;/1"(0(*-9"
%$9 D/(16:"=41"9.:;<==;8"6;*6<".4":*0:;*0:."*."*-".:/";*7."4="1/75;.78".:/-"6;*6<"8&"*-/"*-".:/"5LL/1"1*0:."4=".:/"64+L*;/"
@*-24@8"(-2"6;*6<".:/"8&"*-/"A5..4-"(.".:/"A4..4+"4=".:/"2*(;405/"A4)".:(."L4L7"5L9"
%%9 [*.:"B451"-/@"L1401(+":*0:;*0:./2"*-".:/"31401(+"[41<7L(6/8"6;*6<".:/")*&"+,#"A5..4-"(.".:/".4L"4=".:/"
64+L*;/"@*-24@"(-2"7(?/".:/"=*;/".4"B451"64+L5./19"
%#9 3;50".:/"'FMINO>NDP#Q"A4(12"*-.4"B451"+A/2"/-(A;/2"A4(129"
%J9 3;50".:/"'FMJ#J#3'E%"*-.4".:/".4L"14@"4=".:/"3+42"64--/6.41"4-".:/"'FMINO>NDP#Q"A4(129"
%&9 W4--/6.".:/"+A/2"*-./1=(6/"CDE"64--/6.41".4"B451"64+L5./1"@*.:"("CDE"6(A;/9"
%`9 >1(0"(-2"214L".:/"9A*-"=*;/".4".:/"+A/2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"'FMJ#J#"2/+4-7.1(.*4-"642/"=14+"=5-6.*4-*-0"@*.:".:*7"
A4(129"
3['"=5-6.*4-"*7"-4."(?(*;(A;/"4-">J9"
B"""'$%,7(8&2C(6&7(
3['"=5-6.*4-"*7"-4."(?(*;(A;/"4-">J9"
4!D;EFGHIJ(
,#W"(-2">&"(1/"7:(1/2"@*.:"''FX&`%Y$$%%%$%Z9"
4!D;EFGKIJ(
>%J"*7"L5;;/2"5L"AB"(-"eN>9"
4!D;EFGLMJ(
>%J"*7"L5;;/2"5L"AB"(-"eN>9"
4!D;EFML4(
,#W"(-2">&"(1/"7:(1/2"@*.:"OMHDXP$$"Y$$%%%$%Z9""
+A/2"CDE"7/1*(;"L41."24/7"-4."64--/6.".4">$8">%9"S:*7"L1/?/-.7".:/"*-6;52/2"'FMJ#J#"2/+4-7.1(.*4-"642/"
=14+"=5-6.*4-*-0"@*.:".:*7"A4(129"
BN;OK(P$23"7(
3*-7">$"(-2">%"(1/"5-64--/6./2"AB"2/=(5;.9"G//2".4"7:41."+*77*-0"74;2/1"A1*20/7".4"64--/6.9"S:*7"+42*=*6(.*4-"*7"
1/i5*1/2"=41".:/"*-6;52/2"'FMJ#J#"2/+4-7.1(.*4-"642/".4"=5-6.*4-"L14L/1;B9"
>%J"*7"L5;;/2"24@-"AB"(-"eN>9"S:*7"+(</7"*."2*==*65;.".4"57/".:/"3+42"64--/6.41".4L"14@"YFZ"=41",#W9"
O$J$IX"?/17*4-"24/7"-4.":(?/"3['"=5-6.*4-"(.">J9"
8**",'%9(D:(;8QOKOK(D"+7,5-&>-%7,(<7'"(
#include "mbed.h"
#include "MAX14661.h"
MAX14661 mux(D14, D15);
DigitalOut pinRTS(D13);
DigitalIn pinRX(D0); // Set as input to remove load from mbedTX
DigitalIn pinTX(D1); // Set as input to remove load from mbedRX
int main()
{
pinRTS=0; // Not Ready to Send
// D0 (mbedTX) + PA2 (TXD), D1 (mbedRX) + PA3 (RXD)
mux.setAB((MAX14661::SW01 | MAX14661::SW13),
(MAX14661::SW02 | MAX14661::SW12));
pinRTS=1; // Ready to Send
}
"
8**",'%9():(;8QRLMMR(G%@&>&A(
;8QRLMMRSC(
#ifndef MAX14661_H
#define MAX14661_H
#include "mbed.h"
/** MAX14661 Library, Provides utilities for configuring the MAX14661
over I2C
*
* Example:
* @code
* // Enable only switch B3 and read back switch state.
*
* #include "MAX14661.h"
*
* MAX14661 mux(p28, p27);
*
* int main() {
* mux.setAB(0x0000, MAX14661::SW03);
* printf("mux = 0x%08X\n", mux.read());
* mux.clearAll();
* printf("mux = 0x%08X\n", mux.read());
* }
* @endcode
*/
class MAX14661
{
public:
/** Create a MAX14661 interface
*
* @param sda I2C data line pin
* @param scl I2C clock line pin
* @param addr MAX14661 I2C address
*/
MAX14661(PinName sda, PinName scl, int addr = 0x98);
~MAX14661();
/** Name the register addresses
*/
enum MAX14661regs {
REG_DIR0 = 0x00, /**< 8A-1A Direct Access */
REG_DIR1, /**< 16A-9A Direct Access */
REG_DIR2, /**< 8B-1B Direct Access */
REG_DIR3, /**< 16B-9B Direct Access */
REG_SHDW0 = 0x10, /**< 8A-1A Shadow */
REG_SHDW1, /**< 16A-9A Shadow */
REG_SHDW2, /**< 8B-1B Shadow */
REG_SHSW3, /**< 16B-9B Shadow */
REG_CMD_A, /**< Command A */
REG_CMD_B /**< Command A */
};
"
/** Name the command codes
*/
enum MAX14661cmds {
CMD_EN01 = 0x00, /**< Enable switch 1 */
CMD_EN02, /**< Enable switch 2 */
CMD_EN03, /**< Enable switch 3 */
CMD_EN04, /**< Enable switch 4 */
CMD_EN05, /**< Enable switch 5 */
CMD_EN06, /**< Enable switch 6 */
CMD_EN07, /**< Enable switch 7 */
CMD_EN08, /**< Enable switch 8 */
CMD_EN09, /**< Enable switch 9 */
CMD_EN10, /**< Enable switch 10 */
CMD_EN11, /**< Enable switch 11 */
CMD_EN12, /**< Enable switch 12 */
CMD_EN13, /**< Enable switch 13 */
CMD_EN14, /**< Enable switch 14 */
CMD_EN15, /**< Enable switch 15 */
CMD_EN16, /**< Enable switch 16 */
CMD_DIS, /**< Disable switches */
CMD_COPY, /**< Copy shadow registers to switches */
CMD_NOOP = 0x1F /**< Keep current state, no changes */
};
/** Name the switch bits
*/
enum MAX14661sws {
SW01 = (1 << 0), /**< Bit mask for switch 1 */
SW02 = (1 << 1), /**< Bit mask for switch 2 */
SW03 = (1 << 2), /**< Bit mask for switch 3 */
SW04 = (1 << 3), /**< Bit mask for switch 4 */
SW05 = (1 << 4), /**< Bit mask for switch 5 */
SW06 = (1 << 5), /**< Bit mask for switch 6 */
SW07 = (1 << 6), /**< Bit mask for switch 7 */
SW08 = (1 << 7), /**< Bit mask for switch 8 */
SW09 = (1 << 8), /**< Bit mask for switch 9 */
SW10 = (1 << 9), /**< Bit mask for switch 10 */
SW11 = (1 << 10), /**< Bit mask for switch 11 */
SW12 = (1 << 11), /**< Bit mask for switch 12 */
SW13 = (1 << 12), /**< Bit mask for switch 13 */
SW14 = (1 << 13), /**< Bit mask for switch 14 */
SW15 = (1 << 14), /**< Bit mask for switch 15 */
SW16 = (1 << 15) /**< Bit mask for switch 16 */
};
/** Clears all bits to opens all 32 switches
*/
void clearAll();
/** Set all 32 switches simultaneously
*
* @param swA the desired state of switches [A16 - A01]
* @param swB the desired state of switches [B16 - B01]
*/
void setAB(int swA, int swB);
"
/** Read the status of all 32 switches concatenated into a single
int
*
* @returns
* the switch states [B16-B01,A16-A1]
*/
int read();
private:
I2C _i2c;
int _addr;
};
#endif
;8QRLMMRS2**(
#include "MAX14661.h"
#include "mbed.h"
MAX14661::MAX14661(PinName sda, PinName scl, int addr) : _i2c(sda,
scl)
{
_addr = addr;
}
MAX14661::~MAX14661()
{
}
void MAX14661::clearAll()
{
char data[3];
data[0] = REG_CMD_A;
data[1] = CMD_DIS;
data[2] = CMD_DIS;
_i2c.write(_addr, data, 3);
}
void MAX14661::setAB(int swA, int swB)
{
char data[7];
data[0] = REG_SHDW0;
data[1] = swA;
data[2] = swA >> 8;
data[3] = swB;
data[4] = swB >> 8;
data[5] = CMD_COPY;
data[6] = CMD_COPY;
_i2c.write(_addr, data, 7);
}
int MAX14661::read()
{
char data[4];
data[0] = REG_DIR0;
"
_i2c.write(_addr, data, 1, true);
_i2c.read(_addr, data, 4);
return ((data[3] << 24) | (data[2] << 16) |(data[1] << 8) |
data[0]);
}
8**",'%9(4:(8&'$%,7(T>&%>,-(6%,(;>**%,?(
GND
VIN
GND
+5V
+3.3V
RESET
+5V
NC
MOSI
MISO
SCK
SS
GND
AREF
SDA
SCL PC5
PC4
PB5
PB4
PB3
PB2
PB1
PB0
PD7
PD6
PD5
PD4
PD3
PD2
PD1
PD0
PC0
PC1
PC2
PC3
PC4
PC5
Analog
In
TX
RX
PWM
PWM
PWM
PWM
Arduino UNO R3
ATmega328
GND
VIN
GND
+5V
+3.3V
RESET
+5V
NC GND
AREF
SDA
SCL PD0
PD1
PC7
PD6
PB7
PB6
PB5
PB4
PE6
PD7
PC6
PD4
PD0
PD1
PD3
PD2
PF7
PF6
PF5
PF4
PF1
PF0
Analog
In
TX
RX
PWM
PWM
PWM
PWM
Leonardo / YÚN
ATmega32U4
PWM
PWM
PWM
SDA
SCL
GND
VIN
GND
+5V
+3.3V
RESET
3.3 or 5
NC
MOSI
MISO
SCK
SS
GND
NC
SDA
SCL A5
A4
IO13
IO12
IO11
IO10
IO9
IO8
IO7
IO6
IO5
IO4
IO3
IO2
IO1
IO0
A0
A1
A2
A3
A4
A5
Analog
In
TX
RX
PWM
PWM
PWM
PWM
Intel Galileo
Quark SoC X1000
PWM
PWM
SDA
SCL
PWM
PWM
ARDUINO
GND
VIN
GND
+5V
+3.3V
RESET
+3.3V
NC GND
AREF
SDA
SCL A18
A17
B27
D8
D7
C29/A28
C21
C22
C23
C24
C25
C26/A29
C28
B25
A9
A8
A16
A24
A23
A22
A6
A4
Analog
In
TX
RX
PWM
PWM
PWM
PWM
Arduino DUE
SAM3X8E
PWM
PWM
PWM
PWM
PWM
PWM
PWM
PWM
GND
VIN
GND
+5V
+3.3V
RESET
+3.3V MOSI
MISO
SCK
SS
GND
SDA
SCL P0_4
P0_5
P0_9
P0_8
P1_29
P0_2
P1_27
P1_26
P1_5
P1_25
P1_24
P1_18
P1_17
P0_17
P0_19
P0_18
P0_11
P0_12
P0_13
P0_14
P0_16
P0_22
Analog
In
TX
RXPWM
PWM
PWM
PWM
Seeeduino Arch
LPC11U24
PWM
PWM
P0_7
P0_23
TX
RX
TX
RX
GND
VIN
GND
+5V
+3.3V
RESET
+3.3V
MOSI
MISO
SCK
SS
GND
SDA
SCL
P0_28
P0_27
P0_7
P0_8
P0_9
P0_6
P0_1
P0_0
P2_5
P2_4
P2_3
P2_2
P0_5
P0_4
P4_28
P4_29
P0_23
P0_24
P0_25
P0_26
P1_30
P1_31
Analog
In
TX
RX
PWM
PWM
Seeeduino Arch PRO
LPC1768
PWM
PWM
P2_13
P2_12
TX
RX
SDA
SCL
TX
RX
GND
VIN
GND
+5V
+3.3V
RESET
+3.3V
SDA_PTD
MOSI
MISO
SCK
SS
GND
VREFH
SDA
SCL PTE1
PTE0
PTD1
PTD3
PTD2
PTD0
PTD5
PTA13
PTC9
PTC8
PTA5
PTA4
PTA12
PTD4
PTA2
PTA1
PTB0
PTB1
PTB2
PTB3
PTC2
RTC_Clkin
Analog
In
TX
RX
PWM
PWM
PWM
PWM
Freescale
FRDM-KL25Z
PWM
PWM SDA
SCL
TX
RX
GND
VIN
GND
+5V
+3.3V
RESET
+3.3V
SDA_PTD
MOSI
MISO
SCK
SS
GND
VREFH
SDA
SCL PTB3
PTB4
PTB0
PTA6
PTA7
PTA5
PTB11
PTB10
PTB7
PTB6
PTA12
PTA10
PTB5
PTA11
PTB1
PTB2
PTB8
PTB9
PTA8
PTA0
PTA9
Analog
In
TX
RX
PWM
PWM
PWM
PWM
Freescale
FRDM-KL05Z
PWM
PWM
PTB13
PWM
PWM
PWM
PWM
GND
VIN
GND
+5V
+3.3V
RESET
+3.3V
SDA_PTD
MOSI
MISO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9
PA_8
PB_10
PB_4
PB_5
PB_3
PA_10
PA_2
PA_3
PA_0
PA_1
PA_4
PB_0
PC_1
PC_0
Analog
In
TX
RX
PWM
STM32 Nucleo
L152RE
LED1
INT
PWM
INT
PWM INT
BUTTON
PC_13INT
GND
VIN
GND
+5V
+3.3V
RESET
+3.3V
NC
MOSI
MISO
SCK
SS
GND
AVDD
SDA
SCL PB_8
PB_9
PA_5
PA_6
PA_7
PB_6
PC_7
PA_9
PA_8
PB_10
PB_4
PB_5
PB_3
PA_10
PA_2
PA_3
PA_0
PA_1
PA_4
PB_0
PC_1
PC_0
Analog
In
TX
RX
PWM
STM32 Nucleo
F401RE
LED1 PWM
PWM
BUTTON
PC_13INT
TX
RX
SDA
SCL
SDA
SCL
PWM
PWM
PWM
PWM
PWM
PWM
PWM
PWM
PWM
PWM
PWM
PWM
PWM
GND
VIN
GND
+5V
+3.3V
RESET
+3.3V
NC
MOSI
MISO
SCK
SS
GND
NC
SDA
SCL P0_11
P0_10
P0_12
P0_15
P0_14
P0_13
P0_16
P0_17
P0_7
XP_4
XP_5
P0_9
P0_8
P0_6
P0_4
P0_0
XP_0
XP_1
XP_2
XP_3
P0_10
P0_11
Analog
In
TX
RX
PWM
PWM
PWM
PWM
NXP LPC800-MAX
LPC812
SDA
SCL
PWM
PWM
GND
VIN
GND
+5V
+3.3V
RESET
+3.3V
NC
MOSI
MISO
SCK
SS
GND
NC
SDA
SCL P0_22
P0_23
P0_16
P0_12
P0_28
P0_27
P1_0
P0_24
P0_0
P1_3
P0_16
P0_10
P0_9
P0_29
P0_18
P0_13
P0_8
P0_7
P0_6
P0_5
P0_23
P0_22
Analog
In
TX
RX
PWM
PWM
PWM
NXP LPCXpresso
LPC1549
SDA
SCL
mbed ENABLED
"
"(
"
N&>'"+>&U5(
Arduino is a registered trademark of Arduino, LLC.
Digilent is a registered trademark and Pmod™ is a trademark of Digilent Inc.
Pmod is a trademark of Diligent Inc.
Windows is a registered trademark and registered service mark of Microsoft Corporation.
"(
"
!"/%5%7,(V%5-7&A(
E2N%OD9I2E%
>.@2%
>2B)E83@8!O%
3.A2B%)G.OA2>%
$"
Ph%&"
,-*.*(;"1/;/(7/"
j"
"
/