By the way I`m using CodeWarrior for Microcontrollers v10.6CodeWarrior for Microcontrollers v10.6
From: amardos@hotmail.com
To: jive-824161160-4s75-2-8lok@freescale.hosted.jivesoftware.com
Subject: RE: - Re: SPI0 Freedom Board kl25z
Date: Thu, 8 May 2014 22:50:08 +0200
Hello. Now I`m facing the problem of reading the Y-channel. To do this I need to have a second CS and way to choose this with the same MISO, MOSI and CLK lines as for the X-channel read routine. Do you know how this could be done ?
From: amardos@hotmail.com
To: jive-824161160-4s75-2-8lok@freescale.hosted.jivesoftware.com
Subject: RE: - Re: SPI0 Freedom Board kl25z
Date: Thu, 8 May 2014 14:58:12 +0200
Thanks a lot. Now the code work like a charm.
Date: Wed, 7 May 2014 07:40:17 -0700
From: admin@community.freescale.com
To: amardos@hotmail.com
Subject: Re: - Re: SPI0 Freedom Board kl25z
Re: SPI0 Freedom Board kl25z
reply from Martyn Hunt in Kinetis Microcontrollers - View the full discussion
To enable SPI0_C1[CPHA] = 1, you need to modify this line,
SPI0_C1 = SPI_C1_MSTR_MASK | SPI_C1_SSOE_MASK;
to this,
SPI0_C1 = SPI_C1_MSTR_MASK | SPI_C1_SSOE_MASK | SPI_C1_CPHA_MASK;
For the duration of the spi_send_recv function the CS should toggle low, which will signal the Inclinometer that it is being addressed by the KL25. Before and after that function is called it should remain high.
What compiler are you using for your project?
Thank you,
Martyn
Reply to this message by replying to this email, or go to the message on Freescale Community
Start a new discussion in Kinetis Microcontrollers by email or at Freescale Community
Following Re: SPI0 Freedom Board kl25z in these streams:
Inbox