Connecting an External Input Pin to ADCINC - KBA83561

Version: **

 

Question: How do I connect an external input pin to the ADCINC User Module in CY7C64xxx part?

 

Answer:

Connect the external pin to the MUX bus using the MUX_CRx register. Connect the MUX bus to the ADCINC using the ADCINC_Start API:


ADCINC_Start(ADCINC_INPUT_ANALOG_BUS); //ADCINC is the instance name


The attached sample code, test_ADCINC, demonstrates how to connect an external input pin to the ADCINC User Module.