What is better/faster?
TC
Posts: 1,019
Hello all,
I have a display that I can select what serial interface I want to use.
I am not worried about prop pin count, so I could use anyone of them. But I don't know the pros and cons of each of them. Could someone please help me out?
Thanks
TC
I have a display that I can select what serial interface I want to use.
- Asynchronous @115,200 baud
- Synchronous
- SPI
I am not worried about prop pin count, so I could use anyone of them. But I don't know the pros and cons of each of them. Could someone please help me out?
Thanks
TC
Comments
Plus, asynchronous is dead easy.
I'd say #1 is a safe bet unless there's a good reason to use synchronous. (BTW, SPI is one of several many synchronous protocols).
SPI is a clocked (synchronous) protocol, not really standardized, that uses two I/O pins, one for data and one for a clock. Because it's clocked, it can generally run faster than asynchronous. Because it's not standardized, you generally have to write (or modify) your own specific driver.
Synchronous doesn't tell us much. It could mean SPI or some other "custom" protocol. It's clocked ("synchronous"), so it would run faster than an asynchronous connection
That is what I was assuming, but I still wanted to check. Thanks
I can see that. My other display I used serial_ASM with no problems.
I am assuming if a driver was done in PSAM it would be faster. If so, guess that will be another project/learning added to my list of stuff to do.
From the datasheet, the only difference I can find between Synchronous and SPI, is SPI has a Chip Select input.
Synchronous means clocked. The receiver knows when to sample the incoming data due to the synchronizing clock signal.
These definitions are openly available in Wikipedia or a general internet search.
Which is better or faster Asynchronous, SPI, or other is a bit like comparing apples and oranges.
SPI is a type of synchronous serial interface. Synchronous is a property of the SPI protocol. There are many types of synchronous interfaces.
Sure, because PASM is faster than SPIN but only if written well. It's certainly possible to write a serial PASM driver that is slower than its SPIN counter part.