Doubt on how to choose CPHA on MCUXpresso

cancel
Showing results for 
Search instead for 
Did you mean: 

Doubt on how to choose CPHA on MCUXpresso

178 Views
alexandrevoigtd
Contributor III

I am using SPI on MK22FN1M0AVLL12. On KDS I choose to clock phase (CPHA) capture on leading edge. There is working but in MCUXpresso I have to choose CPHA 0 or 1. To portate my code to MCUXpresso I need to know if CAPTURE ON LEADING EDGE is 1 and CHANGE ON LEADING EDGE is 0. These are the two options that appear on KDS. Anybody now what is correct?

Tags (2)
0 Kudos
1 Reply

113 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Alexandre Voigt da Poian  ,

I was wondering what is related with IDE, no matter KDS or MCUXpresso IDE,

if you want to capture on leading edge, then config CPHA to 0:

pastedImage_1.png

BTW, could you please take a sceenshot show  "choose CPHA on MCUXpresso", do you use MCUXpresso Config tools for peripheral ?


Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos