CY8CKIT-025 PSoC® Precision Analog Temperature Sensor Expansion Board Kit Guide, Doc. # 001-65791 Rev. *J
65
Example Projects
Figure 5-20. ADC ISR Flowchart
The SlotCounter is used to count ADC EOCs. This hardware counter is compared with the current
slot value in the ADC ISR. If they do not match, then the measurement is flagged as invalid. This is
ADC_ISR
Start
++Current Slot
>= # of Slots?
Y
Current Slot = 0
N
Save Invalid Flag
from last reading
Does Current
Slot = HW
Counter
N
Reset HW Counter
Set Invalid Flag
Y
Get ADC Reading
Result
Increment Next
Slot
Next Slot >= #
of Slots?
Next Slot = 0
Configure
ADCMux for Next
Slot
Y
N
Configure IDAC
Range, Value and
Mux for Next Slot
ADC
Reconfiguration
Process
ADC
Reconfiguration
Process
ADC Config
Valid?
Y
Stop ADC
Reconfigure It
Restart ADC
Clear next Invalid
Set Next Invalid
Flag
Does Current
Slot = HW
Counter
N
Set Next Invalid
Flag
Y
Next ADC
Config
Different?
Y
N
Clear Next Invalid
Flag
N
Filter Readings
See AN2099 for
Detail
Store ADC reading
and status in Ping
Pong Buffer