I am new to this ST32, i want to read values of current, voltage & power values by using nrf board. there is any sample codes for sending commands to st32 and read from this st32 i need help.
Thanks in Advance.
I am new to this ST32
What is, "ST32" ?
Do you mean STM32 (the microcontroller family), or STPM32 (power meter) ?
Have you looked at the documentation & other support resources on the STPM32 product page:
STPM32 - ASSP for metering applications with up to four independent 24-bit 2nd order sigma-delta ADCs, 4 MHz OSF and 2 e…
Thanks for response Andrew.
Actually it is power meter only, in my project power meter is one of the application. My need is to read all these parameters(current, voltage & power) values by using uart communication & I am using nrf5 series microcontrollers for receiving data. I am asking for there is any samples code for reading data from this power meter (STPM32TR).
Thanks & Regards,
Ramalingeswar Rao wrote:I am asking for there is any samples code for reading data from this power meter (STPM32TR).
Ramalingeswar Rao wrote:
I am asking for there is any samples code for reading data from this power meter (STPM32TR).
Again, did you look on the Product Page?
That's where it would be!
There is a document, "Getting started with the STPM3x" - have you read it?As its name suggests, it would seem to be the obvious starting point ...
very simple: find a current, voltage & power sensor that outputs using UART. then write a piece of code that runs on your STPM32TR that reads from that sensor.
Errr ... the STPM32TR is the sensor - so the task is to write some code on a host device (OP has nRF5) that reads values from it.
Perhaps the OP first needs to learn to use the UART on the nRF5 ... ?
Andrew Neil wrote:
"the task is to write some code on a host device (OP has nRF5) that reads values from it"
yes Andrew, i am trying to write that code. It needs any particular commands on host? if want i need that commands.
thanks for"Getting started with the STPM3x"
i am just put look on it.
if want i need that commands.
if want i need that commands.
They will be detailed in the product documentation
thanks for"Getting started with the STPM3x" i am just put look on it.
You mean you hadn't even looked at it before posting here?!
The first thing you need to do when starting with any new component is to familiarise yourself with the available documentation and support materials!
" The first thing you need to do when starting with any new component is to familiarise yourself with the available documentation and support materials! "
Sorry for that Andrew, Actually i am new to forum discussion also... and thank you for suggestion. if i get any problem i'll put my exact problem. yeah this document having information of what i am looking...
That implies adoption of a structured approach, which supposedly should have been teached.
That seems not the case everwhere.
Honestly no offense to the OP intended.
The UART communication protocol is described on page 71 and below the official document. http://www.st.com/resource/en/datasheet/stpm32.pdf By description: the request is the answer. You need to fill in the actual values with internal registers STPM32TR - for a one-time or a cyclic response.The use of such a chip - only for total energy accounting. In other cases, it is easier to apply a software implementation of the algorithm.
Sorry for delay, actually i am gone through that pdf i am unable to construct Exact code for that communication, That means i don't get information about registers. can u suggest source code for that. thanks in Advance.
Have you looked at what's available on the Product Page yet?
Retrieving data ...