<?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: Using USART CK pin for different purpose after Serial.begin()</title>
		<link>http://forums.leaflabs.com/topic.php?id=1147</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:07:58 +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=1147" rel="self" type="application/rss+xml" />

		<item>
			<title>HDS on "Using USART CK pin for different purpose after Serial.begin()"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1147#post-7135</link>
			<pubDate>Thu, 10 Nov 2011 13:55:39 +0000</pubDate>
			<dc:creator>HDS</dc:creator>
			<guid isPermaLink="false">7135@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Just GREAT!&#60;br /&#62;
tx for reply. This makes many things much easier here... (Shield design, connector positions)&#60;/p&#62;
&#60;p&#62;BTW: tried a serial bitbanging also with other pin(s)&#60;br /&#62;
Pin 13 Dedicated also to peripheral SPI, 1_SCK.&#60;br /&#62;
Here I notice strange chars on the LCD about each half second mixing with the transmitted chars...&#60;br /&#62;
Explanations?&#60;/p&#62;
&#60;p&#62;5 min later: EDIT:&#60;br /&#62;
BOARD_LED_PIN: 13 - I'm using this in the loop to signalize LCD communication...&#60;br /&#62;
(Ashes to ashes, dust to dust, brickheads to brickheads...)&#60;/p&#62;
&#60;p&#62;But: Again thanks for your  clearifying statement ;))
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mbolivar on "Using USART CK pin for different purpose after Serial.begin()"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1147#post-7072</link>
			<pubDate>Wed, 02 Nov 2011 14:38:44 +0000</pubDate>
			<dc:creator>mbolivar</dc:creator>
			<guid isPermaLink="false">7072@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;We only touch the TX and RX pins from within Serialx.begin(), so using the other pins as regular INPUT or OUTPUT should just work.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>HDS on "Using USART CK pin for different purpose after Serial.begin()"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1147#post-7063</link>
			<pubDate>Tue, 01 Nov 2011 13:27:49 +0000</pubDate>
			<dc:creator>HDS</dc:creator>
			<guid isPermaLink="false">7063@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hi, &#60;/p&#62;
&#60;p&#62;I am using pin 6 (Maple rev5) for serial communicaion with an LCD 2.5 from Sparkfun, but also Serial1 for the communication with another processor.&#60;br /&#62;
According to the general pin map, pin 6 is beeing dedicated to Serial1.CK.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;void setup() {
    pinMode(pinLCD, OUTPUT); //Pin 6 to LCD, 5 V tolerant
    pinMode(BOARD_LED_PIN, OUTPUT); //Watchdog-LED
    Serial1.begin(57600); //subproc-Serial
    Serial2.begin(9600);  //Motorcontroller
    LCD.begin(38400);     //Bitbanging-LCDSerial at pin 6

    pinMode(9, OUTPUT); //DTR to subproc
    digitalWrite(9,LOW);//subproc-reset
    delay(10);
    digitalWrite(9,HIGH);
    delay(2000);
    //LCD.ClearDisplay();
    delay(10);
    //LCD.print( s_plashA );
    delay(10);
    //LCD.print( s_plashB );
    delay(2000);
    SerialUSB.println(s_plashA);
    SerialUSB.println(s_plashB);
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;At the pin 6, which drives the LCD via SoftwareSerial (bitbanging) I never had any clock signal from the USART1, which definitely would have printed something strange on the LCD.&#60;br /&#62;
In the loop, there is - by the time now - never at the same time communication with the Serial1 and the LCD.&#60;/p&#62;
&#60;p&#62;My question(s) is(are) now:&#60;br /&#62;
A) Do I bring the chip into danger by using the CK-pin of an activated USART for different purpose - (which indeed works seemingless right now), or &#60;/p&#62;
&#60;p&#62;B) is this pin never used by the USART due to its parameters (synchronous/asynchronous??) after Serial.begin(Baudrate)?&#60;/p&#62;
&#60;p&#62;C) And what about the other USART pins except (TXn, RXn), could they be reused the same way, when initialized as Input / Output pins before the Serial[n].begin()?&#60;/p&#62;
&#60;p&#62;So- these are questions primarily posed to the folks from leaflabs...&#60;br /&#62;
Would be pleased if there might be a short answer...&#60;br /&#62;
(Forgibe any misspellings - am no native english speaker)&#60;br /&#62;
;-)
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
