I am using PIC24FJ512GL406, in one of my project to communicate with a flash chip of winbond over SPI. During the setup of SPI communication using setup_spi function available in device.h file I found there is no parameter for communication speed setup.
Any help regarding that will be very helpful.
Thanks in Advance.
Ttelmah
Joined: 11 Mar 2010 Posts: 19503
Posted: Mon Jul 17, 2023 6:54 am
Use #USE_SPI, not setup_spi.
setup_spi, is largely deprecated now.
Look also at the top of the forum here in how to use PIN_SELECT. Vital
on modern chips.
However if you must use spi_setup, then the baud goes after the mode
setting. So:
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum