--- title: "Analog-to-Digital Sampling Routine for the TS1000" type: "article" slug: "analog-to-digital-sampling-routine-for-the-ts1000" url: "http://localhost/article/analog-to-digital-sampling-routine-for-the-ts1000/" markdown_url: "http://localhost/article/analog-to-digital-sampling-routine-for-the-ts1000.md" published_at: "2026-03-15T01:05:48+00:00" modified_at: "2026-03-15T01:05:49+00:00" featured_image: url: "http://localhost/wp-content/uploads/2022/04/20230809-041332.jpg" excerpt: "An 8-byte Z80 machine code routine stored in a REM line for use with the ZEBRA Analog-to-Digital converter, suitable for low-speed sampling (once every several seconds). The disassembled code reads a specified port, delays for A-to-D conversion, and returns the result in the accumulator. A sample 10-reading BASIC wrapper is included." category: - name: "Timex Sinclair Users Group Mile High Chapter Newsletter" slug: "timex-sinclair-users-group-mile-high-chapter-newsletter" taxonomy: "category" url: "http://localhost/category/periodicals/timex-sinclair-users-group-mile-high-chapter-newsletter/" post_tag: - name: "Machine language programming" slug: "machine-language" taxonomy: "post_tag" url: "http://localhost/tag/machine-language/" - name: "TS 1000" slug: "ts1000" taxonomy: "post_tag" url: "http://localhost/tag/ts1000/" - name: "Type-in program" slug: "type-in-program" taxonomy: "post_tag" url: "http://localhost/tag/type-in-program/" model: - name: "Timex/Sinclair 1000" slug: "ts-1000" taxonomy: "model" url: "http://localhost/model/ts-1000/" indiv: - name: "Frank Holland" slug: "frank-holland" taxonomy: "indiv" url: "http://localhost/indiv/frank-holland/" publication_r: id: 39264 title: "Timex Sinclair Users Group Mile High Chapter Newsletter" type: "periodical" url: "http://localhost/periodical/timex-sinclair-users-group-mile-high-chapter-newsletter/" authors_r: - name: "Frank Holland" slug: "frank-holland" taxonomy: "indiv" url: "http://localhost/indiv/frank-holland/" issues_articles: - id: 50283 title: "Timex Sinclair Users Group Mile High Chapter Sep 1987" type: "issue" url: "http://localhost/issue/timex-sinclair-users-group-mile-high-chapter-sep-1987/" pages: "3" pubdate: "Sep 1987" archive_link: false --- An 8-byte Z80 machine code routine stored in a REM line for use with the ZEBRA Analog-to-Digital converter, suitable for low-speed sampling (once every several seconds). The disassembled code reads a specified port, delays for A-to-D conversion, and returns the result in the accumulator. A sample 10-reading BASIC wrapper is included.