Serial driver and gap between each character
Posted: Mon Jun 19, 2017 2:08 am
Hi,
I'm testing Serial driver performance.
A simple program only calls
[font=Courier New]sdWrite(&SD1, buf, 64);
chThdSleepMilliseconds(500);[/font]
in the main loop.
SD1 is set to 115200 and 921600 respectively. All ChibiOS debug checks are disabled.
As can be seen from the attached screenshot.
For 115200 baud, there is a 4.54us gap in between two characters.
While for 921600 baud, the gap increased to 19.62us
I understand the gap may be caused by lock/unlock, signaling in the ISR, but why is so that it varies so much for different baud rate?
Thanks
I'm testing Serial driver performance.
A simple program only calls
[font=Courier New]sdWrite(&SD1, buf, 64);
chThdSleepMilliseconds(500);[/font]
in the main loop.
SD1 is set to 115200 and 921600 respectively. All ChibiOS debug checks are disabled.
As can be seen from the attached screenshot.
For 115200 baud, there is a 4.54us gap in between two characters.
While for 921600 baud, the gap increased to 19.62us
I understand the gap may be caused by lock/unlock, signaling in the ISR, but why is so that it varies so much for different baud rate?
Thanks