San
Wed May 07 23:50:01 PDT 2008
Thank you very much, will try it. But we need to test in the o.s level,
right? Creating an handle to the parallel port driver and writing and
reading, i tried once just reading/writing the data line(failed). The other
signals are also be sync so as to work.
I will try your code, with base address of parallel port!!
"Suresh D.Madhu" wrote:
> you can use the followwing functions to read and write to the parallel port
> registers.
>
> BYTE ReadFromPP(void)
> {
> BYTE b;
> __asm
> {
> mov dx, DATA_PORT_ADDR
> in al, dx
> mov b, al
> }
> return b;
> }
>
> void WriteToPP( BYTE b)
> {
> __asm
> {
> mov al, b
> mov dx, DATA_PORT_ADDR
> out dx, al
> }
> }
>
> Hope this helps to you.
>
> "San" wrote:
>
> > I test the parallel port with giving print outs with X86 architecture only.
> > Is there anyway to test parallel ports without printer? Have anybody
> > developed some applications simple Leds??? Is it possible?
> >
> >
> > "Michel Verhagen (eMVP)" wrote:
> >
> > > The CETK test for parallel port is the way to go:
> > >
http://msdn.microsoft.com/en-us/library/aa934284.aspx
> > >
> > >
> > > Good luck,
> > >
> > > Michel Verhagen, eMVP
> > > Check out my blog:
http://GuruCE.com/blog
> > >
> > > GuruCE Ltd.
> > > Microsoft Embedded Partner
> > >
http://GuruCE.com
> > > Consultancy, training and development services.
> > >
> > > dirw wrote:
> > > > Dear sir,
> > > >
> > > > I use X86 architecture which has a parallel port to develop WINCE
> > > > platform.
> > > >
> > > > Do anyone have idea to test parallel port ?
> > > >
> > > > BR,
> > > > Wiles
> > >