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