I am a little confused by the KV58 dual parallel conversion example. I see in the example they are using PTE1 and PTE2 which is HSADC0B_CH17 and HSADC0B_CH10.
Then they go to assign these channel numbers
How is ADCB_CH7, ADCB_CH6, ADCA_CH2, ADCA_CH6 linked to HSADC0B_CH17 and HSADC0B_CH10?
I am wanting to use both HSADC0 and HSADC1 to do 2 parallel conversions of the below pins on the KV56. I'm also wanting to use PDB to trigger the conversion which I don't see an example for.
A | HSADC1A_CH2 |
B | HSADC1B _CH2 |
C | HSADC0B _CH2 |
DC | HSADC0A _CH14 |
However, I don't quite understand the ADCA and ADCB channel assignments. I assume I don't just pick a channel 0-6 on ADCA and then 7-15 for ADCB or do I? I would think somehow the channels are linked to HSADC0A _CH14 for instance.
已解决! 转到解答。
This post answers my question: https://community.nxp.com/t5/Kinetis-Microcontrollers/HSADC-on-KV5x/m-p/761491
CH 40.1.2 has a table to show how each pin connects to the HSADC. Looks like my options are below:
Pin | Name | Pin selection | HSADC connection |
18 | A | HSADC1A_CH2 / HSADC0A_CH2 | HSADC0A_CH2 / HSADC1A_CH2 |
20 | B | HSADC1B _CH2 / HSADC0A_CH10 | HSADC0A_CH6 mux ch10 / HSADC1B_CH2 |
PTB0 | C | HSADC0B _CH2 | HSADC0B_CH2 |
PTB2 | DC | HSADC0A _CH14 | HSADC0A_CH6 mux ch 14 |
This post answers my question: https://community.nxp.com/t5/Kinetis-Microcontrollers/HSADC-on-KV5x/m-p/761491
CH 40.1.2 has a table to show how each pin connects to the HSADC. Looks like my options are below:
Pin | Name | Pin selection | HSADC connection |
18 | A | HSADC1A_CH2 / HSADC0A_CH2 | HSADC0A_CH2 / HSADC1A_CH2 |
20 | B | HSADC1B _CH2 / HSADC0A_CH10 | HSADC0A_CH6 mux ch10 / HSADC1B_CH2 |
PTB0 | C | HSADC0B _CH2 | HSADC0B_CH2 |
PTB2 | DC | HSADC0A _CH14 | HSADC0A_CH6 mux ch 14 |