SAM3S PIO PDC registers

Discussion around product based on ARM Cortex M3 core.

Moderators: nferre, ncollot

Posts: 6
Joined: Thu Oct 07, 2010 3:45 pm

SAM3S PIO PDC registers

Fri Oct 08, 2010 10:56 am

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
Posts: 90
Joined: Thu Feb 25, 2010 5:02 pm

Re: SAM3S PIO PDC registers

Fri Oct 08, 2010 3:58 pm

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 ... ol_id=4705

Duane P. Fridley, IEEE CSDP
Viable Bytes, Inc.
Posts: 6
Joined: Thu Oct 07, 2010 3:45 pm

Re: SAM3S PIO PDC registers

Mon Oct 11, 2010 1:28 pm

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 ...


Return to “SAM3 Cortex-M3 MCU”

Who is online

Users browsing this forum: No registered users and 6 guests