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  [ 6 posts ] 
Author Message
 Post subject: IO input rate problem!!!!!
PostPosted: Thu Aug 18, 2011 7:44 am 
Offline

Joined: Fri May 06, 2011 4:07 am
Posts: 17
Recently I need PIO of ATSAM9M10 to get large numbers of data,Time is limit,so I should enhance the sample rates of IO port,but I don't know how to configure the working speed of PIO controller.

If you know how to configure,please write to armboy@sohu.com.

Thank you for your attention.


Top
 Profile  
 
 Post subject: Re: IO input rate problem!!!!!
PostPosted: Thu Aug 18, 2011 1:24 pm 
Offline

Joined: Sat Oct 30, 2010 6:04 pm
Posts: 574
Consider using the external memory interface, and DMA.


Top
 Profile  
 
 Post subject: Re: IO input rate problem!!!!!
PostPosted: Fri Aug 19, 2011 2:35 am 
Offline

Joined: Fri May 06, 2011 4:07 am
Posts: 17
[quote="CptTitanic"]Consider using the external memory interface, and DMA.[/quote]
Hello,CptTitanic.Thanks for your reply.
I used to thihk about your method,like using ISI to transfer data streams directly to memory via DMA.But I don't know how to set a DMA channel and can't confirm the source address and dest address.Other peripherals don't have so pretty data-width.
Those result of that I need to use IO ports .


Top
 Profile  
 
 Post subject: Re: IO input rate problem!!!!!
PostPosted: Fri Aug 19, 2011 5:18 am 
Offline

Joined: Sat Oct 30, 2010 6:04 pm
Posts: 574
Then you're going to be stuck with lack luster performance. What's the GPIO toggle rate, 8 MHz? What kind of rates and response times are you look for?

I'm suggesting you put buffers or latches externally, or use an CPLD/FPGA. Don't implement software for things that are more efficient to do in hardware.


Top
 Profile  
 
 Post subject: Re: IO input rate problem!!!!!
PostPosted: Fri Aug 19, 2011 5:35 am 
Offline

Joined: Fri May 06, 2011 4:07 am
Posts: 17
Dear CptTitanic,I know your mean.
In fact,I use ATSAM9M10 to receive image data flows from FPGA,because FPGA doesn't have MAC ports to communicate with PC which is used to display pictures captured by FPGA.I need ARM chip play as a buffer or transform area.


Top
 Profile  
 
 Post subject: Re: IO input rate problem!!!!!
PostPosted: Fri Aug 19, 2011 3:26 pm 
Offline

Joined: Sat Oct 30, 2010 6:04 pm
Posts: 574
To be efficient you need to look at the peripherals built into the CPU, and the speeds they can support. Look at the block diagrams and clocking models, and evaluate if they can be configured into modes that would help you.

For instance if you can use a serial stream, try using SPI, or if the MMC/MCI interface would permit a 1/4/8-bit transfer mode. While you may need to operate them outside there normal functionality, the registers/modes can often be quite flexible.

Need to be using an external clock for the data, consider SPI slave mode.

Even if the interface isn't a perfect fit, you might be able to get them close enough to minimize the glue logic required to tie them together.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 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:  
cron