![Cypress PSoC CY8C23533 Technical Reference Manual Download Page 331](http://html1.mh-extra.com/html/cypress/psoc-cy8c23533/psoc-cy8c23533_technical-reference-manual_2706366331.webp)
Document # 001-20559 Rev. *D
267
SAR8 ADC PSoC Block
24.2.3
SARADC_CR1 Register
The SAR8 ADC Control Register 1 (SARADC_CR1) is used
to control normal ADC operation and show ADC status.
There may be a need in motor control applications to auto-
matically trigger the ADC to execute one analog-to-digital
conversion at a certain time during the PWM period in order
to obtain best performance.
In PSoC devices, the PWM function is implemented in few
PSoC digital blocks so that the ADC control block can moni-
tor the digital block status (there are 4 digital blocks in the
CY8C24533, CY8C23533, CY8C23433CY8C24633) and
perform analog-to-digital conversions per user settings.
PWMs can be 8 bits or 16 bits. The core of PWM functional-
ity is a down-counter that is implemented in the
CY8C24533, CY8C23533, CY8C23433CY8C24633 digital
blocks. So we pull out the DR0 register values from the digi-
tal blocks to execute a data comparison in order to decide
when an analog-to-digital conversion should be performed.
We define a 16-bit comparator in cases when the PWM is 16
bits. Note that the digital block enable signal is also used in
auto-trigger generation.
We separate the 16-bit comparator into two 8-bit channels
(H-channel and L-channel) for maximum flexibility. Every
digital block can drive both channels at the same time but
each channel can only be driven by one digital block. The
lower digital blocks have higher priority than the higher digi-
tal blocks in order to output to the high or low channel. The
channel data keeps 0s if it is not driven.
The selected DR0 data are compared with the pre-set val-
ues in the registers. The auto align circuit sends out a half
SYSCLK cycle ‘trigger’ signal when it sees a low-to-high
transition in comparison results. There is no trigger signal if
the relevant digital block is disabled. There is no trigger sig-
nal even if a digital block enable signal goes high at the
same time the comparison results are true.
Figure 24-1. Digital Block Channel ADC Auto Trigger
Add.
Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Access
0,6Ah
PWRSELADC
PWRSELR2R
Align Source [1:0]
Align Enable
RW : 0
Pu
lse
S
e
le
cti
o
n
Channel Select
Comparison
Pulse
Generation
Auto Trig
CMP_L
CMP_H
DBB00
DBB01
DCB02
DCB03
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 ...