??? 02/20/06 15:36 Read: times |
#110338 - in fact Responding to: ???'s previous message |
hi,
Erik Malund said:
The only use I know of for mode 0 is SPI, the signals are identical if you strip the "extra bit".
Well, once I have already said about UART mode 0 vs SPI. They are similar but the main difference is signal timings. SPI defines that a data bit is put on data line at the one edge of SCK then latched at the opposite edge. Then data bit is still kept on data line until the next "shift" edge comes in. UART mode 0 called "shift register" works with another way. It defines that a data bit is clocked in/out at the same edge. In fact, classic 8051 MCU shifts data in some time before rising edge (-2T) and shifts data out in some time after rising edge (+2T), where 12T is the shift period of a bit. So these timings may be took in consideration especially at high bitrates of UART mode 0. Regards, Oleg |