How to use the time in the 6530/6532

43 views
Skip to first unread message

Hans Otten

unread,
Aug 11, 2025, 6:15:07 AMAug 11
to PAL 6502 computer
When I acquired a KIM-1 Rev A, obviously sold by NCE/Compumart, it came with some documentation that may interest any programmer working with the MOS Technology (R)RIOT 6530 and 6532. The timer description the datasheet is a bit vague about how to use. What may help is the document 'KIM-1 Application Note 2 Interval Timer Operation' by MOS Technology. A document with listings of KIM-1 programs called 'KIM-1 Application Programs CT1' illustrate the usage of the timer in interrupt mode. You find the documents here:

Eduardo Casino

unread,
Aug 11, 2025, 7:55:57 AMAug 11
to PAL 6502 computer
This is great!

I've been wanting to check for a while whether 6530 substitutes like mine, based on Ruud Baltissen's design, handle interrupts properly. I saw some time ago on the VCF forum that someone (I can't quite remember who) claimed they didn't, and that he had fixed it in his own design, which he didn't publish.

Stefan S

unread,
Aug 11, 2025, 8:01:36 AMAug 11
to PAL 6502 computer

Only way to fix that is to patch the code or build a FPGA replacement.
There are rumors that there is at minimum one working FPGA replacement.

Stefan S

unread,
Aug 11, 2025, 8:04:34 AMAug 11
to PAL 6502 computer

Mit freundlichen Grüßen
Stefan Szillat 

From: pal...@googlegroups.com <pal...@googlegroups.com> on behalf of Stefan S <szi...@gmail.com>
Sent: Monday, August 11, 2025 2:01:36 PM
To: PAL 6502 computer <pal...@googlegroups.com>
Subject: Re: How to use the time in the 6530/6532
 
--
You received this message because you are subscribed to the Google Groups "PAL 6502 computer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pal6502+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pal6502/48402f31-db36-4f51-9e93-2d7986fae4c1n%40googlegroups.com.

Eduardo Casino

unread,
Aug 11, 2025, 8:07:22 AMAug 11
to PAL 6502 computer
There is one, indeed:


But I'd also like to understand what the problem is with current designs. AFAIK, the VCF forum member claimed to have solved it with his.

Hans Otten

unread,
Aug 11, 2025, 8:13:25 AMAug 11
to PAL 6502 computer

Eduardo Casino

unread,
Aug 11, 2025, 8:20:24 AMAug 11
to PAL 6502 computer
Yup, that is the hardware, but Paul Sajna (sajattack) did the gateware!

Stefan S

unread,
Aug 11, 2025, 8:28:51 AMAug 11
to PAL 6502 computer
Hans can you please describe the timing issues a bit further?
I know they are there but I got the impression they are minor and can be neglected in most of the cases.
As they result in minor timing deviations.
In simpler words the differences are measure able but not relevant in most applications.
I could be totally wrong as I do not know which software cares about that beside the alarm clock.
Best regards
Stefan

Hans Otten

unread,
Aug 11, 2025, 12:31:29 PMAug 11
to PAL 6502 computer
I am not aware of timing issues besides in the GS65SC32 variant one clock tick off sometimes.
The 6530 timer is AFAIK identical to the 6532 timer.
The problem fixed in the FPGA by Paul Sajna was about interrupts not happening.

The times is used in the KIM-1 cassette routines to time the audio pulses. The monitor is relying on timed loops  for the TTY routines.
There are more examples, like the programs in the CT document this topic is about.

Reply all
Reply to author
Forward
0 new messages