![Cypress PSoC CY8C23533 Technical Reference Manual Download Page 286](http://html1.mh-extra.com/html/cypress/psoc-cy8c23533/psoc-cy8c23533_technical-reference-manual_2706366286.webp)
222
Document # 001-20559 Rev. *D
Analog Interface
The ICLKS bits, which are split between the DEC_CR0 and
DEC_CR1 registers, are used to select a source for the
incremental gating signal. The four IGEN bits are used to
independently enable the gating function on a column-by-
column basis.
18.1.5
Analog Modulator Interface (Mod
Bits)
The Analog
Interface provides a selection of sig-
nals that are routed to any of the four analog array
control signals. There is one modulation control signal
for each Type C Analog Switched Capacitor block in every
analog column. There are eight selections, which include
the analog comparator bus outputs, two global outputs, and
a digital block broadcast bus. The selections for all columns
are identical and are contained in the AMD_CR0 and
AMD_CR1 registers. The Mod bit is XOR’ed with the
switched capacitor block
(ASign in ASCxxCR0) to
provide dynamic control of that bit.
18.1.6
Analog Synchronization Interface
(Stalling)
For high precision analog operation, it is necessary to pre-
cisely time when updated register values are available to the
analog PSOC blocks. The optimum time to update values in
Switched Capacitor registers is at the beginning of the PHI1
active period. Depending on the relationship between the
CPU CLK and the analog column clock, the CPU IO write
cycle can occur at any 24 MHz master clock boundary in the
PHI1 or PHI2 cycle. Register values may be written at arbi-
trary times; however, glitches may be apparent at analog
outputs. This is because the capacitor value is changing
when the circuit is designed to be settling.
The SYNCEN bit in the Analog Synchronization Control reg-
ister (ASY_CR) is designed to address this problem. When
the SYNCEN bit is set, an IO write instruction to any
Switched Capacitor register is blocked at the interface and
the CPU stalls. On the subsequent rising edge of PHI1, the
CPU stall is released, allowing the IO write to be performed
at the destination analog register. This mode synchronizes
the IO write action to perform at the optimum point in the
analog cycle, at the expense of CPU
.
shows the timing for this operation.
Figure 18-4. Synchronized Write to a DAC Register
As an alternative to stalling, the source for the analog col-
umn interrupts is set as the falling edge of the PHI2 clock.
This configuration synchronizes the CPU to perform the IO
write after the PHI2 phase is completed, which is equivalent
to the start of PHI1.
18.2
PSoC Device Distinctions
The DEC_CR1 register’s bit 7 (ECNT) is only available in
PSoC devices with a type 1 decimator and is reserved in
PSoC devices with a type 2 decimator.
18.3
Application Description
18.3.1
SAR Hardware Acceleration
The Successive Approximation Register (SAR)
a binary search on the Digital-to-Analog Converter (DAC)
code that best matches the input voltage being measured.
The first step is to take an initial guess at mid-scale, which
effectively splits the range by half. The DAC output value is
then compared to the input voltage. If the guess is too low, a
result bit is set for that binary position and the next guess is
set at mid-scale of the remaining upper range. If the guess
is too high, a result bit is cleared and the next guess is set at
mid-scale of the remaining lower range. This process is
repeated until all bits are tested. The resulting DAC code is
the value that produces an output voltage closest to the
input voltage. This code should be within one LSb of the
input voltage.
The successive approximation analog-to-digital algorithm
requires the following building blocks: a DAC, a comparator,
and a method or apparatus to sequence successive writes
to the DAC based on the comparator output. The SAR hard-
ware accelerator represents a trade off between a fully auto-
matic hardware sequencing approach and a pure firmware
approach.
CPUCLK
nerated)
CPUCLK
To CPU)
IOW
STALL
PHI
CLK24
AIOW
Stall is released here.
AIOW
completes here.
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 ...