Ok, I revisited the code that you suggested. I can not find your reference, please tell me where this file is located. App-Bios.h only defines terms and parameters. It also defines some routine headers and that is to be expected, but even in the routine headers, there is no mention of trigger detection routines here.Slimfish wrote:A fool's bet. Yeah. I did look into STM the code, did you? Of course not, because you are wrong again. Look @ BIOS.h, process.c (__set function) and you will understand (i hope so). And again, what would be the purpose of sampling at 72 Msps when you can not trigger with a precision of more than 1us (in case internal ADC would be used)?.lygra wrote:This is a fool's bet for someone who doesn't know the FPGA source code. But that FPGA source code may not be necessary if you look at the STM source code and find it's triggers source.
If you visit the App-process.c, there appear to be three routines relevant to trigger detection. Those routines are "Update Trigger", "Synchro", and "Process". Now my Chinese is a little rusty (actually non-existent), but it appears to me that the "Update Trigger" routine is setting the trigger levels to look for, the "Synchro" process determines what kind of trigger to look for, and then "Synchro" uses the "Process" process to go and scan the various channel capture buffers looking for those trigger conditions. Of course, "Process" is also looking for many other parameters at the same time.
Now I don't claim to be as knowledgeable as yourself in "C-language", so maybe you could point out which lines in the App-process.c files indicate that my observations here are incorrect.
Thanks