Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
БЭМЗ полищук доки / Склад / Datasheet_LM3S6965.pdf
Скачиваний:
10
Добавлен:
21.12.2020
Размер:
6.13 Mб
Скачать

LM3S6965 Microcontroller

Register 4: PWM Output Inversion (PWMINVERT), offset 0x00C

This register provides a master control of the polarity of the PWM signals on the device pins. The PWM signals generated by the PWM generator are active High; they can optionally be made active Low via this register. Disabled PWM channels are also passed through the output inverter (if so configured) so that inactive channels maintain the correct polarity.

PWM Output Inversion (PWMINVERT)

Base 0x4002.8000

Offset 0x00C

Type R/W, reset 0x0000.0000

 

31

30

29

28

27

26

25

24

23

22

21

20

19

18

17

16

 

 

 

 

 

 

 

 

reserved

 

 

 

 

 

 

 

Type

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

Reset

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

 

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

 

 

 

 

 

reserved

 

 

 

 

PWM5Inv PWM4Inv PWM3Inv PWM2Inv PWM1Inv PWM0Inv

Type

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

R/W

R/W

R/W

R/W

R/W

R/W

Reset

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

Bit/Field

Name

Type

Reset

Description

31:6

reserved

RO

0x00

Software should not rely on the value of a reserved bit. To provide

 

 

 

 

compatibility with future products, the value of a reserved bit should be

 

 

 

 

preserved across a read-modify-write operation.

5

PWM5Inv

R/W

0

Invert PWM5 Signal

 

 

 

 

When set, the generated PWM5 signal is inverted.

4

PWM4Inv

R/W

0

Invert PWM4 Signal

 

 

 

 

When set, the generated PWM4 signal is inverted.

3

PWM3Inv

R/W

0

Invert PWM3 Signal

 

 

 

 

When set, the generated PWM3 signal is inverted.

2

PWM2Inv

R/W

0

Invert PWM2 Signal

 

 

 

 

When set, the generated PWM2 signal is inverted.

1

PWM1Inv

R/W

0

Invert PWM1 Signal

 

 

 

 

When set, the generated PWM1 signal is inverted.

0

PWM0Inv

R/W

0

Invert PWM0 Signal

 

 

 

 

When set, the generated PWM0 signal is inverted.

November 16, 2008

497

Preliminary

Pulse Width Modulator (PWM)

Register 5: PWM Output Fault (PWMFAULT), offset 0x010

This register controls the behavior of the PWM outputs in the presence of fault conditions. Both the faultinputsanddebugeventsareconsideredfaultconditions. Onafaultcondition,eachPWMsignal can be passed through unmodified or driven Low. For outputs that are configured for pass-through, the debug event handling on the corresponding PWM generator also determines if the PWM signal continues to be generated.

Fault condition control occurs before the output inverter, so PWM signals driven Low on fault are invertedifthechannelisconfiguredforinversion(therefore,thepinisdrivenHighonafaultcondition).

PWM Output Fault (PWMFAULT)

Base 0x4002.8000

Offset 0x010

Type R/W, reset 0x0000.0000

 

31

30

29

28

27

26

25

24

23

22

21

20

19

18

17

16

 

 

 

 

 

 

 

 

reserved

 

 

 

 

 

 

 

Type

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

Reset

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

 

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

 

 

 

 

 

reserved

 

 

 

 

Fault5

Fault4

Fault3

Fault2

Fault1

Fault0

Type

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

R/W

R/W

R/W

R/W

R/W

R/W

Reset

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

Bit/Field

Name

Type

Reset

Description

31:6

reserved

RO

0x00

Software should not rely on the value of a reserved bit. To provide

 

 

 

 

compatibility with future products, the value of a reserved bit should be

 

 

 

 

preserved across a read-modify-write operation.

5

Fault5

R/W

0

PWM5 Fault

 

 

 

 

When set, the PWM5 output signal is driven Low on a fault condition.

4

Fault4

R/W

0

PWM4 Fault

 

 

 

 

When set, the PWM4 output signal is driven Low on a fault condition.

3

Fault3

R/W

0

PWM3 Fault

 

 

 

 

When set, the PWM3 output signal is driven Low on a fault condition.

2

Fault2

R/W

0

PWM2 Fault

 

 

 

 

When set, the PWM2 output signal is driven Low on a fault condition.

1

Fault1

R/W

0

PWM1 Fault

 

 

 

 

When set, the PWM1 output signal is driven Low on a fault condition.

0

Fault0

R/W

0

PWM0 Fault

 

 

 

 

When set, the PWM0 output signal is driven Low on a fault condition.

498

November 16, 2008

Preliminary

LM3S6965 Microcontroller

Register 6: PWM Interrupt Enable (PWMINTEN), offset 0x014

This register controls the global interrupt generation capabilities of the PWM module. The events thatcancauseaninterruptarethefaultinputandtheindividualinterruptsfromthePWMgenerators.

PWM Interrupt Enable (PWMINTEN)

Base 0x4002.8000

Offset 0x014

Type R/W, reset 0x0000.0000

 

31

30

29

28

27

26

25

24

23

22

21

20

19

18

17

16

 

 

 

 

 

 

 

 

reserved

 

 

 

 

 

 

 

IntFault

Type

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

R/W

Reset

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

 

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

 

 

 

 

 

 

 

reserved

 

 

 

 

 

 

IntPWM2

IntPWM1

IntPWM0

Type

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

R/W

R/W

R/W

Reset

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

Bit/Field

Name

Type

Reset

Description

31:17

reserved

RO

0x00

Software should not rely on the value of a reserved bit. To provide

 

 

 

 

compatibility with future products, the value of a reserved bit should be

 

 

 

 

preserved across a read-modify-write operation.

16

IntFault

R/W

0

Fault Interrupt Enable

 

 

 

 

When set, an interrupt occurs when the fault input is asserted.

15:3

reserved

RO

0x00

Software should not rely on the value of a reserved bit. To provide

 

 

 

 

compatibility with future products, the value of a reserved bit should be

 

 

 

 

preserved across a read-modify-write operation.

2

IntPWM2

R/W

0

PWM2 Interrupt Enable

 

 

 

 

Whenset,aninterruptoccurswhenthePWMgenerator2blockasserts

 

 

 

 

an interrupt.

1

IntPWM1

R/W

0

PWM1 Interrupt Enable

 

 

 

 

Whenset,aninterruptoccurswhenthePWMgenerator1blockasserts

 

 

 

 

an interrupt.

0

IntPWM0

R/W

0

PWM0 Interrupt Enable

 

 

 

 

Whenset,aninterruptoccurswhenthePWMgenerator0blockasserts

 

 

 

 

an interrupt.

November 16, 2008

499

Preliminary

Pulse Width Modulator (PWM)

Register 7: PWM Raw Interrupt Status (PWMRIS), offset 0x018

This register provides the current set of interrupt sources that are asserted, regardless of whether they cause an interrupt to be asserted to the controller. The fault interrupt is latched on detection; itmustbeclearedthroughthe PWM Interrupt Status and Clear (PWMISC) register(seepage501). The PWM generator interrupts simply reflect the status of the PWM generators; they are cleared via the interrupt status register in the PWM generator blocks. Bits set to 1 indicate the events that are active; zero bits indicate that the event in question is not active.

PWM Raw Interrupt Status (PWMRIS)

Base 0x4002.8000

Offset 0x018

Type RO, reset 0x0000.0000

 

31

30

29

28

27

26

25

24

23

22

21

20

19

18

17

16

 

 

 

 

 

 

 

 

reserved

 

 

 

 

 

 

 

IntFault

Type

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

Reset

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

 

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

 

 

 

 

 

 

 

reserved

 

 

 

 

 

 

IntPWM2

IntPWM1

IntPWM0

Type

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

Reset

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

Bit/Field

Name

Type

Reset

Description

31:17

reserved

RO

0x00

Software should not rely on the value of a reserved bit. To provide

 

 

 

 

compatibility with future products, the value of a reserved bit should be

 

 

 

 

preserved across a read-modify-write operation.

16

IntFault

RO

0

Fault Interrupt Asserted

 

 

 

 

Indicates that the fault input is asserting.

15:3

reserved

RO

0x00

Software should not rely on the value of a reserved bit. To provide

 

 

 

 

compatibility with future products, the value of a reserved bit should be

 

 

 

 

preserved across a read-modify-write operation.

2

IntPWM2

RO

0

PWM2 Interrupt Asserted

 

 

 

 

Indicates that the PWM generator 2 block is asserting its interrupt.

1

IntPWM1

RO

0

PWM1 Interrupt Asserted

 

 

 

 

Indicates that the PWM generator 1 block is asserting its interrupt.

0

IntPWM0

RO

0

PWM0 Interrupt Asserted

 

 

 

 

Indicates that the PWM generator 0 block is asserting its interrupt.

500

November 16, 2008

Preliminary

Соседние файлы в папке Склад