Skip to main content
Arduino

Timeline for how many processor cycles/time does it minimaly take to transmit 1 Byte via Serial?

Current License: CC BY-SA 3.0

7 events
when toggle format what by license comment
Apr 13, 2017 at 12:50 history edited Community Bot
replaced http://arduino.stackexchange.com/ with https://arduino.stackexchange.com/
Sep 14, 2015 at 6:10 comment added humanityANDpeace I have already ordered for a black beagle bone. It combines in one device what I wanted to achieve via a "Arduino extended BananaPi". I simply could learn from your answer and comment and hence revisited and thought. thank you
Sep 14, 2015 at 5:49 comment added Nick Gammon Most of the "store" instructions are two clock cycles, so yes, it would take two clocks to load up the UART register, so it can start sending. Then, remember, that serial has a start and stop bit, so that is 10 bits per byte, not 8. I'm not sure if the Atmega16U2 will support 2 Mbps rate when communicating with the Atmega328, but even if it did, it takes more than zero clock cycles to then send this data in/out the USB port. I think you are flogging a dead horse here.
Sep 14, 2015 at 5:38 comment added humanityANDpeace communicate with the chip somehow As suggested in the answer from @Majenko there would be a SFR in which the Atmega328 but the 8 bits (complete 1 Byte). It seems that such a step would be atomic 1 or 2 Atmega328 cycles. So is the "fastest communication rate" between the Atmega328 and the Atmega16U2 the 1 byte each 16 clocks?
Sep 13, 2015 at 20:53 comment added Nick Gammon if I had another UART chip - no, because you need to communicate with this chip somehow. The fastest method would be SPI which can send one byte every 16 clock cycles.
Sep 13, 2015 at 7:07 comment added humanityANDpeace you tell it right Nick, indeed the quesiton was in line with the other inquiry about implementing a firmata/bitflash type of protocol related to pass on 1-wire data. As @Majenko pointed out, in addition to my own calculations the time requirements are at best hardly matched. I thank you for your answer, I liked it and maybe can inquire that if the I had another UART chip than the Arduino Uno's Atmega16U2-MU which worked at a higher at say 32Mhz I had changes to Serial sent more than one byte per cycle of the Atmega328P, did I get that right?
Sep 12, 2015 at 23:06 history answered Nick Gammon CC BY-SA 3.0

AltStyle によって変換されたページ (->オリジナル) /