09-15-2010 12:11 AM
Hi,
I have a problem in generating the waveform as shown in JPG below. Have to generate 2 digital waveform
1. Using counter0 - digital waveform shall be with 60 pulse (58- valid pulse and 2 empty pulse)
2. Using Freqout - digital waveform should be in sychronize with signal one at 40 pulse signal 2 should become high for next 5 pulse.
I tried generating digital pattern using 2D Boolean array convert to digital waveform. But somehow I couldn't get the expected waveform.
If anyone could help me in this issue.
Thanks in advance
Vijay
09-16-2010 04:21 AM
Try this, create two tasks containing the digital output lines you want to generate the waveform.
Perform digital write on the tasks with two 1D Boolean arrays corresponding to the pattern you want to generate.
Give common clock to both timing vis used for each task.