TWO-BITS ADC | Cypress Semiconductor
I was performing the two-bits ADC example showed at page 8 in the
Understanding Switched Capacitor Analog Blocks paper.
I adapted the code to my CY8C24994 PsOC Device.
The C code force the Port 1 output by means handling the PRT1DR register
(which is detailed in page 100 and 141 in the technical Reference Manual) after evaluate the comparator output column (CMP_CR0 reg, page 180 Technical Ref Manual).
After check my program don't works I performed the most simple code I could imagine:
"PSoCAPI.h" // PSoC API definitions for all User Modules