Hi there,
I am trying to measure velocity, using pulses. But I do not know how
to use de interrupt of XDIO2, I mean , I would like to have a interrupt
each time a new value is set in the register.
I am using XDIO2 DIO9 with the following configuration:
iReturn = adc_allocate_resource_pwm(&xdio2,0x72000044,0x04,"ENCODER");
initPulseTimer (&xdio2,9,0,PULSE_PERIOD_HIGH);
setClockSpeed(&xdio2,0);
This is a Kernel module, and I use another interrupt pretty well. As
follow, but I could wonder wich is the equivalent of #51 for this
interrput.
iResult = request_irq(/*51*/TC3INTR, adc_hw_timer_interrupt, /*0*/
SA_INTERRUPT, "adc_timer", NULL);
Regards
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|