why this is happen in kea128?

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

why this is happen in kea128?

1,223件の閲覧回数
D_pengF
Contributor II

#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 返答(返信)

1,198件の閲覧回数
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 件の賞賛
返信

1,077件の閲覧回数
D_pengF
Contributor II

Dear Raul,thanks a lot

0 件の賞賛
返信