Hello Alexis
I have checked the reg_port_gpio, but it is correct, it point to the FSL define PORTA.
I have also checked:
- the usage as GPIO is OK.
- I used a second hardware => same result
- I changed to use only one ADC channel => same result 2,5V output voltage
- I remove all hardware connections form the ADC pin ( pin 79 without any connection ) => 3.0V output voltage
- I used the example twrke18f_adc12_interrupt and changed it to usage of my ADC
#define DEMO_ADC12_BASE ADC0
#define DEMO_ADC12_CLOCK_SOURCE kADC12_ClockSourceAlt0
#define DEMO_ADC12_IRQn ADC0_IRQn
#define DEMO_ADC12_IRQ_HANDLER_FUNC ADC0_IRQHandler
#define DEMO_ADC12_USER_CHANNEL 0U
#define DEMO_ADC12_CHANNEL_GROUP 0U
=> now I have output voltage of 2V on ADC0_SE0 pin 79
It seems that that there is something on my hardware, but what? I'm out of ideas.
Regards
Tobias