Chapter 4 programming pb-tim2 user’s manual – Kontron PB-TIM2 User Manual
Page 24

Chapter 4 Programming
PB-TIM2 User’s Manual
4.2.4 Channel Interrupt Clear Register
Write Only Register
Channel
0
1
2
Address
$09
$29
$49
Bit
7
6
5
4
3
2
1
0
Function
Trig
Zero
Gate
Match
After Reset
0
0
0
0
Where •
Match :
A 1 in this location will clear an interrupt pending on MATCH
• Gate :
A 1 in this location will clear an interrupt pending on GATE input (B)
• Zero :
A 1 in this location will clear an interrupt pending on zero crossing
• Trig :
A 1 in this location will clear an interrupt pending on TRIG input (A)
4.2.5 Channel Interrupt Authorization Register
Write Only Register
Channel
0
1
2
Address
$11
$31
$51
Bit
7
6
5
4
3
2
1
0
Function
Trig
Zero
Gate
Match
After Reset
0
0
0
0
Where •
Match :
A 1 in this location authorizes an interrupt on MATCH
• Gate :
A 1 in this location authorizes an interrupt on GATE input (B)
• Zero :
A 1 in this location authorizes an interrupt on zero crossing
• Trig :
A 1 in this location authorizes an interrupt on TRIG input (A)
4.2.6 Prescaler Value
Write Only Register
Channel
0
1
2
Address
$15
$35
$55
Bit
b7
b6
b5
b4
b3
b2
b1
b0
After Reset
0
0
0
0
0
0
0
1
After reset, the default value for b0 is 1; if all the bits are cleared (0) then the prescaling factor is 256.
Page 4-4
© 1996 PEP Modular Computers
July 30, 1997