HSADC Question with KV56

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

HSADC Question with KV56

ソリューションへジャンプ
891件の閲覧回数
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 解決策
885件の閲覧回数
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 返答(返信)
884件の閲覧回数
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 件の賞賛
886件の閲覧回数
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 件の賞賛