[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 264: mysqli_fetch_assoc(): Couldn't fetch mysqli_result
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 326: mysqli_free_result(): Couldn't fetch mysqli_result
Pete's QBASIC Site Discuss QBasic, Freebasic, QB64 and more 2021-09-23T20:58:21-05:00 http://www.petesqbsite.com/phpBB3/app.php/feed/topic/8276 2021-08-14T08:25:57-05:00 2021-08-14T08:25:57-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=39152#p39152 <![CDATA[Re: Parallelport communication.]]> I have a program that I want to access the printer port, not to print but to provide binary outputs. It works sometimes and sometimes won't. I know Windows redirects the printer port or something. This would be the standard 25 pin printer port. Thanks for any help. kc0nfs@arrl.net

Statistics: Posted by kc0nfs — Sat Aug 14, 2021 8:25 am


]]>
2021-09-23T20:58:21-05:00 2021-08-14T08:24:32-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=39151#p39151 <![CDATA[Re: Parallelport communication.]]> I have a program that I want to access the printer port, not to print but to provide binary outputs. It works sometimes and sometimes won't. I know Windows redirects the printer port or something. This would be the standard 25 pin printer port. Thanks for any help.

Statistics: Posted by kc0nfs — Sat Aug 14, 2021 8:24 am


]]>
2019-10-18T00:06:17-05:00 2019-10-18T00:06:17-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=38588#p38588 <![CDATA[Re: Parallelport communication.]]>
http://wearcam.org/seatsale/programs/ww ... rallel.htm

Parallel port has 3 modes of operation but for greatest compatibility, you want the SPP (standard parallel port) setup. I program microcontrollers with the parallel port and I use this setup.

Next, you need to learn the I/O addresses it uses. If your PC is normal, then the address is likely 0x378 for the data lines so you can output bits to the data lines with:

out &H378,d%

where d% is the variable representing the value you want to send out to the port.
you can use inp() to get data.

Now if you really want to test the hardware to make sure data is correct, then make a simple circuit.

Connect a data line of the port to the cathode of an LED then anode of LED to 1K resistor then other end of resistor to a regulated 5V power supply. you can get away with batteries or even USB power.

Now as you run your program, play with the values for the d% variable and see which data lines light up the LED and which ones dont.

My point.... the best answer here is to experiment. But I would recommend buying an add-on board if possible instead of using your on-board parallel port because once a parallel port is damaged, it is damaged for good.

Statistics: Posted by mikefromca — Fri Oct 18, 2019 12:06 am


]]>
2018-08-03T09:01:46-05:00 2018-08-03T09:01:46-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=31160#p31160 <![CDATA[Re: Parallelport communication.]]>
https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0

Statistics: Posted by burger2227 — Fri Aug 03, 2018 9:01 am


]]>
2018-08-02T08:46:20-05:00 2018-08-02T08:46:20-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=31158#p31158 <![CDATA[Re: Parallelport communication.]]> Statistics: Posted by chucker — Thu Aug 02, 2018 8:46 am


]]>
2018-08-02T07:25:42-05:00 2018-08-02T07:25:42-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=31157#p31157 <![CDATA[Re: Parallelport communication.]]> Statistics: Posted by chucker — Thu Aug 02, 2018 7:25 am


]]>
2018-08-02T07:24:44-05:00 2018-08-02T07:24:44-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=31156#p31156 <![CDATA[Parallelport communication.]]>
So, I am in the lucky situation that i have just revived an old IBM machine. However, the problem with the machine is, that it has only IBM MCA card expansions, the harddrive is ESDI and the only communication options it has, is a DB25 parallelport and a DB25 Serial port. And also a PS/2 port (of which its famous). My disk-drive on it, is broken..

So, I have DOS 5.2, QBasic - and a lot of potential time.

My thoughts were to make a serial or parallel-port transferring programming, in Basic, both on the P70 and on the sending machine - my 200mhz DOS-gaming machine. That way I could probably send over some smarter programs, than the one I plan to build.

So, one of the things I thought of building, and im not sure if this is possible, is a small EPROM-adapter. And arduino holds address-pin on an EEPROM, the data pins are wired to the parallelport D0-7. The arduino listens on one of the parallel pins, lets say Linefeed, when this is changes to high, the arduino increments the address lines by +1. This changes the eprom output - which can be read by the PC and saved. This will probably work, but I feel its a dumb solution.

Another way would simply be to use my 200mhz DOS gaming machine, to make a sending-program, however Im not really all that well traversed in "real parallel talk" - and especially not in qbasic.

Can anyone help?

Statistics: Posted by chucker — Thu Aug 02, 2018 7:24 am


]]>