Jump to content
  • 0

DigitalDiscovery: DDR data sampling in sync mode


HoWei

Question

Hi,

I am sending slow DDR data to DIN0,1,2 as DIN0 = DDR_clk,   DIN1,2 = DDR_Data

In Waveforms I created  used "sync-Trigger" and created a bus with "either-edge"  interpretation. The captured data look correct:

image.png.d71c2d3cd3aba496b776ddcd0c5702c2.png

 

I try to do the same thing in  python3 via SDK using the example "DigitalIn_Sync.py". There I do not receive/capture the "falling-edge" data. It only capture the "rising-edge" data.

The captured file looks like: 7,3,7,3,7,3,7,3,....

 

How can I modify the code to capture the "falling-edge" samples ?

 

 

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Just found that modifying the following line will do the correct thing:

# trigger detector mask:          low &     hight & ( rising | falling )
dwf.FDwfDigitalInTriggerSet(hdwf, c_int(0), c_int(0), c_int(1), c_int(1))  <-- the 2 last 1s are causing rising and falling edge detection !

Outputfile will be: 7,4,3,0,7,4,3,0,7,....

 

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...