Delphi and Electronics

A section on programming (with Delphi/FreePascal) the PC with devices attached to USB. parallel and serial port.
A PC is such a dull device. With my other computers it is so much fun to control other devices, especially the 6502 SBC’s are great for that.

What would be great is to let the PC talk to a SBC, with something faster than a serial port. Or have the PC control the SBC via that serial port with a program much more intelligent that hyperterminal.

So I have been looking lately at ways to get something done with that.
Pascal as programming language, Delphi 7 is what I have. Good books, lots of information on the internet very stable and a functional very rich version. This should also work on Freepascal now.

First program is TEST LPT. Gives access to all pins of the parallel interface, good for testing. I learned a lot, I/O port access, all the visible things, event driven programming, object orientation, make a help file, add a menu, add an installer. All the essential things to create a professional program. I know how to program for some decades now, I have now learned to do that in Delphi’s rich visual environment.

Installation programs are made with the excellent Inno Setup.
I/O port access is made with DLPORTIO, which works fine under WIndows 32 bit.

There is now a version of the inpout libraryDLPORTIO (local copy), usable from Delphi 7 as I have shown before, also for 64 bit (Windows 7 and 8.1). From Version 1.0.0.7, InpOut provides basic DLPortIO compatibility, for use with the programs presented here: take the 32bit DLL (in \Win32) and rename it to DLPortIO.dll

See the menu on the left for ports, programs and electronics.

Delphi, 1998. See my travel photo websites!

Home

News

Additions to the Jim Welsh pages, Queen’s University Belfast and Emerate Professor at The University of Queensland Brisbane, School of ...

Read More

Apple Lisa Pascal compiler sources

I found an archive with the source of the early Lisa Pascal by Silicon Valley Software. The archive contains images of ...

Read More

Pascal-VU compiler

Pascal-VU compiler

During my study at the VU Amsterdam in 1979, 1980 I worked with the Pascal-VU compiler. A full ISO standard ...

Read More

Pascal-M updates

Pascal-M updates

New developments for Pascal-M: Pascal-M for Flex OS on 6809 , 1980, source of compiler (in Pascal-M) and intepreter (6809 assembler ...

Read More

New version of the Pascal-M system 2K1

New version of the Pascal-M system 2K1

New version of the Pascal-M system, run Pascal programs on the KIM-1. Use it on a KIM-1 and cross compile on ...

Read More


DSC_3541
This site is about my experience with the Wirth school of languages, based on the ideas and implementations of Prof Niklaus Wirth, Kenneth Bowles, Per Brinch Hansen, colleagues, and their students. And my experience with the various variants, from the P2 and P4 compilers originating in Zürich ETH, via UCSD Pascal P-System to the Borland compilers and Modula and Oberon systems. All applicable to small computers and device control.

On this website you will find information on Pascal for small machines, like Wirth compilers, the UCSD Pascal system, many scanned books and other files on UCSD Pascal, Pascal on MSX and CP/M, Delphi programming on PC, Freepascal and Lazarus on Windows and Raspberry Pi, Oberon systems. Many sources of early Pascal compilers! And last but not least my Pascal-M system!

On this site you will information on (see the menu on the right!)
Standard Pascal and Validation
Niklaus Wirth
Edsger Dijkstra
Per Brinch Hansen
Ca.A.R Hoare
Jim Welsh
Pascal Px descendants like P5 and Pascal-M
UCSD Pascal
– Other Pascal articles like Freepascal on Raspberry Pi, Turbo Pascal and Delphi and electronics

Timeline of my exposure to the Wirth language and OS and systems family, 5 years as student, 10 years as software engineer, hobby, 40 years as the way of programming!

  • WIRTH (1)1970- Pascal compilers, the P2-P4 compilers, Pascal-S, Pascal-VU (the forerunnner of the Amsterdam Compiler Kit), Andrew Tanenbaum, Professor R.P  van de Riet.
  • 1979 – Pascal-M
  • 1980 – UCSD P-System, HP Pascal 1000
  • 1983 – RSX-11M VMS Pascal
  • 1985 Turbo Pascal, , 10 years VAX/VMS Pascal programmer, teacher of the Teleac support course Pascal, teacher and examinator Exin/Novi T5 Pascal
  • 1990 – Turbo Pascal 3 on CP/M and MS DOS to Delphi on Windows
  • 2010 – Freepascal + Lazarus on Windows and Linux