SPI CLOCK - working with the falling edge of the clock

hi.
i have the rabbit 4000 and try to work with the SPI.
the SPI is working with the rising edge of the clock . i want it to work with the falling edge of the clock .
how can i config the rabbit to work with the falling edge of the clock ? ( i want my data to work with the falling edge of the clock)

The clock phases are set using the SPI_CLOCK_MODE macro which should be defined with a value of 0, 1, 2 or 3 (default is 0).

Figure 16.1 on page 130 of the Rabbit 4000 users manual shows the operation for the different modes. You need either mode 2 or mode from the sound of it.

Regards,
Peter