0

Pin Mapping: Metro M4 express (Beta)'s ADSAMD51J19 to PC bo
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Pin Mapping: Metro M4 express (Beta)'s ADSAMD51J19 to PC bo

by KB1HFT on Fri Jun 22, 2018 3:43 pm

Hello, Ms. Ada:

Is there available a ADSAMD51J19-to-PCB pin mapping diagram, similar to:

https://cdn-shop.adafruit.com/product-f ... l_v2_0.pdf

for your Metro M4 express (beta) board??

If so, please point us to it.

Thanks!!

KB1HFT
 
Posts: 11
Joined: Mon Jun 11, 2018 4:20 pm

Re: Pin Mapping: Metro M4 express (Beta)'s ADSAMD51J19 to P

by adafruit_support_carter on Fri Jun 22, 2018 5:33 pm

No pretty diagram. At least not yet. But there is pinout info here:
https://learn.adafruit.com/introducing- ... m4/pinouts

adafruit_support_carter
 
Posts: 6598
Joined: Tue Nov 29, 2016 2:45 pm

Re: Pin Mapping: Metro M4 express (Beta)'s ADSAMD51J19 to P

by KB1HFT on Fri Jun 22, 2018 5:41 pm

Thanks, but I am looking for pin _mapping_ info for the Metro M4 express (Beta). I. e., Atmel chip pins-to-PCB pins.

Don't need a pretty picture ( would be nice tho ): tabular format would be sufficient.

Thanks again.

KB1HFT
 
Posts: 11
Joined: Mon Jun 11, 2018 4:20 pm

Re: Pin Mapping: Metro M4 express (Beta)'s ADSAMD51J19 to P

by adafruit_support_carter on Fri Jun 22, 2018 6:16 pm


adafruit_support_carter
 
Posts: 6598
Joined: Tue Nov 29, 2016 2:45 pm

Re: Pin Mapping: Metro M4 express (Beta)'s ADSAMD51J19 to P

by KB1HFT on Fri Jun 22, 2018 9:09 pm

A proper schematic would be a step in the right direction.

Note, please, that I'm looking for the pin mapping for the METRO M4 express (Beta), _not_ the ItsyBitsy M4, for which you have sent documentation.

KB1HFT
 
Posts: 11
Joined: Mon Jun 11, 2018 4:20 pm

Re: Pin Mapping: Metro M4 express (Beta)'s ADSAMD51J19 to P

by BryonMiller on Fri Jun 22, 2018 11:51 pm

This may help you to get what you want. If you look at the following table you'll see a mapping to SAMD51 pad names. Then if you look in the data sheet Figure 4.2 you can find device pin numbers. Then, in the same data sheet, if you look at Table 6.1 you can find the peripheral functions for those same pad names.

Code: Select all | TOGGLE FULL SIZE
show pin info for Arduino pins 0..13
Info for Arduino pin 0 PA23
Info for Arduino pin 1 PA22
Info for Arduino pin 2 PB17
Info for Arduino pin 3 PB16
Info for Arduino pin 4 PB13
Info for Arduino pin 5 PB14
Info for Arduino pin 6 PB15
Info for Arduino pin 7 PB12
Info for Arduino pin 8 PA21
Info for Arduino pin 9 PA20
Info for Arduino pin 10 PA18
Info for Arduino pin 11 PA19
Info for Arduino pin 12 PA17
Info for Arduino pin 13 PA16
show pin info for Arduino pins A0..A5
Info for Arduino pin 14 PA02
Info for Arduino pin 15 PA05
Info for Arduino pin 16 PA06
Info for Arduino pin 17 PA04
Info for Arduino pin 18 PB08
Info for Arduino pin 19 PB09


I'm including the program I used to get the table above. There are embedded comments about extra information you might want to get.

Code: Select all | TOGGLE FULL SIZE
void setup()
{
Serial.begin(115200);
while(!Serial);                 // Wait for Serial monitor before continuing

Serial.println("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
Serial.println("show pin info for Arduino pins 0..13");
for (int i=0;i<=13;i++)
   dumpPinDescription(i);
Serial.println("show pin info for Arduino pins A0..A5");
for (int i=A0;i<=A5;i++)
   dumpPinDescription(i);

}


void loop()
{
}



// typedef struct _PinDescription
// {
  // EPortType       ulPort ;
  // uint32_t        ulPin ;
  // EPioType        ulPinType ;
  // uint32_t        ulPinAttribute ;
  // EAnalogChannel  ulADCChannelNumber ; /* ADC Channel number in the SAM device */
  // EPWMChannel     ulPWMChannel ;
  // ETCChannel      ulTCChannel ;
  // EExt_Interrupts ulExtInt ;
// } PinDescription ;


void dumpPinDescription(uint32_t ulPin)
{
Serial.print("Info for Arduino pin ");
Serial.print(ulPin);
Serial.print(" P");
int port=g_APinDescription[ulPin].ulPort;
Serial.print(char('A'+port));
//Serial.print(g_APinDescription[ulPin].ulPort);
int pin=g_APinDescription[ulPin].ulPin;
if (pin < 10)
   Serial.print('0');
Serial.print(pin);

Serial.println();
}


Edit : and btw schematic is here

BryonMiller
 
Posts: 119
Joined: Fri Mar 04, 2016 10:34 am

Re: Pin Mapping: Metro M4 express (Beta)'s ADSAMD51J19 to P

by adafruit_support_carter on Fri Jun 22, 2018 11:57 pm

Not sure why I kept seeing Itsy. Sorry. How 'bout these?
https://learn.adafruit.com/adafruit-met ... tion-print

adafruit_support_carter
 
Posts: 6598
Joined: Tue Nov 29, 2016 2:45 pm

Re: Pin Mapping: Metro M4 express (Beta)'s ADSAMD51J19 to P

by westfw on Sat Jun 23, 2018 2:14 am

https://docs.google.com/spreadsheets/d/ ... Y/htmlview
(Not carefully reviewed, but should be pretty good.)
User avatar
westfw
 
Posts: 1427
Joined: Fri Apr 27, 2007 1:01 pm
Location: SF Bay area

Re: Pin Mapping: Metro M4 express (Beta)'s ADSAMD51J19 to P

by KB1HFT on Sat Jun 23, 2018 5:15 pm

Byron, Carter, westfw: thank you all. These should keep me busy for a while!
-george K KB1HFT

KB1HFT
 
Posts: 11
Joined: Mon Jun 11, 2018 4:20 pm

Please be positive and constructive with your questions and comments.