Digi NS9215 manual D3118 Reserved D1716

Models: NS9215

1 517
Download 517 pages 25.29 Kb
Page 169
Image 169

S Y S T E M C O N T RO L M O D U L E

. . .

Timer 6–9 Control registers. .

Register

31

30

29

28

27

26

25

24

23

22

21

20

19

18

17

16

Reserved

TM2

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Timer

Int

Up

Bit

Rel

TE

 

Cap Comp

 

Debug

Int Clr

 

 

TCS

 

 

Mode

 

 

 

 

 

 

Sel

Down

Timer

Enbl

 

 

 

 

 

 

 

 

 

 

 

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Register bit

assignment

Bits

Access

Mnemonic

Reset

Description

 

 

 

 

 

 

 

 

D31:18

N/A

Reserved

N/A

N/A

 

 

 

 

 

 

 

 

D17:16

R/W

TM2

0x0

Timer mode 2

 

 

 

 

 

00 Mode as set by timer mode 1

 

 

 

 

 

01 PWM mode, using High, Low, and Step

 

 

 

 

 

 

registers

 

 

 

 

 

10 Clock mode, toggle the timer output at the

 

 

 

 

 

 

terminal count to create a clock output

 

 

 

 

 

11

Reserved

 

 

 

 

 

 

 

D15

R/W

TE

0x0

Timer enable

 

 

 

 

 

0

Timer disabled

 

 

 

 

 

1

Timer enabled

 

 

 

 

 

 

 

D14:12

R/W

Cap Comp

0x0

Capture and compare mode functions

 

 

 

 

 

Applicable only when in 16-bit timer mode.

 

 

 

 

 

000

Normal operation

 

 

 

 

 

001

Compare mode, toggle output on match

 

 

 

 

 

010

Compare mode, pulse output on match

 

 

 

 

 

011

Capture mode, on input falling edge

 

 

 

 

 

100

Capture mode, on input rising edge

 

 

 

 

 

101

Capture mode, on every 2nd rising edge

 

 

 

 

 

110

Capture mode, on every 4th rising edge

 

 

 

 

 

111

Capture mode, on every 8th rising edge

 

D11

R/W

Debug

0x0

Debug mode

 

 

 

 

 

0 Timer enabled in CPU debug mode

 

 

 

 

 

1 Timer disabled in CPU debug mode

 

 

 

 

 

 

 

D10

R/W

Int Clr

0x0

Interrupt clear

 

 

 

 

 

Clears the timer interrupt. Software must write a 1,

 

 

 

 

 

then a 0 to this location to clear the interrupt.

www.digiembedded.com

169

Page 169
Image 169
Digi NS9215 manual D3118 Reserved D1716