<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[ChipMusic.org - LSDj Sync with microcontrollers]]></title>
	<link rel="self" href="https://chipmusic.org:80/forums/feed/atom/topic/19239/"/>
	<updated>2016-12-04T22:30:12Z</updated>
	<generator>PunBB</generator>
	<id>https://chipmusic.org/forums/topic/19239/lsdj-sync-with-microcontrollers/</id>
		<entry>
			<title type="html"><![CDATA[Re: LSDj Sync with microcontrollers]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/249675/#p249675"/>
			<content type="html"><![CDATA[<p>So got it working. Needed to ground SO,SD and SI pins.</p>]]></content>
			<author>
				<name><![CDATA[rebb]]></name>
				<uri>https://chipmusic.org/rebb</uri>
			</author>
			<updated>2016-12-04T22:30:12Z</updated>
			<id>https://chipmusic.org/forums/post/249675/#p249675</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[LSDj Sync with microcontrollers]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/249668/#p249668"/>
			<content type="html"><![CDATA[<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>]]></content>
			<author>
				<name><![CDATA[rebb]]></name>
				<uri>https://chipmusic.org/rebb</uri>
			</author>
			<updated>2016-12-04T15:14:15Z</updated>
			<id>https://chipmusic.org/forums/post/249668/#p249668</id>
		</entry>
</feed>
