Hi,
I have a question about SPI. I use setup_spi() to configure SPI, and I realizes that it does not have an option for MSB/LSB, transfer from b7/b0. So, I guess there is a default selection for it. Do you know which one is default? MSB or LSB?
Thanks.
newguy
Joined: 24 Jun 2004 Posts: 1907
Posted: Fri Aug 08, 2008 6:19 pm
I'm pretty sure that MSB first is the default. At least that's what works with my projects/code.
ckielstra
Joined: 18 Mar 2004 Posts: 3680 Location: The Netherlands
Posted: Fri Aug 08, 2008 7:46 pm
True, the SPI hardware transmits MSB first and this is the standard for most other SPI devices I know of.
In the V4 compiler you can configure a software SPI driver (#use SPI) which is configurable to sent MSB or LSB first
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