I was going through the SPI section in Atmega328P datasheet and came across this:
It mentions different modes. Two terms involved are sample and setup. I don't quite understand them. Clock Phase and polarity concept is also not so clear to me.. can someone do some explanation on this?
I did a bit of googling, but not much help there.