<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/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/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>nRF52832&amp;#39;s SPI &amp;amp; ADS7042</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39443/nrf52832-s-spi-ads7042</link><description>I need to interface an nRF52832 with ADS7042, hence the following questions: 
 1) as ADS7042 requires 14 clock cycles per read cycle, is the nRF52832 SPI API applicable in this case, or we will be forced to prepare our custom code to control the SCLK</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 15 Oct 2018 09:35:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39443/nrf52832-s-spi-ads7042" /><item><title>RE: nRF52832's SPI &amp; ADS7042</title><link>https://devzone.nordicsemi.com/thread/152829?ContentTypeID=1</link><pubDate>Mon, 15 Oct 2018 09:35:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5628e6cc-735b-4b6c-8218-0227908620c2</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The SPI peripheral of nRF52832 can be configured to read a number of bytes. The datasheet of&amp;nbsp;&lt;span&gt;ADS7042 say the SDO line will be keept low after 14 SCKs. You simply ignore the additional bits read by the nRF.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;There is no need to bit-bang the SPI protocol, any SPI device should be supported by the nRF52832. In case you want to control the lines manually, you need to configure the GPIOs as well. The SPI driver will not configure GPIOs for you, as it connects the pins to the SPI peripheral and not drive the pins manually.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>