K82 Family how are the PortE Pin Control Register (PCRx) mapped to pads

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

K82 Family how are the PortE Pin Control Register (PCRx) mapped to pads

927 次查看
bvsrkrishnarao
Contributor II

I have been going through the K82P121M150SF5RM and I am not able to figure out how the Pin Control Register (PCRx) of PortE are mapped to Mux various pins, for example

for selecting for

PTE0             ALT5            QSPI0A_DATA3

which PCRx needs to be programmed?

I seem to have gone through the whole document and there doesn't seem any mapping vis-a-vis each of these pins/functionality to the PCRx

0 项奖励
回复
4 回复数

821 次查看
mjbcswitzerland
Specialist V

Hi

PORTX_PCRY = ((PORTX_PCRY & ~0x00000700) | (ALTZ << 8));

where X is the port (A, B, C, D), Y is the pin (0..31) and ALTZ is the pin's function (0..7).

Therefore for PTE0 to QSPI0A_DATA3 (ALT5):

PORTE_PCR0 = ((PORTE_PCR0 & ~0x00000700) | (5 << 8));

This is exactly the same as for any Kinetis K, KL, KV etc. part.

Reference for configuring peripheral functions in the uTasker project: http://www.utasker.com/forum/index.php?topic=1875.msg6798#msg6798

eg.

_CONFIG_PERIPHERAL(E, 0, (PE_0_QSPI0A_DATA3 | PORT_SRE_FAST | PORT_DSE_HIGH));

Regards

Mark

Kinetis: http://www.utasker.com/kinetis.html

For the complete "out-of-the-box" Kinetis experience and faster time to market

0 项奖励
回复

821 次查看
bvsrkrishnarao
Contributor II

Hi Mark

Thanks a lot, we have TOW-POS-K81 board, we wanted to program the QuadPsi to Octal, so the query.

Thanks again

0 项奖励
回复

821 次查看
mjbcswitzerland
Specialist V

Hi

I woudl like to ask where people are getting their TWR-POS-K81 boards from?

They don't look to be orderable from Freescale/NXP and I don't find any distributors carrying them either.

Thanks

Regards

Mark

0 项奖励
回复

821 次查看
bvsrkrishnarao
Contributor II

Hi Mark

Yes, I think these may not yet be available for general order. The board we

have is a engineering sample available to vendors for development of

hardware comaptible with K82F processor

regards

Krishna

On Sat, Jan 2, 2016 at 9:00 AM, mjbcswitzerland <

0 项奖励
回复