Intel 8XC196MC Microscope & Magnifier User Manual


 
8XC196MC, MD, MH USER’S MANUAL
10-8
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.
PWM_COUNT
(read only)
Address:
Reset State:
1FB6H
00H
The PWM count (PWM_COUNT) register provides the current value of the decremented period
counter.
7 0
PWM Count Value
Bit
Number
Function
7:0 PWM Count Value
This register contains the current value of the decremented period counter.
Figure 10-5. PWM Count (PWM_COUNT) Register
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