|
> http://www.cypress.com/contests/adm_scope_201103271.zip
I see - this isn't the current project. Since I cannot update this page anymore, and Cypress didn't post the final projects anywhere, I have uploaded it to hendriklipka.de/misc/adm_scope_20110421.zip (it's 13Mb). It contains bug fixes, several enhancements and (hopefully :9 better documentation.
It also contains a client - can you please use it testing also? It makes setting up the scope much easier.
> if triggerActive?16:0 then trig = 10H or 00H
> if (triggerActive?16:0) then OK
What I wanted to know was what the error was you have seen. I think the first line isn't even valid C... Also, I have reworked the whole triggering, please look at scope.c.
> I measure the triangular signal U = 0-0.1V / 0-5V (not <0) and F = 100 - 5000 Hz
> He served on both channels in parallel. For any amplitude and frequency I see step 2 bytes and figure2
Two questions:
- when looking at figure 2, the signals seem normal to me - there is a proper wave. What did you special to get figure 1?
- How did you get the 3 graphs shown in figure 2? Did you 3 consecutive measurements or are they from a single run (just scrolling the output)? When these are different measurements, did you restart the scope in between? (There was a bug with re-setting the DMA properly, which should have been fixed by the latest version)
> 1: send a set of bytes for example
> C001 0000 0001 or 8000 0200 00C0 0100 0000 2001
When I parse your second string properly, it sets the sample rate to about 1900Hz. This means that you get about 19 samples for a 100Hz wave - which corresponds to figure 1.
Can you verify these problems when using the supplied client? (When I did my tests, I used a sample rate of at least 100k for a 2kHz signal).
|