KlausST
Advanced Member level 7
Hi,
Klaus
Oh, I missed this. Thanks for pointing me this.They are doing this without hardware.
Klaus
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Oh, I missed this. Thanks for pointing me this.They are doing this without hardware.
I have given my best attempt I do not understand the register structure given in the datasheet. Figure 24. Register Structure page 16. It would be very big help o if you could help me to understand register structure. I cannot understand what value should be write to each register to read data stored in registers.
The register definitions are clearly stated in the tables.
The register structure is extremely simple it has a pointer register, which selects which register you will access.
Procedure is:
2a. Write register pointed to by the pointer register value written above.
- master sends data to the selected register pointed to by the pointer register
Hi,
Please keep the names of the datsheet to avoid confusion.
pointer --> for register address
register --> for data
For sure you need to transmit the pointer value.
As written in my posts and as written in the datsheet and as shown in Figure 30.
Klaus
start, slave address(0x50), Address Pointer register(0x00), Conversion Result Register MSB(0x00), Conversion Result Register LSB(0x00), stop
start, slave address(0x50), Address Pointer register(0x01), Alert Status Register(0x00), stop
start, slave address(0x50), Address Pointer register(0x02), Configuration Register(0x00), stop
start, slave address(0x50), Address Pointer register(0x04), VLOW Alert Limit Register MSB(0x00), VLOW Alert Limit Register LSB(0x00), stop
start, slave address(0x50), Address Pointer register(0x05), VHIGH Alert Limit Register MSB(0xFF), VHIGH Alert Limit Register LSB(0xFF), stop
start, slave address(0x50), Address Pointer register(0x06), VMIN Lowest Conversion Registerstop MSB(0xFF), VMIN Lowest Conversion Register LSB(0xFF), stop
start, slave address(0x50), Address Pointer register(0x07), VMAX Highest Conversion Register MSB (0x00), VMAX Highest Conversion Register LSB (0x00),sto
Your lines are not detailed or better say it's not complete.as per datasheet I2C Write should be something like following
...
But KlausSTs opnion is different from your opinion. He said we don't need to write register pointed to by the pointer register value where as you say " Write register pointed to by the pointer register value written above."
pointer register (register initially powers up at 0x00)