In: Electrical Engineering
Consider a 12-bit ADC with an analog input voltage range of 0 to 3 volts.
a) Compute the ADC precision, ADC ranges for input and output, and ADC resolution.
b) What is the binary value computed by the ADC for an analog input voltage of 1.0 volt?
c) Write an ADC0_In function in C that uses busy-wait synchronization to sample the ADC. The function reads the ADC output, and returns the 12-bit binary number. Assume the ADC has already been initialized to use sequencer 3 with a software trigger and channel 1. See supplement pages for ADC registers.