This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PROCESSOR-SDK-AM64X: MCXPI clock generation befor chip select assertion

Part Number: PROCESSOR-SDK-AM64X
Other Parts Discussed in Thread: SYSCONFIG

Tool/software:

I'm using a CH0 of the MCSPI device in master mode. My SPI slave device requires a half CLK cycle before chip select (ENX in image) assertion.

How can I make the MCSPI to generate the this extra half clock cycle?

  • Hi Enrique,

    Thanks for your question.

    I think this should be taken care of in our driver as there are many peripherals which customers interface on a regular basis.

    I would recommend you to atleast go ahead and try and if it fails, I will be happy to support you on it.

    Also can you help me understand if you are proceeding with MCU PLUS SDK or Processor SDK Linux?

    Looking forward to your response.

    Regards,

    Vaibhav

  • Hi Vaibhav,

    I've already tried to communicate and didn't work.

    The problem is that my device requires a half CLK cycle before asserting the chip select signal as in the following image:


    The MCSPI device generates CLK pulses after asserting the chip select signal and keeps it deasserted while the chip select is deasserted.

    I'm using the MCU PLUS SDK.

    Thank you,

    Enrique

  • Hi Enrique,

    I see that it requires additional half cycle.

    Allow me sometime to look through this and follow up with you on this.

    Regards,

    Vaibhav

  • Hi Enrique,

    Thanks for your patience.

    I was looking into this for quite a while and realized the following.

    I got to know that in the SysConfig GUI under MCSPI peripheral tab, when you add a MCSPI peripheral you will see an option as highlighted in the attached screenshot below.

    Under show advanced config: You can go ahead and select the initial delay in terms of bus clock cycles.

    Please go ahead and experiment with this option and let me know if this helps you get started with development on MCSPI.

    Looking forward to your response.

    Regards,

    Vaibhav