A simple Turbo Pascal 4.0 program for millisecond timing on the IBM PC/XT/AT
1989; Springer Science+Business Media; Volume: 21; Issue: 3 Linguagem: Inglês
10.3758/bf03202808
ISSN1532-5970
Autores Tópico(s)Parallel Computing and Optimization Techniques
ResumoThe ffiM PC has become the de facto standard computer for use in psychology laboratories, and Turbo Pascal is a very popular language for this purpose.Unfortunately, no simple millisecond timing program is available in Turbo Pascal.Heathcote (1988) presented a Turbo Pascal program for this purpose, but it is complex and adversely affects the time of day (TOD) clock.Other programs are available only in BASIC and in assembly language, and therefore they cannot be incorporated directly into Turbo Pascal programs (e.g., see Buhrer, Sparrer, & Weitkunat, 1987; Graves & Bradley, 1987, 1988).In the present paper, a program is described that performs millisecond interval timing for the ffiM PC family of computers simply, neatly, efficiently, and accurately, entirely within Turbo Pascal 4.0.Millisecond timing.On the ffiM PC, XT, and AT, as well as compatibles, system timing (e.g., RAM refresh and updating the TOD clock) is performed by the Intel 8253 timer/counter provided on the motherboard.Regardless of the computer (i.e., PC, XT, or AT) and central processor speed (i.e., 4.77, 6, 8, 10, or 20 MHz), the 8253 timer/counter always operates at 1,193,182 Hz, with
Referência(s)