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

Re: How to test parallel port in WINCE by Michel

Michel
Wed May 07 15:57:15 PDT 2008

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

Re: How to test parallel port in WINCE by San

San
Wed May 07 21:54:00 PDT 2008

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
>

Re: How to test parallel port in WINCE by SureshDMadhu

SureshDMadhu
Wed May 07 23:41:00 PDT 2008

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
> >

Re: How to test parallel port in WINCE by San

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
> > >

Re: How to test parallel port in WINCE by Michel

Michel
Wed May 07 23:59:34 PDT 2008

Sure, just hook up some leds to the data lines and see them blink.

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.

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

Re: How to test parallel port in WINCE by dirw

dirw
Thu May 08 02:15:29 PDT 2008

Dear Sir,

Thanks for your information.

Should I test ECP/EPP mode for parallel port ?
If yes, How should I do ?

I have an external board to connect with parallel port.
Because the external board had 7-LED to display digital and I also can
write AP to output data to parallel port.
Is it enough to verify parallel port ?

If I do NOT want to use external board to test parallel port , how
should I do ?

BR,
Wiles

Re: How to test parallel port in WINCE by Michel

Michel
Thu May 08 02:36:46 PDT 2008

> Should I test ECP/EPP mode for parallel port ?

I don't know, it's your board, you know how it is going to be used...

> If yes, How should I do ?

I have no experience with ECP/EPP or parallel port on Windows CE (it's
really old fashioned; they invented USB you know...)

> Is it enough to verify parallel port ?

Again, it is your board. I don't know what is a sufficient test. It all
depends on how the board will be used.

> If I do NOT want to use external board to test parallel port , how
> should I do ?

Maybe this excellent website will help you understand EPP/ECP etc:

http://www.beyondlogic.org/

Direct links:
http://www.beyondlogic.org/spp/parallel.htm
http://www.beyondlogic.org/epp/epp.htm
http://www.beyondlogic.org/ecp/ecp.htm
http://www.beyondlogic.org/pardebug/pdebug.htm


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,
>
> Thanks for your information.
>
> Should I test ECP/EPP mode for parallel port ?
> If yes, How should I do ?
>
> I have an external board to connect with parallel port.
> Because the external board had 7-LED to display digital and I also can
> write AP to output data to parallel port.
> Is it enough to verify parallel port ?
>
> If I do NOT want to use external board to test parallel port , how
> should I do ?
>
> BR,
> Wiles

Re: How to test parallel port in WINCE by dirw

dirw
Thu May 08 03:32:46 PDT 2008

Dear Sir,

Thanks for yiur information.

The parallel port will only connect to printer in windows XP.
The purpose for parallel port is printing data in windows XP.
Actually, I also do NOT know the purpose in WINCE.

Because I already can output data to 7-LED through Application, is it
enough to say "I already tested parallel port and it can support
printer under wince if printer have wince driver" ?

Re: How to test parallel port in WINCE by Dean

Dean
Thu May 08 08:30:00 PDT 2008

Well, you might consider actually printing if that is what you are going to
claim...

--
Dean Ramsier - eMVP
BSQUARE Corporation


"dirw" <dirwdirw.tw@yahoo.com.tw> wrote in message
news:353dca47-526b-4b33-97f0-00acc7a7ebf1@y18g2000pre.googlegroups.com...
> Dear Sir,
>
> Thanks for yiur information.
>
> The parallel port will only connect to printer in windows XP.
> The purpose for parallel port is printing data in windows XP.
> Actually, I also do NOT know the purpose in WINCE.
>
> Because I already can output data to 7-LED through Application, is it
> enough to say "I already tested parallel port and it can support
> printer under wince if printer have wince driver" ?