Home  >  Support  >  Support Forum  >  SPI CLOCK - working with the falling edge of the clock
Notice! We've recently migrated to using a new forum, we hope you enjoy it. If you are an existing member and this is your first time visiting our new forum, please reset your password to be able to sign in.
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

SPI CLOCK - working with the falling edge of the clock

0 votes
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)
asked Mar 31 in Rabbit by reggie720 New to the Community (0 points)

Please log in or register to answer this question.

1 Answer

0 votes
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
answered Mar 31 by petermcs Veteran of the Digi Community (398 points)
Contact a Digi expert and get started today! CONTACT US
...