enCoRe™ V CY7C643xx, enCoRe™ V LV CY7C604xx TRM, Document No. 001-32519 Rev *H
66
Analog-to-Digital Converter (ADC)
7.4.4
Typical ADC Operation Procedure
The ADC registers in the temperature sensor block are to be
controlled using the command interface as per details pro-
vided in
. The following steps with the register
values as shown in
10-bit conversion.
■
Configure the GPIO for an external input or route an
internal voltage through the analog global.
■
Configure registers as mentioned in
analog input source from MOD_CR1 register.
■
Select required clock speed with ACLK register.
■
TS_EN also controls the analog ground reference gener-
ation. This bit is also required to be set for ADC only
operation.
■
Select comparator inputs. The default setting of 00h is
the required setting for this operation.
■
Configure the timer period register based on the resolu-
tion required. Each conversion is required to run 2n
cycles (where n is the resolution).
■
Hold the settings for 15
s to allow the temperature sen-
sor core output to settle before enabling the timer/coun-
ter and the modulator through MOD_CR0 register
■
If the ADC interrupt is enabled, an interrupt occurs at the
end of conversion and the counter register holds the
equivalet digital reading.
■
For a new conversion, disable the modulator and timer/
counter and wait for 5
s before re-enabling them.