Hi, in the SPI help, the following is stated:
procedure SPIx_Init();
Returns Nothing.
Description This routine configures and enables SPI module with the following settings:
master mode
clock Fosc/4
clock idle state low
data transimtted on low to high edge <---- this line
input data sampled at the middle of interval
..
..
..
Transmit edge:
Data transmit on low to high edge _SPI_LOW_2_HIGH <---- this line
Data transmit on high to low edge _SPI_HIGH_2_LOW <---- this line
Better would be, for the marked lines, to use the terminology used in the
dsPIC SPI help, e.g.
procedure SPIx_Init();
Returns Nothing.
Description This routine configures and enables SPI module with the following settings:
master mode
clock Fosc/4
clock idle state low
output data is valid on low to high edge <---- this line
input data sampled at the middle of interval
..
..
..
Transmit edge:
Output data valid on low to high edge _SPI_LOW_2_HIGH <---- this line
Output data valid on high to low edge _SPI_HIGH_2_LOW <---- this line
Thanks in advance!
Kind regards, Dany.
Forget your perfect offering. There is a crack in everything, that's how the light gets in... (L. Cohen)
Remember when we were young? We shone like the sun. (David Gilmour)