PDA

View Full Version : Accessing the parallel port



Stephen Coates
12th January 2009, 04:31
I am yet to do any programming on the Amiga, but I thought that if I do, this might be a good place to start.

The project I am working on at college, to put it simply, is to make an analogue to digital converter circuit which will connect to the parallel port on an IBM PC. Currently I have this working on a bidirectional port (8 bit ADC's data outputs connected directly to the data inputs on the parallel port), but soon will be changing this so it will go in as two nibbles through 4 of the 5 status inputs.

As the Amiga has a bidirectional parallel port, I thought it could be possible to also have this working on the Amiga. The programme I have is written using Microsoft's QuickBasic on MS-DOS. I expect that being BASIC, alot of the programme would be the same, or very similar on the amiga, but being a completely different computer, the addresses of the parallel port are likely to be different to that of the PC, and the BASIC commands to access it might also be different.

I was wondering if anyone could provide any information on programming the parallel port on the amiga using BASIC. And if so, what BASIC languages do you all recomend for the Amiga?

Thanks
Steve

Harrison
12th January 2009, 08:14
Blitz basic should be good for this.

What will you actually be using the DAC for?

Stephen Coates
12th January 2009, 09:13
Blitz basic should be good for this.

What will you actually be using the DAC for?

Should be able to use Blitz Basic. Motorolin said on amiga.org that he had used Blitz basic to control a parallel port relay board. I will just have to find a copy with a manual.

I will be using the ADC for measuring anything that outputs a voltage between 0 and 5v. My main application is temperature. I intend to make a temperature sensing circuit with an LM335 IC. Then I can have he computer tell me what the temperature is and hopefully save this data to disk. Other things can also be measured with it. The data outputs on the parallel port can then be used to control any devices that are connected to them.

Buleste
12th January 2009, 09:40
Just found these (http://aminet.net/search?query=parallel+port) on Aminet. Hope you find some of them some use.