Strictly necessary cookies are on by default and cannot be turned off. Functional, Performance and Tracking/targeting/sharing cookies can be turned on below based on your preferences (this banner will remain available for you to accept cookies). You may change your cookie settings by deleting cookies from your browser. Then this banner will appear again. You can learn more details about cookies HERE.
Strictly necessary (always on)
Functional, Performance and Tracking/targeting/sharing (default off)
Question: How do I Bring AGND to an External Pin Without the RefMux User Module?
You do not have to dedicate a continuous time block by using the RefMux user module. AGND can be routed to the analog buffer output by software.
Even when a continuous time block is used by PGA or comparator, AGND can be routed to the output through the testMux of that block. The only requirement is that the output of the continous time block should be disabled so that the testMux can be routed. Use the following lines of code to bring out AGND. In device editor, turn on the respective analog output buffer.
and REG[ACAxxCR2],ebh or REG[ACAxxCR2],14h ;set testmux of buffer to AGND