Hi Menahem Yudkovich,
I know that in the datasheet is mentioned that “the MPR121 registers read operation can be done at any time, either in Run Mode or in Stop Mode. However, the register write operation can only be done in Stop Mode. The ECR (0x5E) and GPIO/LED control registers (0x73~0x7A) can be written at anytime.” However, what this paragraph of the datasheet it trying to mean is that the Electrode Configuration Register (ECR) determines if the MPR121 is in Run Mode or Stop Mode, in other words, you can write to this register anytime when you want to go from RUN mode to STOP mode in order to make changes.
So, first you are getting 0x3C in Register 0x5E, then you need to go to Stop mode (0x5E = 0x00), and then change it to 0x0C in order to make what you are trying to do.
About the max distance that can be reached with the keypad, sorry, but we cannot quantify the proximity sense range of the MPR121 using the 13th proximity detection electrode, the reason is that it depends on multiple factors, i.e.:
+ The size of the electrodes (Langer sensing area gives longer proximity sensing distance),
+ Dielectric’s material,
+ Electrodes and Layout design,
+ Electric energy stored in the capacitance,
+ Electric Noise filtering, etc…
I would like to recommend you to read the following applications notes for a better understanding about how to use the MPR121 as a proximity sensor and the electrical considerations and layout patterns recommendations.
+ http://cache.freescale.com/files/sensors/doc/app_note/AN3893.pdf
+ http://cache.freescale.com/files/sensors/doc/app_note/AN3863.pdf
Have a great day,
Jose Reyes
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------