Intel 8XC196MH, 8XC196MD manual Enabling the PWM Outputs, PWM Output Alternate Functions, Pwmcount

Models: 8XC196MD 8XC196MH 8XC196MC

1 579
Download 579 pages 24.12 Kb
Page 235
Image 235

8XC196MC, MD, MH USER’S MANUAL

PWM_COUNT

Address:

1FB6H

(read only)

 

Reset State:

00H

The PWM count (PWM_COUNT) register provides the current value of the decremented period

counter.

 

 

 

7

 

 

0

 

 

 

 

 

 

PWM Count Value

 

 

 

 

 

Bit

 

Function

 

Number

 

 

 

 

 

 

 

 

 

7:0

PWM Count Value

 

 

 

This register contains the current value of the decremented period counter.

 

 

 

 

 

Figure 10-5. PWM Count (PWM_COUNT) Register

10.5.3 Enabling the PWM Outputs

Each PWM output is multiplexed with a port pin, so you must configure it as a special-function output signal before using the PWM function. To determine whether the corresponding pin func- tions as a standard I/O port pin or as a PWM output you must make the proper selections by writ- ing to the WG_OUTPUT register (see Figure 10-6). Table 10-4 shows the alternate port function along with the register setting that selects the PWM output instead of the port function.

Table 10-4.PWM Output Alternate Functions

PWM Output

Alternate Port Function

PWM Output Enabled When

 

 

 

PWM0

P6.6

WG_OUT.11 = 1

 

 

 

PWM1

P6.7

WG_OUT.12 = 1

 

 

 

10-8

Page 235
Image 235
Intel 8XC196MH, 8XC196MD, 8XC196MC manual Enabling the PWM Outputs, PWM Output Alternate Functions, Pwmcount