Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: SPI's NPCSx Selection
PostPosted: Thu Sep 22, 2011 12:08 pm 
Offline

Joined: Sun Nov 14, 2010 2:39 am
Posts: 2
Section 30.6.1, page 581 of the SAM3S Preliminary datasheet nominates the PIO lines used for NPCSx use. How does one discern the choice of NPCS3 amongst PA3, PA5, PA22 when all exist as peripheral B on PIOA?


Top
 Profile  
 
 Post subject: Re: SPI's NPCSx Selection
PostPosted: Thu Sep 22, 2011 4:21 pm 
Offline

Joined: Tue Jul 13, 2010 12:54 pm
Posts: 29
Normally the NPCS and other lines are multiplexed wit a range of other pins to allow you to connect a custom set of devices to the processor without losing functionality. The three available pins for NPCS3 gives you a choice. Either 2 USARTS and the NPCS3 line or a USART, TWI and NPCS3 pin

Choose a pin that supports the NPCS3 as peripheral B (Note any errata) and the set of devices you want to use, connect your peripheral to the pin. Configure that specific pin, and only that one to be NPCS3 in your code.


Top
 Profile  
 
 Post subject: Re: SPI's NPCSx Selection
PostPosted: Fri Sep 23, 2011 12:42 am 
Offline

Joined: Sun Nov 14, 2010 2:39 am
Posts: 2
Thank you incognito.

Yes I do understand pin multiplexing. I am wondering if in fact, in the case of NPCS3, there are three lines internally connected to the SPI engine which will all assert simultaneously. Which line is connected to a pin is done according to taste. And does this lead to the possibility of having two (or all three) lines connected to pins? A scenario which is not useful of course.

My purpose of this thread is to get me some clarity in understanding.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: