Re: Programming Parallel Port

mankind_at_work.com
Date: 07/17/04


Date: Sat, 17 Jul 2004 21:41:47 +1200

On 12 Jul 2004 08:36:42 -0700, animesh_m@eudoramail.com (Animesh Maurya) wrote:

>Hi all,
>I'm learning basics for parallel port interfacing.
>Please see this link (program and schematic on the same page)
>http://www.geocities.com/animesh_m/led_flash.jpg
>Here a program is written in C, which blinks the LED at Data 0 (Pin2),
>when Busy (Pin11) goes to logic zero.
>Port address is alright, but unfortunately when I switched on the
>supply LED started glowing irrespective to the logic level at pin11
>(Busy).
>Please help me to figure out the fault.
>Thanks
Further to my reply under messages "PC based Measurements"
here is a sample of code to write to the P.Port using 'io.dll' and Purebasic.

1 PortNum.l = $378 ; LPT1
2
3;- (check library file open)
4 LibOpen.l = OpenLibrary(1,"io.dll")
5 If LibOpen = 0
6 End
7 EndIf
8
9 CallFunction(1,"PortOut", PortNum,$080) ; write 80h to port 378h
10 End



Relevant Pages

  • Programming Parallel Port
    ... I'm learning basics for parallel port interfacing. ... when Busy (Pin11) goes to logic zero. ...
    (sci.electronics.basics)
  • Re: Programming Parallel Port
    ... > I'm learning basics for parallel port interfacing. ... > when Busy (Pin11) goes to logic zero. ...
    (sci.electronics.basics)
  • Re: Programming Parallel Port
    ... >I'm learning basics for parallel port interfacing. ... >when Busy (Pin11) goes to logic zero. ... Freeware for the Palm with NS Basic source code: http://nsb.jecarter.com ...
    (sci.electronics.basics)