FRDM K66 pin multiplexing

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

FRDM K66 pin multiplexing

1,560 次查看
doruirimescu
Contributor I

Hello guys,

I am trying to use ADC0_SE8 and ADC1_SE8 as adc inputs,and they are mapped to PTB0 and LLWU_P5 .How could I multiplex these signals to,for example,PTD12 and PTD13 ?

Thanks

0 项奖励
回复
1 回复

1,106 次查看
charlesasquith
NXP Employee
NXP Employee

Hello Doru,

different pins have a set list of possible alternative functions that you can mux it to. If a function is not apart of the possible pin assignments, then you can't use that function on that particular pin.

if you look in K66's signal multiplexing and pin assignments table found in the reference manual or datasheet, you'll see that specifically PTD12 and PTD13 aren't able to serve as ADC0_SE8 or ADC1_SE8 in any of the multiplexing alternative function possibilities.

pastedImage_0.png

However, as you noted in your post, PTB0 and PTB1 by default serve as ADC0_SE8 or ADC1_SE8. You may consider just using PTB0 and PTB1 instead of PTD12 and PTD13.

pastedImage_2.png

Also, to change the functionality of a pin all you need to do is look in the PORTx_PCRn register and write appropriately to the [MUX] field.

0 项奖励
回复