why this is happen in kea128?

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

why this is happen in kea128?

417 次查看
D_pengF
Contributor I

#define KBI_PE_KBIPE(x) (((uint32_t)(((uint32_t)(x))<<KBI_PE_KBIPE_SHIFT))&KBI_PE_KBIPE_MASK)
KBI1_PE |= KBI_PE_KBIPE(0x10);
why can Enable KBI1 channel 4(PTE4)?

0 项奖励
回复
2 回复数

392 次查看
RaRo
NXP TechSupport
NXP TechSupport

Hello @D_pengF,

According to the KEA128 Sub-Family Reference Manual the KBI assignment is as follows:

RaRo_1-1702054508667.png

[Excerpt of Table 3-45. KBI port assignment]

Now, let's check the line of your code:

  • KBI1_PE |= KBI_PE_KBIPE(0x10);

Remember that 0x10 means 0001 0000b which would indeed enable the CH4 (PTE4) as follows:

RaRo_2-1702054508670.png

[Section 35.4.1 KBI Pin Enable Register (KBIx_PE)]

You might find useful to take a look at the following information to help you with your development of KBI and KEA128:

Warm regards, Raul.

0 项奖励
回复

271 次查看
D_pengF
Contributor I

Dear Raul,thanks a lot

0 项奖励
回复