<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[ChipMusic.org - LSDj Sync with microcontrollers]]></title>
		<link>https://chipmusic.org/forums/topic/19239/lsdj-sync-with-microcontrollers/</link>
		<description><![CDATA[The most recent posts in LSDj Sync with microcontrollers.]]></description>
		<lastBuildDate>Sun, 04 Dec 2016 22:30:12 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: LSDj Sync with microcontrollers]]></title>
			<link>https://chipmusic.org/forums/post/249675/#p249675</link>
			<description><![CDATA[<b><i>rebb says:</i></b><p>So got it working. Needed to ground SO,SD and SI pins.</p>]]></description>
			<pubDate>Sun, 04 Dec 2016 22:30:12 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/249675/#p249675</guid>
		</item>
		<item>
			<title><![CDATA[LSDj Sync with microcontrollers]]></title>
			<link>https://chipmusic.org/forums/post/249668/#p249668</link>
			<description><![CDATA[<b><i>rebb says:</i></b><p>I have been trying to make LSDj sync for my drum machine project, but so far no luck to make it sync to GB. <br />I am connecting output port (1-bit) to Game Boy link cable SC via level shifter (3.3v to 5v), connected GND to ground and put SI to 5v as arduino boy seems to do. </p><p>Code to send bits is:</p><p>&nbsp; timer tmr;<br />&nbsp; unsigned t;<br />&nbsp; while(1){<br />&nbsp; &nbsp; &nbsp;x &lt;: 0;<br />&nbsp; &nbsp; &nbsp; &nbsp; for(ticks=0;ticks&lt;8;ticks++) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x &lt;: 1; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x &lt;: 0; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp;tmr :&gt; t;<br />&nbsp; &nbsp; &nbsp; &nbsp;// add delay to t, wait until timer reaches that value<br />&nbsp; &nbsp; &nbsp; tmr when timerafter (t + PERIOD) :&gt; void;<br />&nbsp; &nbsp; }</p><p>So sending 8 bits of 1 to port (x), waiting for awhile and doing it again. This should be enough to LSDj to get sync, right?<br />I can check that individual bits are going to SC port with multimeter if i add lot of delay when sending bit to port. <br />Still LSDj stays in WAIT state with slave sync mode. Am i missing something crucial here or?</p>]]></description>
			<pubDate>Sun, 04 Dec 2016 15:14:15 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/249668/#p249668</guid>
		</item>
	</channel>
</rss>
