Jump to content
  • 0

Digital pattern generator: on-the-fly pattern change


matt.zimm

Question

Hello,

I just bought a Digital Discovery. I'm currently working on a project with I2S. The Digital pattern generator is great for generating the clocks at the desired samping rates.

It would be really cool if I could slightly change the I2S clocks frequencies on-the-fly (in order to simulate a clock drift). Is this possible, for example with a script, to select between multiple predefined patterns, or is there always a delay (due to reconfiguration of the DD) before being able to change to another pattern ?

Thank you in advance.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Hi @matt.zimm

Adjusting the frequency (or any other settings) will restart the Pattern Generator which results a few milliseconds of stopped state.

You could use a ROM logic to switch between frequencies.
Like here DIO 24-25 are input clocks and DIO 31 is select for output on DIO 39
You can have more input clocks and 2-3-4 select signals. The select can also be driven by Patterns with slow clock or counter.

image.thumb.png.0eb67a8700a2bac0ea9b18e6f66df1f1.png

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...