<?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: Noob reports on Maple Ret6 DAC and Upload from IDE on Windows XP, Remove LED?</title>
		<link>http://forums.leaflabs.com/topic.php?id=1401</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:24:05 +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=1401" rel="self" type="application/rss+xml" />

		<item>
			<title>gbulmer on "Noob reports on Maple Ret6 DAC and Upload from IDE on Windows XP, Remove LED?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1401#post-8427</link>
			<pubDate>Thu, 01 Mar 2012 09:51:26 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">8427@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;If you get the High density STM32F103 data sheet:&#60;br /&#62;
&#60;a href=&#34;http://www.st.com/internet/com/TECHNICAL_RESOURCES/TECHNICAL_LITERATURE/DATASHEET/CD00191185.pdf&#34; rel=&#34;nofollow&#34;&#62;http://www.st.com/internet/com/TECHNICAL_RESOURCES/TECHNICAL_LITERATURE/DATASHEET/CD00191185.pdf&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;You can see that the DAC's are on pin PA4 and PA5 (Port A, bit 4, and 5), which are pin 20 and pin 21.&#60;br /&#62;
In &#34;Table 5. High-density STM32F103xx pin definitions&#34;, you can see the other functions on those pins:&#60;br /&#62;
LQFP64 20, PA4: SPI1_NSS  USART2_CK  DAC_OUT1  ADC12_IN4&#60;br /&#62;
LQFP64 21, PA5: SPI1_SCK  DAC_OUT2  ADC12_IN5&#60;/p&#62;
&#60;p&#62;So, yes, those can be sampled by either ADC 1 or ADC 2. LeafLabs libmaple library only uses ADC1.&#60;/p&#62;
&#60;p&#62;Yes, the LED being on the DAC2 pin is sad. IIRC, the RET6 board is the same PCB as a Rev5 Maple, so there were no changes to give better access to the extra MCU resources.&#60;/p&#62;
&#60;p&#62;The main problem (I can think of) with using DAC2 is some of the LeafLabs code relies on using the LED on pin13 to signal events. So if you do connect something to the DAC output, without changing any code, there is a risk of having that pin driven as a digital output.&#60;/p&#62;
&#60;p&#62;AFAIK, all of that is controlled by a #define in the bootloader, and the 'pin map' which is different for each board.&#60;br /&#62;
So you change the 'pin 13' #define in the bootloader, and fix the library with a new pin map, and that should solve those problems (search this forum for more detail).&#60;/p&#62;
&#60;p&#62;It might be worth asking LeafLabs, or anyone else, if they have a version of code which does that already.&#60;/p&#62;
&#60;p&#62;(Full disclosure: I am not a member of LeafLabs or Olimex staff)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>MediumKahuna on "Noob reports on Maple Ret6 DAC and Upload from IDE on Windows XP, Remove LED?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1401#post-8415</link>
			<pubDate>Wed, 29 Feb 2012 16:53:58 +0000</pubDate>
			<dc:creator>MediumKahuna</dc:creator>
			<guid isPermaLink="false">8415@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;New to Leaf and just got some Maple RET6s&#60;br /&#62;
Just wanted to report my (pleasant) experience as a new user and using the DAC on a RET6&#60;/p&#62;
&#60;p&#62;So far I love everything about this community.&#60;br /&#62;
You guys do all the right stuff, the best way and aren't even snobby about it.&#60;br /&#62;
I think the hardware is very slick (but, of course, I want more).&#60;/p&#62;
&#60;p&#62;I've had no problems installing software, finding or understanding documentation (Windows XP SP3).&#60;/p&#62;
&#60;p&#62;The only annoyance (as warned in the documentation) is some flakiness during Upload from the IDE under Windows. The process hangs just before it starts making Xs to show upload progress. I can always fix the condition by putting the Maple in permanent upload mode (reset and hit &#34;BUT&#34; like the installation instructions) and hitting Upload again. It hangs some 15% of Upload attempts.&#60;/p&#62;
&#60;p&#62;The DAC on the RET6 has two channels: 1 and 2&#60;br /&#62;
Channel 1 is on Pin 10 and channel 2 is on Pin 13 of the Maple.&#60;br /&#62;
As mentioned in the Maple RET6 Edition, dac channel 2, Pin 13 is also &#34;The LED&#34;.&#60;br /&#62;
Besides the pin numbers, everything you need to know is in one wiki page (search &#34;dac&#34;).&#60;br /&#62;
I just copy/pasted the code from the wiki and was up and running.&#60;br /&#62;
I haven't tried anything fancier than just writing to the dac but that seems to work fine and puts the dac in buffered mode like its supposed to.&#60;br /&#62;
I only tried channel 1.&#60;br /&#62;
It also appears that you can analog read the dac pin. I haven't verified this in the hardware documentation so it could be a &#34;ghost&#34; connection. I'm going to run it down as this could be handy for Sigma calculations.&#60;/p&#62;
&#60;p&#62;I'm, just now, contemplating the ramifications of removing &#34;The LED&#34; to better expose my other dac channel. Anyone have any thoughts on this.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
