Source code
Calswr
Calswr is written in Borland Delphi 6 with addon libraries: Raize components 2.52, Developer, Express Grids, MemData and Printing Systems, and Comport and HtmlHelp.
I am happy to make the source code available to any interested user but you wont be able to compile without the addons, and these may set you back $700.
Installation uses Wise Installmaster 8.1
Help authoring uses DotCHM version 2.16.
PIC16F876 code
This was written using ME Labs PicBasic pro compiler
- The source code is in the Picswr subfolder.
- PicBasic Pro first compiles to generate assembler code which is then compiled to machine code (hex) using the MPASM assembler.
- The intermediate MPASM code is not particularly easy to modify as is full of Macro calls to MELabs library routines.
- I did consider using assembler ... but PICBasic is so much easier.
For example:
Evaluating the square root of (a * b / c) where a, b and c are 16 bit unsigned integers requires a 32bit/16bit division.
The PicBasic code is simply:
dummy = a * b
result = SQR DIV32 c
This calculation is needed in computing SWR. It would be much more complex to write in assembler !!