<?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>LIS3DH TWIM, reading instead of writing</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110380/lis3dh-twim-reading-instead-of-writing</link><description>Hello thats my code 
 
 and for a 2 days im completely stuck with reading data from LIS3DH, i guess my functions for writing and reading are fine. my read buff is just uint8_t read_buff[1] im setting ctrlreg1 to enable normal mode with 400hz frequency</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 19 Apr 2024 12:52:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110380/lis3dh-twim-reading-instead-of-writing" /><item><title>RE: LIS3DH TWIM, reading instead of writing</title><link>https://devzone.nordicsemi.com/thread/479712?ContentTypeID=1</link><pubDate>Fri, 19 Apr 2024 12:52:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc4930b1-8ff9-461d-b0a0-41604f0fd0a3</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I think you need to use the debugger and step line-by-line in your code and see what arguments that is passed to&amp;nbsp;nrfx_twim_xfer() each time it&amp;#39;s called. I&amp;#39;m sure that will clear up any confusion that you have,&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>