RTFM, eh? Good one, Jim! THANK YOU.
Amazingly now we just sent data across the parallel port for the first time!
Our ADC vendor knows of another group that completed this same port in 2008,
and now we are very close to having it working also!
--- In Jim Jackson <> wrote:
>
>
>
>
> On Fri, 11 Feb 2011, Joel Morgan wrote:
> > >
> > > if( argc >=2 ) {
> > > printf( "Configuring port\n" );
> > > *PFDDR = 0x0;
> >
> > If this is on a ts7260 you need to do a read-modify-write when changing
> > the port f control registers
>
> Let's just quote the ts7260 manual shall we?
>
> "DIO_8 is accessed via bit 1 of Port F in the EP9302. The Port F data
> register is at address location 0x8084_0030. The DDR address for this port
> is location 0x8084_0034.
>
> The Pin 4 of the DIO1 Header, in the default configuration, is accessed via
> bit 0 of Port C in the EP9302. The address location 0x8084_0008 is Port C
> Data Register and 0x8084_0018 is Port C Directon Register.
>
> When accessing these registers, it is important not to change the other bit
> positions in these Port F registers. Other DIO1 Port functionality, used
> for dedicated TS-7260 functions, utilize these same control registers. All
> accesses to these registers should use read-modify-write cycles."
>
> >
> > > *GPIOFIntType1 = 0xffffffff;
> > > *GPIOFIntEn=0x0; /* all ffff's out of desperation */
>
> That is NEVER an excuse :-)
> And yes I've known that sort of desperation.
>
> > > *GPIOFIntType2 = 0x0;
> > > printf( "PFDR=0x%x PFDDR=0x%x GPIOFDB=0x%x GPIOFIntEn=0x%x
> > > GPIOFIntType1=0x%x GPIOFIntType2=0x%x\n", *PFDR, *PFDDR, *GPIOFDB,
> > > *GPIOFIntEn, *GPIOFIntType1, *GPIOFIntType2 );
> > > }
> > >
> > > close(fd);
> > > return 0;
> > > }
> >
> >
> >
> > --
> > --
> > Joel R. Morgan
> > Morgan Millwright Services, Inc.
> > Linux User #504110 http://counter.li.org/
> >
> >
>
------------------------------------
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/
|