Re: Programming Parallel Port
mankind_at_work.com
Date: 07/17/04
- Next message: mankind_at_work.com: "Re: Programming Parallel Port"
- Previous message: mankind_at_work.com: "Re: PC based measurements"
- In reply to: Animesh Maurya: "Programming Parallel Port"
- Next in thread: mankind_at_work.com: "Re: Programming Parallel Port"
- Reply: mankind_at_work.com: "Re: Programming Parallel Port"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: mankind_at_work.com: "Re: Programming Parallel Port"
- Previous message: mankind_at_work.com: "Re: PC based measurements"
- In reply to: Animesh Maurya: "Programming Parallel Port"
- Next in thread: mankind_at_work.com: "Re: Programming Parallel Port"
- Reply: mankind_at_work.com: "Re: Programming Parallel Port"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|