<?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>How to read and write to registers of MMA7660 using TWI</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/20284/how-to-read-and-write-to-registers-of-mma7660-using-twi</link><description>Hi,
i am working on TWI sensor example in SDK1. in which i connected SCL And SDA pins tonRF52 dk boards sca and scl pins. and connected voltage and ground. when i run the application on board i am getting x,y,z values and when i shake the board its able</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 03 Apr 2017 14:05:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/20284/how-to-read-and-write-to-registers-of-mma7660-using-twi" /><item><title>RE: How to read and write to registers of MMA7660 using TWI</title><link>https://devzone.nordicsemi.com/thread/79011?ContentTypeID=1</link><pubDate>Mon, 03 Apr 2017 14:05:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd2778e1-7316-435c-bc67-2aa71f929ec7</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;In order to enable Tap detection in the device the user must enable the Tap Interrupt in the INTSU (0x06) register and AMSR [2:0] = 000 in the SR (0x08) register. In this mode, TILT (0x03) register, XOUT (0x00), YOUT (0x01), and ZOUT (0x02) registers will update at the 120 samples/second.
The user can configure Tap Detection to be detected on X and/or Y and/or Z axes. The customer can configure this by changing the XDA, YDA, and/or ZDA bit in the PDET (0x09) register. Detection for enabled axes is decided on an OR basis: If the PDINT bit is set in the INTSU (0x06) register, the device reports the first axis for which it detects a tap by the Tap bit
in the TILT (0x03) register. When the Tap bit in the TILT (0x03) register is set, tap detection ceases, but the device will continue to process orientation detection data. Tap detection will resume when the TILT (0x03) register is read.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to read and write to registers of MMA7660 using TWI</title><link>https://devzone.nordicsemi.com/thread/79010?ContentTypeID=1</link><pubDate>Wed, 15 Mar 2017 05:14:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f08b43cd-2a20-449b-bfc0-cc03e42dc11e</guid><dc:creator>saiteja</dc:creator><description>&lt;p&gt;Hi Thank you for reply, i am using TWI_Sensor example code to get Accelerometer(MMA7660) data it is giving XYZ and shake info. here what can be the  sample rate i need to use to get TAP. here i am using NRF_TWI_FREQ_400K.&lt;/p&gt;
&lt;p&gt;the first thing is i am unable to read and write on registers in accelerometer(that i already mentioned). once againg thank you very much for responding.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to read and write to registers of MMA7660 using TWI</title><link>https://devzone.nordicsemi.com/thread/79009?ContentTypeID=1</link><pubDate>Tue, 14 Mar 2017 14:21:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ec32bdb-39be-4d9b-a929-70e4a7db0865</guid><dc:creator>dav lion</dc:creator><description>&lt;p&gt;I&amp;#39;m using the MMA7660 in a production board, and gave up trying to get Tap to work.   Shake works great, both sampled and as an interrupt source.  XYZ values read perfectly.   The spec-sheet for the chip notes that Tap is only available when sampling rate is set very high (== higher battery consumption), so you might try that, though I did, without success.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to read and write to registers of MMA7660 using TWI</title><link>https://devzone.nordicsemi.com/thread/79008?ContentTypeID=1</link><pubDate>Thu, 09 Mar 2017 09:19:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d35dc6e9-febf-4395-b2c6-b59ad74f76b6</guid><dc:creator>saiteja</dc:creator><description>&lt;p&gt;yes i tried it. it is giving NRF_SUCCESS return value. but i am unable to read the register value.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to read and write to registers of MMA7660 using TWI</title><link>https://devzone.nordicsemi.com/thread/79007?ContentTypeID=1</link><pubDate>Thu, 09 Mar 2017 08:04:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:203fb3a2-7da1-40df-9fea-0b534439e71e</guid><dc:creator>Alex</dc:creator><description>&lt;p&gt;Did you try to follow this note &lt;code&gt;&amp;quot;NOTE: To write to the registers the MODE bit in the MODE (0x07) register must be set to 0, placing the device in Standby Mode. &amp;quot;&lt;/code&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to read and write to registers of MMA7660 using TWI</title><link>https://devzone.nordicsemi.com/thread/79006?ContentTypeID=1</link><pubDate>Wed, 08 Mar 2017 13:03:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06a3979d-a94e-43c1-b793-2dfc64e54c04</guid><dc:creator>Alex</dc:creator><description>&lt;p&gt;I&amp;#39;m not familiar with MMA74660 but after writing to any register how do you know if it was changed or not if before printf you don&amp;#39;t read register back from MMA74660? Also looking at datasheet found &amp;quot;NOTE: To write to the registers the MODE bit in the MODE (0x07) register must be set to 0, placing the device in Standby Mode. &amp;quot;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>