Product specifications

R01AN0168ED0101 Rev. 01.01 28
Application Note
Chapter 5 Looking into the PWM and ZPD Tables
5.3 Values for ZPD Operation
5.3.1 Addressing in ZPD Mode
When in ZPD mode for a channel, the addressing range for this channel is
changed to the ZPD table sections of the
PWM Value RAM.
Figure 5-5 ZPD Table Addressing Layout
Again, the virtual channel number is used to select a ZPD table in general. Like
this, the same ZPD table can be used to serve for several physical channels.
In contrary to the “regular” PWM operation mode, now simply the current ZPD
table index
CZCn is used for the addressing. Here, the RAM is no longer used
as a “translator”, but used as an instruction table.
The instructions are derived from the data contents of the RAM, which are
triggering measurements, causing delays, setting outputs and selecting inputs.
In detail, the data format looks like this:
Figure 5-6 Common PWM Value RAM Data Format
CZCn[6:0] from SequencerChannel Settings Always zero
ZPD Table
Range Code
CCTn
(000B ... 101B)
Bits 8 ... 2 A1 A01 1
CQI1
ZIS1
CQI0
ZIS0
CHP / IHD CVP / IVD
31 21 20 19 9 01022
Quadrant
Information
CQI
PWM Value CHP
10-bit H (cos)
PWM Value CVP
10-bit V (sin)
Common
Format
IVRIHR
2324
IVEIHE
CZD
ZMT
30 2526
Regular
(non-ZPD)
Operation
CHP CVP
IVRIHR
XXXXXBX X X
Recirculation
Enable for
H+V
ZPD
Operation
CQI0
ZIS0
IVRIHRZMT
CZD
IVEIHE
CHP / IHD CVP / IVD
CQI1
ZIS1
0
1
0
1
CHP
IHD
1013
0
1
CVP
IVD
03
Delay Count
Setting CZD
for this step
ZPD
Measurement
Trigger
Port Direct
Control Enable
H+V
Recirculation
Enable for
H+V
ZPD Input
Selection or
Quadrant
PWM Value
10-bit H (cos) or Horizontal
Direct Control Setting
PWM Value
10-bit V (sin) or Vertical
Direct Control Setting
CQI
CQI
ZIS