Gast
#1477712
guten abend, ich denke ich habe spi einigermaßen verstanden, allerdings ist mir eine sache unklar. und zwar beim thema CPOL und CPHA [quote] * At CPOL=0 the base value of the clock is zero o For CPHA=0, data are read on clock's rising edge and data are changed on a falling edge. o For CPHA=1, data are read on clock's falling edge and data are changed on a rising edge. * At CPOL=1 the base value of the clock is one (inversion of CPOL=0) o For CPHA=0, data are read on clock's falling edge and data are changed on a rising edge. o For CPHA=1, data are read on clock's rising edge and data are changed on a falling edge. [/quote] quelle:http://en.wikipedia.org/wiki/Serial_Peripheral_Interface_Bus CPOL invertiert aus sicht des slaves die interpretation der polarität des clocks, richtig? wenn dem so ist verstehe ich den sinn von cpha nicht :/ warum setzt man cpha nicht einfach als "0" fest und invertiert CPOL dann hätte man das gleiche ergebnis kurz: bei meinem derzeitigen verständnis des protokolls ist da was doppelt gemoppelt :? da da aber sicher nichts doppelt gemoppelt ist....was verstehe ich hier falsch?