Kindly note that CSD and ADC modules are firmware modules that work on the same block in the chip. Dues to this reason, either of CSD or ADC can be used for continuous operation, but not both at the same time. If you want to switch between CSD and ADC, (only one module works at a given time), you can use dynamic reconfiguration, Kindly refer to AN2104 - PSoC® 1 - Dynamic Reconfiguration with PSoC Designer™ for further information about dynamic reconfiguration.
Hi Sampath Kumar,
Thanks for your reply. I try to switch between CSD and ADC like the AN2104, but have the following errors about EZI2C . Now I have solved the problem by switch the analog MUX BUSdirectly, like this:
MUX_CR0 &= ~0b00010000; //disconnect P0_4 capasense sensor from the mux bus.
MUX_CR2 |= 0x20; //connect p2_5 to the mux bus
MUX_CR2 &= ~0x20; //disconnect p2_5 from the mux bus
MUX_CR0 |= 0b00010000; //connect P0_4 to mux bus.
Do kindly create another thread for the EzI2C linker error.