SPI interface cpol & cpha



Hi all,

In SPI interface if i see there are two signals cpol and cpha, which
are used for differnet data transfer formats.
What i wanted to know is why 4 different data transfer formats have
been defined???
If both the master and slave agreed upon one format that shoud be
fine right.

Any suggestions are appreciated.

Thanks in advance,
Praveen

.