My ADC is in ASC10 block and my RefMux is ACB00. i set RefMux to the AGND.
now i want to connect and discount AGND to the ADC input with API.
how can i do it??
Assuming you are using the incremental ADC, you can connect the ADC input to RefMux at ACB00 by means of the following register write:
ASC10CR1 &= 0b00011111;
You can refer to this register on page 194 in the PSoC1 Technical Reference manual or do a search for ASCxxCR1.