I am verifying the SPI function of 9S08DZ60. The IDE I'm currently using is CodeWarrior v11. I have seen some examples in the forum, but the v11 version cannot be opened, and the official website has not published the spi example, so I hope to get a copy of the SPI example of 9S08DZ60 in the forum here,Thanks
Solved! Go to Solution.
Hi Zhuang
There is no SPI DZ60 sample code, porting CW6.3 project to CW11 is very easy.
Just create a new CW11 project then drag and drop the source files to the new project. That's it. Please have a try. If any difficulty, please let me know.
Thanks,
Jun Zhang
Happy to help!
Anytime.
Hi Zhuang
There is no SPI DZ60 sample code, porting CW6.3 project to CW11 is very easy.
Just create a new CW11 project then drag and drop the source files to the new project. That's it. Please have a try. If any difficulty, please let me know.
Thanks,
Jun Zhang
Ni Hao dear Zhuang.
I don't know if this is what you want, but anyway here is a small CodeWarrior 11.1 version project that transmits and receives a byte over the 9S08DZ60 SPI as a MASTER device, at 1MHz clock frequency.
Just copy the folder inside the compressed .ZIP file to the desired CodeWarrior Workspace folder. Then, drag and drop the folder from the Workspace to the left (project panel window) in the CodeWarrior IDE C/C++ screen.
You need to do a Project -> Clean just once to correctly compile the project that will bring the information of MY computer disk unit letter and project path. The Clean corrects that so it fits right in your computer. Don't skip this step or you will receive an error message on your console window.
The project is divided in a couple of modules for your convenience. Feel free to modify and adapt to your needs.
Just let me know if this is what you wanted, I hope yes. Attached is the complete working project.
This is how the SPI initialization should look in your hardware perspective.
Thank you very much for your help! This file is of great help to me! Thank you again!