Hi...
how to configure lmp90100 internal registers for strain guage weight application.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi...
how to configure lmp90100 internal registers for strain guage weight application.
Hello Andre,
Go to the LMP90100 web page on ti.com. On the right side of the page there is a Webench box. Select Load and then click on Open Design. Follow through on the instructions and when you are done you can save the register settings. You can then adjust them as needed for the load cell you are using.
Mike
Hi Andre,
The sample register value setting that I gave above is for a load cell connected to VIN0 and VIN1 and using VREFP1 and VREFN1. Since that is your setup it should be good for you.
Using the register values from above:
0x12 00010000 (I AM ASSUMING YOU ARE USING AN EXTERNAL CLOCK IN THIS EXAMPLE)
0x1F 00000000
0x20 00000001
0x21 01111000 start with a gain of 16 which may need to be modified
0c0B 00000001 to restart the conversion
You would write the following using the examples in 9.5.14:
0x12 00010000: Data sent: 0x10 0x01 0x02 0x10 (2 bytes setting URA to 1, 1 byte setting lower part of address to 2, 1 byte of data)
0x1F 00000000: Data sent: 0x0F, 0x00 (URA not needed because stays the same as previous, 1 byte setting lower part of address, 1 byte of data)
0x20 00000001: Data sent: 0x10 0x02 0x00 0x01 (2 bytes setting URA to 2, 1 byte setting lower part of address to 0, 1 byte of data)
0x21 01111000: Data sent: 0x01, 0x78 (URA not needed because stays the same as previous, 1 byte setting lower part of address, 1 byte of data)
To read the ADC registers you would send:
0x10, 0x01, 0xEA, 3 bytes of clock to read the data. (2 bytes setting URA to 1, 1 byte setting lower part of address to A and setting to read 3 bytes, 3 bytes of data)
Mike
Hi Mike,
yes it is load cell connected to VIN0 and VIN1 and using VREFP1 and VREFN1. i am using internal clock ( 0x12 - 0x20 ( 00110000)).
I think for this we don't need use any current sources (IB1 abd IB2 of lmp90100),
thank you
Andre
Hi Andre,
That is correct, you will not use the IB1 and IB2 sources for this.
The output is read through the SPI. The D6 pin only shows when there is data ready to be read out by SPI.
Mike
hi Mike
what will be the state of D6 pin (1 or 0 ) if adc data is ready to read, can i make D6 to high when adc conversion data is available to read and D6 to 0 when there is no data to read.
actually i tried to make like that to read 1 through D6 by connecting D6 to digital pin of arduino and using digitalRead(); but i am getting only 0 every time,
i configured register as (SPI.transfer(0x01); SPI.transfer(0x08);) in this configuration Routing DRDYB to D6, Am I right??
Andre