Jump to content
  • 0

Digital Discovery I2C - 16 bit memory addressing


arang

Question

10 answers to this question

Recommended Posts

  • 0
10 hours ago, JColvin said:

Hi @arang,

I believe that only 7-bit addressing is supported, at least as per the post from the developer here:

which is also still the case in the latest beta version (3.21.29, https://forum.digilent.com/topic/8908-waveforms-beta-download/) at time of writing. I have not heard any plans to change this.

Thanks,
JColvi

 

Thanks @JColvin

The device slave address is 7 bit address. The device memory addressing is 16 bit .
I understand that we have to use sub address in the Waveform. How the sub address need to be specified ? say 00h 00h ?
I see the device is reading garbage, the readback values are wrong!



image.thumb.png.008501d0ed0aed6d372f542d9d742ca6.png

Edited by arang
Link to comment
Share on other sites

  • 0

@attila Thanks.
I am using the h as prefix and still, the readback values from the device is not correct! See picture below.
Note: I have connected SCL, SDA using a pull up resistor to DIO 27 ( 3.3V ) 
In the picture below- tried to  write bytes 1 2 3 ,  but read back as 2,2,2..
The device Ack's and I see no issue. But the readback values are wrong!
Thanks

image.thumb.png.a4d0a9cf3a823080507383b0ff340f39.png

Link to comment
Share on other sites

  • 0

Thanks again @attila
I see there is only one byte sent after the start!Fixed it now.

Please see below, even after sending 2 bytes, when I try to write and read, I get garbage values from the device.
What am I missing?

Note: SCL, SDA is pulled up using 1k resistor and connected to DIO 27 - 3.3V supply.
Thanks for your help.


image.png.367f7c13eee6a23ed410fc96266a6e37.png

Edited by arang
Link to comment
Share on other sites

  • 0

@attila Thanks
Let me be clear. I would like Digital Discovery to be the Master and my device to Slave.
Should I be using Master or Spy/Slave tab?
If I have to use Slave tab, Where can we specify the sub address to read 16bit  address.
From the pictures you sent, you have specified Sub address in Master tab and how it can be used by Slave tab?
Thanks.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...