Author Topic: PORT B - Atmel Sam D21 XplainedPro  (Read 1594 times)

0 Members and 1 Guest are viewing this topic.

Offline FrancTopic starter

  • Regular Contributor
  • *
  • Posts: 64
  • Country: br
PORT B - Atmel Sam D21 XplainedPro
« on: September 24, 2016, 11:13:37 pm »
Hi all, how are you :)
 
I am using a Explained Pro Sam D21 .
 
I will control one AD5447 of 12 bits and I would like use the PB00 to PB11 pins.
 
I checked the DS of Sam D21 and discovered that PB04 to PB09 are analog pins, with power source of VDDanalogic, others pins VDDdigital. 
 
Here is my doubt, could I use then as digital Pins? So I can define a MASK PB00 to PB11, it will be better to coding.
 
If no possible, I will need create an MASK with PA08 PA09 PA10 PA11 PA20 PA21 PA17 PA18 PA16 PA19 PA27 PA28. In this case my Mask will be confuse.
 
The MASK will have two source different, it can cause any instability?
 
This is a limitation of XplainedPro PCB :-\, I don't have the complete I/O port.
 
Have a nice saturday
Paulo
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11248
  • Country: us
    • Personal site
Re: PORT B - Atmel Sam D21 XplainedPro
« Reply #1 on: September 24, 2016, 11:36:02 pm »
VDD_analog and VDD_digital separation is mostly for your information, since datasheet states that both VDD_analog and VDD_digital must be derived from the same supply (meaning they must have the same level and rise time at all times).

Typically VDD_analog is VDD_digital passed though a ferrite bead for noise filtering, but that is not necessary if noise is not an issue or you don't use analog peripherals.

So just use ports as usual, no need to do anything special in the software.

EDIT: Smaller pin count parts actually have all voltages combined into one pin.
Alex
 
The following users thanked this post: Franc

Offline FrancTopic starter

  • Regular Contributor
  • *
  • Posts: 64
  • Country: br
Re: PORT B - Atmel Sam D21 XplainedPro
« Reply #2 on: September 25, 2016, 12:01:42 am »
Thanks Alex!
So I can start my Mask in PB00? ok.

Regards
Paulo
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11248
  • Country: us
    • Personal site
Re: PORT B - Atmel Sam D21 XplainedPro
« Reply #3 on: September 25, 2016, 12:38:10 am »
So I can start my Mask in PB00? ok.
I'm not sure what mask you are talking about, but you can treat PB0 as you would any other pin.
Alex
 

Offline FrancTopic starter

  • Regular Contributor
  • *
  • Posts: 64
  • Country: br
Re: PORT B - Atmel Sam D21 XplainedPro
« Reply #4 on: September 25, 2016, 01:12:07 pm »
I will use PB0 as digital pin and creat a MASK of 12 bits startin in PB0. I was confuse as in DS it is a Analog pin.
Regards!
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf