How To Read Pinout Tables

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

How To Read Pinout Tables

跳至解决方案
2,402 次查看
ttocsmi
Contributor I

Hello,

I'm confused as to how to read the signal multiplexing and pin assignments tables in the product literature. Please refer to the attached image for reference.

Clipboard01.jpg

Is the port controller used to set the pin configuration for all pins at once, based on the ALT0, ALT1, etc parameter?  Eg, if mode "ALT2" is set, is pin H3 used for anything?  Or, can the function of an individual pin be set independently of the others?  Eg, could I set H3 to PTE7 and H4 to ADC2_SE16?

Thanks for your assistance.

标记 (2)
0 项奖励
回复
1 解答
1,826 次查看
Derrick
NXP Employee
NXP Employee

Hi Scott,

Each port pin has its own Pin Control Register (PORTx_PCRn).  These can be found in the "Port control and interrupts" chapter of the respective reference manual.  In this register there is a 3-bit MUX field that is used to assign the selected port to the desired functionality, as shown in the table which you point out.

In your example, the corresponding Pin Control Register for PTE7 (located on pin H3) is PORTE_PCR7 (located at address 0x4004_D01C).  For this specific pin, the MUX field options are:

  000  -  Pin Disabled

  001  -  PTE7

  010  -  n/a

  011  -  UART3_RTS_b

  100  -  I2S0_RXD0

  101  -  n/a

  110  -  FTM3_CH2

  111  -  n/a

Best Regards,

Derrick

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,826 次查看
ttocsmi
Contributor I

Thanks, Derrick. I'll dive back into the reference manual and ponder this for a bit.

Scott

0 项奖励
回复
1,827 次查看
Derrick
NXP Employee
NXP Employee

Hi Scott,

Each port pin has its own Pin Control Register (PORTx_PCRn).  These can be found in the "Port control and interrupts" chapter of the respective reference manual.  In this register there is a 3-bit MUX field that is used to assign the selected port to the desired functionality, as shown in the table which you point out.

In your example, the corresponding Pin Control Register for PTE7 (located on pin H3) is PORTE_PCR7 (located at address 0x4004_D01C).  For this specific pin, the MUX field options are:

  000  -  Pin Disabled

  001  -  PTE7

  010  -  n/a

  011  -  UART3_RTS_b

  100  -  I2S0_RXD0

  101  -  n/a

  110  -  FTM3_CH2

  111  -  n/a

Best Regards,

Derrick

0 项奖励
回复