PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Fri Mar 28, 2008 3:58 pm |
|
|
The #use spi() statement defaults to using "LSB_FIRST". But the
hardware SPI module uses MSB first. So to avoid getting this error
message, you have to put in the MSB_FIRST parameter in the #use spi
statement, when you use the hardware SPI module. Ideally, CCS
should fix this. It should default to MSB first.
Also, it wouldn't hurt if you specify a few more of the parameters
so that they aren't left as some unknown default value. Example:
Code: | MODE=0, MSB_FIRST, BITS=8, BAUD=250000 |
Make sure that the baud rate is actually one that can be achieved
by the hardware. |
|