Hi everyone,
1) I configured pin P0_6 and P0_7 as below
P0SEL &=(~BV(6));
P0DIR |= BV(6);
P0SEL &=(~BV(7));
P0DIR |= BV(7);
It's working OK but sometime I set P0_6 = 1 but It's still 0 ( I measured by VOM)
How can I check the ouput P0_6 after set to 1?
2) Besides, I used P0_5 as ADC input.
Set HAL_ADC=TRUE in Preprocessor and
HalAdcSetReference(HAL_ADC_REF_125V);
adc_ain5=HalAdcRead(HAL_ADC_CHN_AIN5,HAL_ADC_RESOLUTION_12);
The problem is the output of P0_5 ~ 3.2V. And the measured value is not correct. Any config is wrong?
Thanks in advance.