why this is happen in kea128?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

why this is happen in kea128?

340 Views
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 Kudos
Reply
2 Replies

315 Views
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 Kudos
Reply

194 Views
D_pengF
Contributor I

Dear Raul,thanks a lot

0 Kudos
Reply