This document provides technical documentation and assembly code for a software patch designed to enable FOCAL-W programs to interface with the LINC-8 analog-to-digital (A-D) converter.
Summary of Functionality:
- Usage: The patch allows users to sample A-D channels within FOCAL using the function
SET A=FADC (K), where "K" is the decimal channel number.
- Data Range: It returns values between -256 and +256 (representing -1V to +1V).
- Performance: Each function call takes approximately 10 milliseconds, resulting in a maximum sampling rate of 100 samples per second.
- Extensibility: The documentation notes that the patch can be modified to execute single LINC instructions by designating a new function, FNEW, and updating the FNTABF table.
- Updates: The document includes code corrections for memory addressing issues (specifically addressing location 5307) and provides a renumbered version of the program to ensure compatibility with FOCAL 1969. Users are advised to answer "No" to extended function prompts during the initial FOCAL dialogue before applying these patches.