Pb-tim2 user’s manual chapter 4 programming – Kontron PB-TIM2 User Manual

Page 23

Advertising
background image

PB-TIM2 User’s Manual

Chapter 4 Programming

• Mode 0 & Mode 1 :

Defines the timer mode

Mode

Value

Function

0

0

Stops on 0 or (B) event

0

1

Ring Counter

1

0

Counts down, input (A) loads
counter

1

1

Counts up, input (A) used as a
strobe

• Reload :

Defines timer mode

0 does not reload

1 reloads on 0

• Output :

Defines output operation

0 passive if 0 in timer

1 toggles on timerr 0 detection

4.2.3 Channel Interrupt Pending Register

Read 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 means an interrupt pending on MATCH

• Gate :

A 1 in this location means an interrupt pending on GATE input (B)

• Zero :

A 1 in this location means an interrupt pending on zero crossing

• Trig :

A 1 in this location means an interrupt pending on TRIG input (A)

July 30, 1997

© 1996 PEP Modular Computers

Page 4-3

Advertising