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: SAM3S PIO PDC registers
PostPosted: Fri Oct 08, 2010 10:56 am 
Offline

Joined: Thu Oct 07, 2010 3:45 pm
Posts: 6
I'm using the SAM3S-EK with a ATSAM3S4C. I want to use the PDC with the parallel capture to read data from an A2D. Table 27-4 says that the PDC registers start at offset 0x0168 - they usually start at offset 0x0100, so I've created my own definations for the registers.
This would put the PIOA_RPR at 0x400e0f68, which according to table 23-2 is R/W, but a simple test shows that it isn't.

Chris Wedge


Top
 Profile  
 
 Post subject: Re: SAM3S PIO PDC registers
PostPosted: Fri Oct 08, 2010 3:58 pm 
Offline

Joined: Thu Feb 25, 2010 5:02 pm
Posts: 88
Hi Chris -

I assume you are interfacing to a high-speed parallel ADC. If so, have you looked at the sample code at the atmel website?

There is an example project (PIO Parallel Capture "\sam3s-ek\examples\pio_capture") that may be helpful.
You will have to register to download the files.
See http://www.atmel.com/dyn/products/tools_card.asp?tool_id=4705

Regards,

_________________
Duane P. Fridley, IEEE CSDP
Viable Bytes, Inc.


Top
 Profile  
 
 Post subject: Re: SAM3S PIO PDC registers
PostPosted: Mon Oct 11, 2010 1:28 pm 
Offline

Joined: Thu Oct 07, 2010 3:45 pm
Posts: 6
I always like an update (well this time in a project anyway..)

The example is not that useful, we need to use the PDC, and the example is interrupt driven. However, it's nice to see the registers defined.

I found turning on the peripherial - add line

PMC_EnablePeripheral( ID_PIOA );

and now the PIOA->RPR register appears to be R/W.

Small program to follow ...

Chris


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: Google [Bot] and 4 guests


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: