ts-7000
[Top] [All Lists]

Re: [ts-7000] IRQ 7 by the zillions ?

To:
Subject: Re: [ts-7000] IRQ 7 by the zillions ?
From: Clark Dunson <>
Date: Wed, 26 Jan 2011 09:33:12 -0800


Thanks Kevin, we were hoping it was something like that.
I presume I'll find all of this worked out in 8250_ts_ser1.c
and family?  I'll research the gpio stuff from Matthieu.

We decided yesterday to create a new module, "ts_ser2" that
the parport_pc module depends on.  In this way, the interface
to parport_pc in kernel and user land remains the same.  This
new module, will also handle the TS-SER2 serial ports, and 
optionally create /dev/lp0.  My CTO wants to order a whole bunch 
of these TS-7260 systems very soon,  but he won't unless we can 
demonstrate the ADC on the parallel port.

Thanks again -

On Jan 25, 2011, at 6:37 PM, Kevin Cozens wrote:

 

Clark wrote:
> We have 2.6.29-ts, and notice that the IRQ counts in /proc/interrupt go
> absolutely wild when we attempt to insert a 0.2 second, TTL/CMOS level
> signal onto pin A21 of the PC104 connector of the TS-7260.
>
> When the square wave voltage goes high, the system load goes up so much
> that the shell freezes until the voltage drops, at which time the count
> in /proc/interrupts has jumped like it does each time the voltage goes to
> 5, by about 397,000 in 0.2 seconds!!

I don't know the 7260 but I have used interrupts in a 7250 board. Based on
your description it sounds like you have the interrupt on the board set to
be level sensitive where you really want it set to generate interrupts on a
signal edge.

On a TS-7250 the key two lines for setting up the interrupt was:

#define GPIOFIntType1 (gpio_ptr + 0x4C)
#define GPIOFIntType2 (gpio_ptr + 0x50)

writeb (readb (GPIOFIntType1) | FLOW, GPIOFIntType1); /* Int on edge */
writeb (readb (GPIOFIntType2) & ~FLOW, GPIOFIntType2); /* Rising edge */

gpio_ptr points to the base address of the GPIO registers.




__._,_.___


Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: =Email Delivery: Digest | m("yahoogroups.com?subject","ts-7000-fullfeatured");=Change Delivery Format: Fully Featured">Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | =Unsubscribe

__,_._,___
<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU