Download XE166 Derivatives

Transcript
XE166 Derivatives
Peripheral Units (Vol. 2 of 2)
Capture/Compare Unit 6 (CCU6)
18.2.3
T12 Compare Mode
Associated with Timer T12 are three individual capture/compare channels, that can
perform compare or capture operations with regard to the contents of the T12 counter.
The capture functions are explained in Section 18.2.5.
18.2.3.1 Compare Channels
In Compare Mode (see Figure 18-9), the three individual compare channels CC60
CC61, and CC62 can generate a three-phase PWM pattern.
Counter Register
T12
fT12
Compare
Match CM_60
Comp.
=?
Comp.
=?
Comp.
=?
Compare Register
CC60R
Compare Register
CC61R
Compare Register
CC62R
Compare
Match CM_61
Compare
Match CM_62
T12_ST
Compare Shadow
Register CC60SR
Compare Shadow
Register CC61SR
Compare Shadow
Register CC62SR
CCU6_MCA05513
Figure 18-9 T12 Channel Comparators
Each compare channel is connected to the T12 counter register via its individual equalto comparator, generating a match signal when the contents of the counter matches the
contents of the associated compare register. Each channel consists of the comparator
and a double register structure - the actual compare register CC6xR, feeding the
comparator, and an associated shadow register CC6xSR, that is preloaded by software
and transferred into the compare register when signal T12 shadow transfer, T12_ST,
gets active. Providing a shadow register for the compare value as well as for other values
related to the generation of the PWM signal facilitates a concurrent update by software
for all relevant parameters of a three-phase PWM.
User’s Manual
CCU6, UM_V0.5D3
18-14
V2.1, 2008-08