Skip to main content
Visitor II
November 24, 2024
Question

STHS34PF80 code to access SEL_ABS bit in ALGO_CONFIG register

  • November 24, 2024
  • 1 reply
  • 575 views

STHS34PF80 code needed to access SEL_ABS bit in ALGO_CONFIG embedded register Address: 28H using Arduino Nano

I would like to know how to generate the code to set SEL_ABS bit in ALGO_CONFIG embedded register using Arduino Nano Board as the micro-controller.

1 reply

Federica Bossi
Technical Moderator
November 26, 2024

Hi @mikeju ,

As reported in the section 2.1 of the AN5867, to access the embedded funcions registers, you must write the FUNC_CFG_ACCESS bit in the CTRL2 (21h) register to 1.

 

Then, you can change the values of all the embedded functions registers.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.