All times are UTC-06:00




Post new topic  Reply to topic  [ 1 post ] 
Author Message
PostPosted: Thu Jul 03, 2008 2:58 am 
Offline

Joined: Fri Jun 13, 2008 1:35 am
Posts: 5
Location: Germany
Hello again,

and I still got some newbie problems and kindly ask for any help or hints.

I configured my GPIO-pins as inputs and now I want to use 1 GPIO as an interrupt/clock source for my data transmissions.

I try to use this interrupt to read the values at the connected pins.
Right now I created a module which configures the pins and I use a /proc entry and perform my value collection operation when I am reading from this entry. This is somewhat problematic as I can not really time my read attempts to collect the values from the pin registers when I am certein new data arrived at all pins.

When initializing my module I could call request-irq() to link to my interrupt handler but I can't get my head around mapping the IRQ number to my interrupt pin (PSC6_0) and how to use this correctly.

In my handler I would like to check some values and collect other values from my pins. For my tests I used mpc52xx_find_and_map(...) and iounmap(...) to access these registers, but I have some concerns if this is fast enough. The data clock is 9MHz at which I would have to collect my values. The MPC5200 is clocked at around 400MHz so I think thats okay.

So in conclusion I would like to ask for some help in my attempts to capture the clock signal with an interrupt to collect my data bytes.

Any other help is equally appreciated.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 1 post ] 

All times are UTC-06:00


Who is online

Users browsing this forum: No registered users and 10 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

Search for:
Jump to:  
PowerDeveloper.org: Copyright © 2004-2012, Genesi USA, Inc. The Power Architecture and Power.org wordmarks and the Power and Power.org logos and related marks are trademarks and service marks licensed by Power.org.
All other names and trademarks used are property of their respective owners. Privacy Policy
Powered by phpBB® Forum Software © phpBB Group