HSADC Question with KV56

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

HSADC Question with KV56

跳至解决方案
801 次查看
derekcook
Senior Contributor I

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

derekcook_0-1655232644150.png

 

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. 

AHSADC1A_CH2
BHSADC1B _CH2
CHSADC0B _CH2
DCHSADC0A _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. 

0 项奖励
1 解答
795 次查看
derekcook
Senior Contributor I

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: 

PinNamePin selectionHSADC connection
18AHSADC1A_CH2 / HSADC0A_CH2HSADC0A_CH2 / HSADC1A_CH2
20BHSADC1B _CH2 / HSADC0A_CH10HSADC0A_CH6 mux ch10 / HSADC1B_CH2
PTB0CHSADC0B _CH2HSADC0B_CH2
PTB2DCHSADC0A _CH14HSADC0A_CH6 mux ch 14

在原帖中查看解决方案

0 项奖励
2 回复数
794 次查看
derekcook
Senior Contributor I

One question I do have - for the below to use CH 14 (pin 83) would this be mux number 4? 

derekcook_0-1655235076598.png

 

0 项奖励
796 次查看
derekcook
Senior Contributor I

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: 

PinNamePin selectionHSADC connection
18AHSADC1A_CH2 / HSADC0A_CH2HSADC0A_CH2 / HSADC1A_CH2
20BHSADC1B _CH2 / HSADC0A_CH10HSADC0A_CH6 mux ch10 / HSADC1B_CH2
PTB0CHSADC0B _CH2HSADC0B_CH2
PTB2DCHSADC0A _CH14HSADC0A_CH6 mux ch 14
0 项奖励