Timer interrupt frequency (50Hz vs 60 Hz)
Juan Castro via Coco <coco-uNHYcr1XS/wmlAP/[email protected]>
| Newsgroups | gmane.comp.hardware.tandy.coco |
|---|---|
| Message-ID | <CAGhS81GXHhDNgaX4T2H0u9djbrkJo+UAfTvOxMN_cec4hV7ckQ@mail.gmail.com> |
The timer interrupt hits 60 timer per second in CoCos made in the Americas and a couple of other places, and 50 Hz in Europe and elsewhere. This means if I want to count seconds with BASIC's TIMER function, I need to be aware which kind of CoCo I have, 50Hz or 60Hz. Is there a way to find out which frequency I have by software? I just thought of a horrid solution: count how many times a loop ran between two interrupts, and apply some tolerance. Of course, I'd have to set CPU frequency to baseline 0.89 MHz beforehand. Get typical values and apply some tolerance. Do I really need to do that? Juan Castro Enviado do meu Olivetti Programma 101 http://retropolis.com.br -- Coco mailing list Coco-uNHYcr1XS/wmlAP/[email protected] https://pairlist5.pair.net/mailman/listinfo/coco