<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>LeafLabs Garden &#187; Topic: Serial Port(s) (USART) Questions:</title>
		<link>http://forums.leaflabs.com/topic.php?id=83</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:19:31 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://forums.leaflabs.com/search.php</link>
		</textInput>
		<atom:link href="http://forums.leaflabs.com/rss.php?topic=83" rel="self" type="application/rss+xml" />

		<item>
			<title>poslathian on "Serial Port(s) (USART) Questions:"</title>
			<link>http://forums.leaflabs.com/topic.php?id=83#post-1074</link>
			<pubDate>Tue, 07 Sep 2010 15:37:25 +0000</pubDate>
			<dc:creator>poslathian</dc:creator>
			<guid isPermaLink="false">1074@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;ew, throbbing of death = assert fail. It sounds like this might just be a bad-assert bug. Ill take a look, thanks!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>leaflabsandy on "Serial Port(s) (USART) Questions:"</title>
			<link>http://forums.leaflabs.com/topic.php?id=83#post-1053</link>
			<pubDate>Mon, 06 Sep 2010 20:36:04 +0000</pubDate>
			<dc:creator>leaflabsandy</dc:creator>
			<guid isPermaLink="false">1053@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;IDE 0.0.6 &#60;/p&#62;
&#60;p&#62;Again ... Again ... Com 2 &#38;amp; 3 = 225 k baud max &#38;lt;-----???&#60;br /&#62;
                    Com 1     = 450 K baud max &#38;lt;-----???&#60;br /&#62;
I thought the max. baud problems were fixed!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!&#60;/p&#62;
&#60;p&#62;Why do I get an failed assert error when I put in 256K for com #1?&#60;br /&#62;
&#34;Error: Failed Asert: &#38;lt;!baud&#38;gt;usart_Max_baud.&#34;&#60;/p&#62;
&#60;p&#62;When I get this assert error also I get, for better words, &#34;The Blue LED Status Throbbing Of Death&#34;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bnewbold on "Serial Port(s) (USART) Questions:"</title>
			<link>http://forums.leaflabs.com/topic.php?id=83#post-664</link>
			<pubDate>Tue, 03 Aug 2010 00:30:46 +0000</pubDate>
			<dc:creator>bnewbold</dc:creator>
			<guid isPermaLink="false">664@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;As follow up, we did add a flush() command for the RX buffer in the 0.0.6 version of the IDE.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>leaflabsandy on "Serial Port(s) (USART) Questions:"</title>
			<link>http://forums.leaflabs.com/topic.php?id=83#post-522</link>
			<pubDate>Fri, 09 Jul 2010 04:56:14 +0000</pubDate>
			<dc:creator>leaflabsandy</dc:creator>
			<guid isPermaLink="false">522@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Quote: &#34;On 3, see 2, there's no buffer to flush, hence no flush().&#34;&#60;/p&#62;
&#60;p&#62;On the Arduino, Serialx.flush always referred to the receive buffer not the transmit buffer!&#60;/p&#62;
&#60;p&#62;Note: If you have garbage in the receive buffer you need to flush it out.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>perry on "Serial Port(s) (USART) Questions:"</title>
			<link>http://forums.leaflabs.com/topic.php?id=83#post-521</link>
			<pubDate>Thu, 08 Jul 2010 22:34:33 +0000</pubDate>
			<dc:creator>perry</dc:creator>
			<guid isPermaLink="false">521@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;I'm reworking the uarts as we speak, but currently:&#60;/p&#62;
&#60;p&#62;On 2, there's no tx buffer, usart sends are blocking and synchronous.&#60;/p&#62;
&#60;p&#62;On 3, see 2, there's no buffer to flush, hence no flush().&#60;/p&#62;
&#60;p&#62;4. You can set any rate up to the max of the uart. They aren't required to be fixed, the clock divisors are computed from the entered baud rate. You listed many common rates above. At the moment (as Bryan noted), they're limited to 225000, which is a bug that I didn't catch. There's a fix coming soon. &#60;/p&#62;
&#60;p&#62;Error checking is performed, you can't set a baud rate higher than the max baud rate.&#60;/p&#62;
&#60;p&#62;5. USART1 tops out at 4.5Mbits/s = 4500000 baud&#60;/p&#62;
&#60;p&#62;6. USART2 and USART3 are clocked from the slower APB1 bus, so they top out at 2.5Mbits/s = 2250000 baud.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bnewbold on "Serial Port(s) (USART) Questions:"</title>
			<link>http://forums.leaflabs.com/topic.php?id=83#post-520</link>
			<pubDate>Thu, 08 Jul 2010 22:16:17 +0000</pubDate>
			<dc:creator>bnewbold</dc:creator>
			<guid isPermaLink="false">520@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;#1-2, 64 bytes each in the low level implementation (see ./libmaple/usart.* and ./wirish/comms/HardwareSerial.* in libmaple for more details)&#60;/p&#62;
&#60;p&#62;#3: not implemented, noted&#60;/p&#62;
&#60;p&#62;#4-6: right now we &#60;code&#62;#define USART_MAX_BAUD 225000&#60;/code&#62; for all devices. For more details on the granularity of specific baudrates check out the STM32 hardware reference guide and see our implementation in ./libmaple/usart.c:usart_init(). I don't see any reason to restrict users to popular baudrates, but perhaps we should have a table of them in the docs to reduce confusion? They do mention 9600 baud as the most common already.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>leaflabsandy on "Serial Port(s) (USART) Questions:"</title>
			<link>http://forums.leaflabs.com/topic.php?id=83#post-469</link>
			<pubDate>Mon, 05 Jul 2010 09:22:09 +0000</pubDate>
			<dc:creator>leaflabsandy</dc:creator>
			<guid isPermaLink="false">469@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Platform: Windows XP SP3&#60;br /&#62;
Device: Maple Rev. 3&#60;br /&#62;
Version: 0.5.0 &#60;/p&#62;
&#60;p&#62;Serial Port(s) (USART) Questions:&#60;/p&#62;
&#60;p&#62;#1. What is the receive buffer size for the USARTS?&#60;br /&#62;
    Is it adjustable?&#60;/p&#62;
&#60;p&#62;#2. Does the Tx on the USART have also a buffer size?&#60;br /&#62;
    Is it also adjustable? &#60;/p&#62;
&#60;p&#62;#3. The Arduino serial command &#34;Serialx.flush()&#34; (all three ports) does not work eg compile?&#60;/p&#62;
&#60;p&#62;#4. What are the standard fixed baud rates for the serial ports?&#60;/p&#62;
&#60;p&#62;Note: On the Arduino they were fixed. In the setup using Serialx.begin(baud); fixed  baud error checking was performed. Not on the Maple?&#60;/p&#62;
&#60;p&#62;On the Maple, Inserting &#34;any&#34; value for the baud in Serialx.begin(baud); is OK and not checked for?&#60;/p&#62;
&#60;p&#62;#5. Is Max. baud rate for USART1 is 4.5 M/bits/sec ~ 450,000 baud?&#60;/p&#62;
&#60;p&#62;#6. Is Max. baud rate for USART2 &#38;amp; USART3 is 2.5 M/bits/sec ~ 250,000 baud? &#60;/p&#62;
&#60;p&#62;Ref. Standard / Special Baud Rates:&#60;/p&#62;
&#60;p&#62; Standard baud rates:&#60;br /&#62;
•110 •300 •600 •1200 •2400 •4800 •9600&#60;br /&#62;
•14400 •19200 •28800 •38400 •56000&#60;br /&#62;
•57600 •115200&#60;/p&#62;
&#60;p&#62; Special baud rates:&#60;br /&#62;
•128000 •153600 •230400&#60;br /&#62;
•256000 •460800 •921600
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
