Programmable timer  TM-232
 

Updated: December 27, 2005

System: KSP-2

Driver: timers.dll (9 KB)
Testing program: tm232.exe (337 KB) | tm232.ini (1 KB) | tm232.hlp (6 KB)


Elements of the timer

- 32-bit binary counter
- quartz generator f 10 MHz
- divider f/100
- address decoder
- start/stop selector



Programming
 
Address Write Read
132
0..255: Stop counter Counter: bits 0-7
133
0..255: Start counter Counter: bits 8-15
134
0..255: Reset counter Counter: bits 16-23
135
Not used Counter: bits 24-31

Address Base + 0 should be read as the first. Reading of this address causes writing of the counter to the output register. Low significant bit (LSB) of the counter has value 10 µs.


Interface address:

Base address of the interface is selected by 6-stage binary selector. Sections 1..6 set  the address lines A7..A2. State ON = 0 and state OFF = 1.

Typical address of the timer 132dec ($84). Binary selector: 1: OFF, 2: ON, 3: ON, 4: ON, 5: ON, 6: OFF.