RIOT icon indicating copy to clipboard operation
RIOT copied to clipboard

boards/pba-d-01-kw2x: ADC channel mode

Open PeterKietzmann opened this issue 10 years ago • 9 comments

According to the periph_conf.h there is a single channel mode on the phytec board, which prevents to use ADC_0_CH0 and ADC_0_CH1 separately, when set. Running the periph_adc test shows, that a signal at ADC_0_CH0_PIN affects both ADC_0_CH0 and ADC_0_CH1. A signal at ADC_0_CH1_PIN does nothing. So I assume we actually are in single mode. How can I change that mode? (I mean as a user, not as a developer)

PeterKietzmann avatar Oct 23 '15 08:10 PeterKietzmann

@jfischer-phytec-iot ping?

miri64 avatar Oct 18 '16 08:10 miri64

Who else has the hardware to test it?

OlegHahm avatar Jan 15 '17 13:01 OlegHahm

At least the config file has changed and the above mentioned hint disappeared from that file. I can check this again tomorrow.

PeterKietzmann avatar Jan 15 '17 14:01 PeterKietzmann

This is still an open question. ADC_0_CH0 andADC_1_CH1 now refer to

    { ADC0, GPIO_PIN(PORT_E, 2), 1 },
    { ADC0, GPIO_PIN(PORT_E, 3), 1 },

I would vote to either remove the ADC channel on PTE3 (who ever used 6 ADC channels simultaneously?) or provide a switch plus explanation about this mode.

PeterKietzmann avatar Jan 16 '17 14:01 PeterKietzmann

@PeterKietzmann is there still an issue here (since kinetis was refactored a lot recently) ? Maybe @gebart could help ?

aabadie avatar Apr 17 '18 07:04 aabadie

It's still an issue, but we need to examine the pba-d-01-kw2x schematics to see what the best configuration could be here.

jnohlgard avatar Apr 17 '18 07:04 jnohlgard

we need to examine the pba-d-01-kw2x schematics to see what the best configuration could be here.

Once we tried to get them (@cgundogan remember?) to add the button driver. We didn't receive any answer so we did it by looking directly at the board's lines and making tests with the ohmeter... A bit hard but not impossible.

kYc0o avatar Apr 17 '18 07:04 kYc0o

In the end - I think - we just need a decision or preference how we do handle it. IMO it is also fine to go with 4-5 pre-configured ADCs. Anyway, for the question of configuration maybe this reference is sufficient?

PeterKietzmann avatar May 29 '18 16:05 PeterKietzmann

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you want me to ignore this issue, please mark it with the "State: don't stale" label. Thank you for your contributions.

stale[bot] avatar Aug 10 '19 08:08 stale[bot]