We will get back to you on the question 1.
Regarding question 2, yes your understanding is right. The ADC results will be spread over this range. But the input range of ADC cannot exceed the input range of the PSoC device. For a 3.6V VDDA max, this will be maximum voltage the PSoC device can support. So this is the maximum range of input for the device. You might not be able use the complete range for a Vref of 3.3V For a lesser reference voltage, you should be able use the ADC on complete range.
1 of 1 people found this helpful
Regarding your question 1, you can use the AnalogIn class in mbed to read analog input. Please find the sample codes here: AnalogIn - APIs | Mbed OS 5 Documentation
By default the configurations are set to use 12-resolution SAR ADC and Vref at 1.2V. You can find all the configurations in cyhal_adc.c file located under "mbed-os\targets\TARGET_Cypress\TARGET_PSOC6\psoc6csp\hal\src\".
Let me know if you have any further queries.