Skip to main content
fog.1
Associate III
June 27, 2024
Question

TSC1641 power monitor IC dc power register cannot be read

  • June 27, 2024
  • 1 reply
  • 2656 views

i bought a TSC1641 evaluation board, I can't read the power information from the DC power register. I can successfully read shunt voltage, current, load voltage data.

the configuration is as follows:

Rshunt register value = 0x01F4; the shunt resistance on my semim development

board is 5 mili ohms.(decimal=500).

configration register value = 0x0037; conversion time 1024 µs (default),

7h: shunt and load voltage, continuous mode (default).

 

I check the FLAG register data zeroth (CVNF) bit to see if the data is ready,

but regardless of this, I do a reading at any time.does this cause problems

with reading dc power information?

 

fog1_0-1719484237228.png

 

1 reply

Andrew Neil
Super User
June 27, 2024

Print the value you're actually getting from the register - maybe the problem is in your calculation?

Correction:

AndrewNeil_0-1719484777128.png

What you're printing here is somehow arriving via a pointer - have you checked the point at which it's actually read from the chip?

Please use this button to properly post source code - rather than a screenshot:

AndrewNeil_2-1719484915476.png

https://community.st.com/t5/community-guidelines/how-to-write-your-question-to-maximize-your-chances-to-find-a/ta-p/575228

 

 

 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
fog.1
fog.1Author
Associate III
June 27, 2024

the decimal value I got from the recording is zero. therefore, the result of the multiplication used from the calculation of the actual power is also zero

fog.1
fog.1Author
Associate III
June 27, 2024

I am printing the value I read from the recording on the screen. the value returns as zero.