Hello
Is there an example for using c6474's MCBPS peripheral as SPI Master?
Thanks
Alphan
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.
Hello
Is there an example for using c6474's MCBPS peripheral as SPI Master?
Thanks
Alphan
I have looked at that guide before, after reading your answer I looked at it again, but I am trying to find an example project for MCBSP in SPI mode. Should I really look in the user's guide for this.
Maybe someone else will see your request and send you their project for McBSP in SPI mode. It would be a small portion of a larger project, and they would have to pull out their own application code to get down to just the McBSP SPI code.
The intention of the User's Guide is to tell you everything you need to be able to write this yourself. Section 9 on page 56 shows the signal connections and on page 57 shows the waveforms you will see on the board. Section 9.1 on page 58 explains the operation in Master mode so you can understand the tradeoffs and use of signals in the actual operation of the port, and section 9.3 on page 59 tells you exactly what to write in your code to get the port initialized. Please let us know if any portions are not clear.
The CSL comes with example projects, but they might not be written for SPI operation. Those examples would at least have the other code already written, such as setting PLLs and dividers and doing other initialization for the C6474 before and after the McBSP initialization. Perhaps you can take one of those and modify it to make your task a bit simpler.
Regards,
RandyP
Thank you for your interest,
I have read the user's guide, but I thought it will be easier to go through from an example project, and I looked in the csl examples, but there is not any example for SPI mode, and I intended to do as you said, modify another MCBSP example for SPI mode.
I thought maybe there is an example project in gforge or somewhere like that. Thanks although.
Regards
Alphan