WAVEFORM GENERATOR

 

 

WG_RELOAD

WG_RELOAD

EPA Event

 

 

Updated

(Mode 3 Only)

 

 

Value

 

 

 

 

 

 

Counter

 

 

WG_COUNTER

Enabled

 

 

 

 

 

 

Value

 

 

 

1

0

 

 

 

 

 

 

 

 

 

 

Carrier

 

 

Reset

Write to WG_RELOAD

Period

 

 

 

 

 

 

 

 

A2639-01

Figure 9-6. Edge-aligned Modes — Counter Operation

WG_COUNTER

1

WG_COUNTER =WG_COMP

WG Interrupt

P6.0 / WG1#

WG_COMPx

EPA Event

Carrier

Period

Note:

Carrier period and duty cycle both

change since WG_COMPx is not changed.

P6.1 / WG1

Mode 3, OP0 = OP1 = 1, PH1.0 = PH1.1 = PH1.2 = 1

A2653-01

Figure 9-7. Edge-aligned Modes — Output Operation

8XC196MH only: The 8XC196MH device has an additional edge-aligned mode, mode 4. This mode prevents the output “jitter” that can occur in mode 3 when an EPA event reloads WG_COUNTER, which also causes a change in the duty cycle. In mode 4, an EPA event reloads WG_OUTPUT, but WG_COMPx and WG_COUNTER are reloaded only when the counter reaches the reload value.

9-11

Page 210
Image 210
Intel 8XC196MD, 8XC196MH, 8XC196MC manual Edge-aligned Modes Counter Operation