Digi NS9215 manual S i c P W M f u n c t i o n, Bit mode options

Models: NS9215

1 517
Download 517 pages 25.29 Kb
Page 144
Image 144

16-bit mode options

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

Basic PWM function

Interrupt enable

Concatenate to up-stream timer/counter; that is, use up-stream timer/counter’s overflow/underflow output as clock input

Reload enable Basic PWM function

Enhanced PWM functionality (timers 6–9) Quadrature decoder function (timer 5)

32-bit or 16-bit operation

These options are available in 16-bit mode:

Capture mode. Capture the counter value on the rising or falling edge of an external event and interrupt the CPU.

Compare mode. Interrupt the CPU when the counter value is equal to the Match register.

B a s i c P W M f u n c t i o n

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Any of the timer/counters can be configured to provide a basic PWM function. Each PWM function requires concatenating two timer/counters, resulting in four PWM outputs. One of the timer/counters controls the pulse width and the other controls the period. The basic PWM function is output through GPIO through functions labeled PWM Ch N.

Functional block This diagram illustrates the basic PWM function: diagram

Timer/Counter 0 pulse width control

Timer/Counter 1

period control

 

PWM 0

pwm out 0

pulse width control

period control

pwm out 0

144Hardware Reference NS9215

Page 144
Image 144
Digi NS9215 manual S i c P W M f u n c t i o n, Bit mode options