<?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: nokia lcd 9bit spi</title>
		<link>http://forums.leaflabs.com/topic.php?id=11851</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:20:47 +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=11851" rel="self" type="application/rss+xml" />

		<item>
			<title>gbulmer on "nokia lcd 9bit spi"</title>
			<link>http://forums.leaflabs.com/topic.php?id=11851#post-26345</link>
			<pubDate>Fri, 31 May 2013 10:26:20 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">26345@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;stafil - The STM32F103 in Maple and Maple-mini only support 8 or 16 bit SPI transfers. So you could try the hardware route and get a board with a newer MCU, like an STM32F3, STM32F4, STM32F05, for example on one of ST's Discovery boards.&#60;/p&#62;
&#60;p&#62;Or you could do it by 'bit-banging', which is changing the state of output pins in software.&#60;br /&#62;
Very helpfully, tlgosser has posted a link to code which does this on the thread &#60;a href=&#34;http://forums.leaflabs.com/topic.php?id=11844&#34; rel=&#34;nofollow&#34;&#62;http://forums.leaflabs.com/topic.php?id=11844&#60;/a&#62;&#60;br /&#62;
So you could try reading that, and come back with questions.&#60;/p&#62;
&#60;p&#62;How fast does the transfer need to happen? A carefully written software approach will run at a few megabits/second. So software SPI might be too slow.&#60;br /&#62;
Does the program need to do anything else? If it has to do a lot of other processing at the same time, software SPI might take too much processor time.&#60;/p&#62;
&#60;p&#62;In either case, you could 'make' you're own SPI. SPI is just a shift register, which are typically under $0.50, and with care two can be 'stacked' to make 9 bits. It could be loaded 9 bits at a time, or less bits if the MCU is short of pins. You'll look for Parallel In Serial Out (PISO) shift registers, for example 74HC165 (&#60;a href=&#34;http://uk.rs-online.com/web/p/counters-shift-registers/1697453/&#34; rel=&#34;nofollow&#34;&#62;http://uk.rs-online.com/web/p/counters-shift-registers/1697453/&#60;/a&#62;)&#60;/p&#62;
&#60;p&#62;The other SPI signal is a 'clock', which is a continuous square wave which runs will data is being moved. This would be generated by a timer output compare (PWM) pin.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>stafil on "nokia lcd 9bit spi"</title>
			<link>http://forums.leaflabs.com/topic.php?id=11851#post-26325</link>
			<pubDate>Fri, 31 May 2013 01:47:43 +0000</pubDate>
			<dc:creator>stafil</dc:creator>
			<guid isPermaLink="false">26325@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hi all,&#60;/p&#62;
&#60;p&#62;pls help me, how i programmed 9bit spi?&#60;/p&#62;
&#60;p&#62;Thx
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
