disconnected from the input pin and held steady, so that this voltage is constant during the analog-to-digital conversion. The sampling process should be long enough that the output of the sample and hold circuit reflects the input voltage, and the conversion process takes 12 clock cycles.) What value will the AD1CON1 SFR have when the ADC sample and hold is currently sampling? Write it in hexadecimal, 0x ...
The #defines in adc10.h use definitions from other peripheral library files, like ports.h and int.h in pic32_libs\include\peripheral. For example, #define OpenADC10 in adc10.h uses mPORTBSetPinsAnalogIn(), which is defined in ports.h. Find the definition of this function in ports.h. What does it do?
The ADC peripheral library is simple enough that all of the library functions can be defined in the header file adc10.h using #define commands. Other library functions require more lines of code, and therefore are defined in .c files. An example is writing a string using the UART (e.g., RS-232 communication). The library function putsUART1 is located in puts_uartx_lib.c, which is under pic32_libs\peripheral\uart\source. This library function uses the library functions BusyUART1() and putcUART1(). In what file and directory are these functions defined?