Loading...
 

Timers

The PIA uses the same clock as the microprocessor so that one PIA cycle occurs for each machine cycle. The PIA can be set for one of four different "intervals", where each interval is some multiple of the clock (and therefore machine cycles). A value from 1 to 255 is loaded into the PIA which will be decremented by one at each interval. The timer can now be read by the microprocessor to determine elapsed time for timing various software operations and keep them synchronised with the hardware (TIA chip).

Capabilities

NamePurpose
$284INTIMTimer output (read only)
$294TIM1Tset 1 clock interval (838 nanosecond/interval)
$295TIM8Tset 8 clock interval (6.7 microsecond/interval)
$296TIM64Tset 64 clock interval (53.6 microsecond/interval)
$297T1024Tset 1024 clock interval (858.2 microsecond/interval)

see PIA