Intel 8XC196MC User Manual page 544

Table of Contents

Advertisement

WG_RELOAD
The waveform generator reload (WG_RELOAD) register and the phase compare registers
(WG_COMP x ) control the carrier period and duty cycle. Write a value to the reload register to
establish the carrier period.
Changing the WG_RELOAD value changes both the carrier period and the duty cycle because the
outputs remain asserted for a constant length of time, while the counter takes longer to cycle. To
change the carrier period without changing the duty cycle, you must proportionally change both
WG_RELOAD and WG_COMP x at the same time, immediately after the interrupt.
15
Bit
Number
15:0
Reload
This register determines the carrier period.
Use the following formulas to calculate carrier period and duty cycle.
multiplier WG_RELOAD
------------------------------------------------------------------- -
T
=
CARRIER
Duty Cycle
where:
T
CARRIER
F
1
XTAL
multiplier
WG_RELOAD
WG_COMP x
Reload
×
F
XTAL1
WG_COMPx
×
------------------------------------- -
100%
=
WG_RELOAD
= carrier period, in µs
= input frequency on XTAL1 pin, in MHz
= 4 for center-aligned modes; 2 for edge-aligned modes
= 16-bit WG_RELOAD value ≥ WG_COMP x
= 16-bit WG_COMP x value ≤ WG_RELOAD
Get other manuals https://www.bkmanuals.com
Reset State:
Function
REGISTERS
WG_RELOAD
Address:
1FC8H
0000H
0
C-67

Advertisement

Table of Contents
loading

This manual is also suitable for:

8xc196md8xc196mh

Table of Contents