<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>12bit Analog to Digital interface to 8bit mcu problem</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/25977/12bit-analog-to-digital-interface-to-8bit-mcu-problem</link><description> 
Hello, 
I have a problem with 12bit ADC (ads7844) 
with 8 analog channels and SPI interface to the mcu. 
The problem is that I am using 8 bit mcu (SPDAT register is 8 bit)
and the data that the adc convert is 12 bit, how can I store the data
? 

 
another</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: 12bit Analog to Digital interface to 8bit mcu problem</title><link>https://community.arm.com/thread/65869?ContentTypeID=1</link><pubDate>Sun, 12 Sep 2010 04:33:11 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:ffc4082b-806a-4d41-b540-a0352d4cfeb1</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
You can store the data in a 16-bit variable. Or you can pack your
data and store two samples in 3 bytes.&lt;/p&gt;

&lt;p&gt;
But note that some 12-bit converters don&amp;#39;t like a SPI controller
that can&amp;#39;t perform a 12-bit SPI transfer. Doing two 8-bit transfers
or a single 16-bit transfers can result in the extra 4 bits
destroying extra state inside the converter.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>