SAMD09(09D – 24-pin QFN) pin types

Go To Last Post
4 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

So this is probably a stupid question but I just want to confirm before purchasing the MCU. For the project I need an MCU that is capable of producing I2C (this is supported by this MCU), can generate a PWM signal (is also supported) and has 16 digital PINS. In the datasheet it says there are 22 GPIOs so that should be 2 for I2C and 1 for PWM leaving 19 and that is of course even more than enough. However the part that is confusing me is this image in the datasheet. There are only 13 pins assigned as digital. Can I use pins 02-07 as digital, furthermore can I use pins PA08 and PA09 as digital (they are oscillator pins)?

Thanks in advance.

This topic has a solution.
Last Edited: Fri. Jan 7, 2022 - 11:31 AM
This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

 

It's easier to see if you put the image in the post:

 

This image is a summary - not exhaustive. For full details, you need to refer to the IO Multiplexing table:

 

 

I'd always recommend going direct to the manufacturer's website for documentation: http://ww1.microchip.com/downloads/en/devicedoc/atmel-42414-sam-d09_datasheet.pdf
 

For how to put images in a post, see Tip #1 in my signature, below:

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks for the response, images do indeed make everything more clear, I'll keep that in mind for future posts. So if I understand the table correctly pins PA02-PA07 and PA10-PA15 can be both digital and analog while all the others can be digital (and ofc some are SERCOM, GCLK, TC, etc) and the ones with I2C (PA14, PA15, PA22, PA23) naturally support I2C. In others words everything I need should be covered.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yes, the names on the diagram aren't really that well-chosen.

 

frown

 

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...