Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linux-dvb] Re: ATSC Parameters



On Thu December 9 2004 12:19 am, Taylor Jacob wrote:
> > I will check my collection... Give me some time.. I will check it on
> > Friday, since office is closed.
> >
> > In the end where i drew a line was some chipsets do leave the ports in a
> > different state.. eventhough the so called initialization.
> >
> > This was during my experiments with the Microchip PIC 16F84 micro's and
> > the Parallel port.
>
> I had considered just using a PIC with USB or Serial and i2c on it and
> making a logger out of it, but realized it would add one more project that
> would keep me from the real task.. I will be curious what you dig up
> though..

This was what i did, i think 5 years back.. This was under DOS. I think i was 
having problems reading from LPT1... I don't know whether it would be useful 
for you. Anyway here it goes ... I don't know why this worked either.. I 
think on one nightout, this worked... Well after this i got lesser complaints 
for the stuff i worked upon.


#define 	Base		0x278
#define	Data			Base + 0
#define 	Status		Base + 1
#define 	Command		Base + 2


// Initialize Ports
	_outp (Command, ((_inp (Command)) & 0x00));		// Some crazy motherboards
	_outp (Data, ((_inp (Data) & 0x00)));			// have crazy initialization
	_outp (Command, ((_inp (Command)) | 0xFF));		// sequences. Cycle through
	_outp (Data, ((_inp (Data) | 0xFF)));			// one full sequence of
	_outp (Command, ((_inp (Command)) & 0x00));		// Filling and flushing the
	_outp (Data, ((_inp (Data) & 0x00)));			// the ports.
	
//	printf ("Port Initialization Complete. \n");


Well please do let us know how it goes through, maybe that could help somebody 
else.


Manu
>
> Taylor




Home | Main Index | Thread Index