226
Document # 001-20559 Rev. *D
Analog Interface
18.3.1.3
SAR Timing
Another important function of the SAR hardware is to syn-
chronize the IO read (the point at which the comparator
value is used to make the SAR decision) to when the analog
comparator bus is valid. Under normal conditions, this point
is at the rising edge of PHI1 for the previous compute cycle.
When the OR instruction is executed in the CPU, a few CPU
clocks cycle into the instruction and an IOR signal is
asserted to initiate a read of the DAC register. The SAR
hardware then stalls the CPU clock, for one 24 MHz clock
cycle after the rising edge of PHI1. When the stall is
released, the IO read completes and is immediately followed
by an IO write. In this sequence of events, the DAC register
is written with the new value within a few CPU clocks after
PHI1.
The rising edge of PHI1 is also the optimal time to write the
DAC register for maximum settling time. The timing from the
positive edge of PHI1 to the start of the IO write is 4.5
clocks, which at 24 MHz is 189 ns. If the analog clock is run-
ning at 1 MHz, this allows over 300 ns for the DAC output
and comparator to settle.
Figure 18-7. General SAR Timing
PHI1
PHI2
ACMP
IOR
IOW
STALL
Comparator is valid on PHI1 rising.
SAR computation is done and IOR
finishes.
DAC output is valid at
end of PHI2.
Comparator is now valid for
previous IOW, repeat process.
IOR causes STALL to
assert, to wait for PHI1
rising.
New value is written to
DAC register.
Summary of Contents for PSoC CY8C23533
Page 4: ...Contents Overview 4 Document 001 20559 Rev D Section G Glossary 385 Index 401 ...
Page 16: ...Contents Overview 16 Document 001 20559 Rev D ...
Page 24: ...24 Document 001 20559 Rev D Section A Overview ...
Page 30: ...30 Document 001 20559 Rev D Pin Information ...
Page 54: ...54 Document 001 20559 Rev D Supervisory ROM SROM ...
Page 60: ...60 Document 001 20559 Rev D RAM Paging ...
Page 68: ...68 Document 001 20559 Rev D Interrupt Controller ...
Page 76: ...12 Document 001 20559 Rev D General Purpose IO GPIO ...
Page 82: ...18 Document 001 20559 Rev D Internal Main Oscillator IMO ...
Page 84: ...20 Document 001 20559 Rev D Internal Low Speed Oscillator ILO ...
Page 90: ...26 Document 001 20559 Rev D External Crystal Oscillator ECO ...
Page 94: ...30 Document 001 20559 Rev D Phase Locked Loop PLL ...
Page 106: ...42 Document 001 20559 Rev D Sleep and Watchdog ...
Page 228: ...164 Document 001 20559 Rev D Section D Digital System ...
Page 234: ...170 Document 001 20559 Rev D Array Digital Interconnect ADI ...
Page 278: ...214 Document 001 20559 Rev D Digital Blocks ...
Page 296: ...232 Document 001 20559 Rev D Analog Interface ...
Page 304: ...240 Document 001 20559 Rev D Analog Array ...
Page 308: ...244 Document 001 20559 Rev D Analog Input Configuration ...
Page 312: ...248 Document 001 20559 Rev D Analog Reference ...
Page 338: ...274 Document 001 20559 Rev D Section F System Resources ...
Page 354: ...290 Document 001 20559 Rev D Multiply Accumulate MAC ...
Page 374: ...310 Document 001 20559 Rev D I2C ...
Page 400: ...336 Document 001 20559 Rev D Section G Glossary ...