Since we have a lot to FPGA logic to spare, the FPGA could even catch the preset point in your project with something like this [code] – Start some counter somewhere
sig_preset_reached <= ‘1’ when ADC_sample > PRESET else ‘0’;
preset_capture: process(sig_preset_reached)
begin
if rising_edge(sig_preset_reached) then
– stop counter and output count
end process;
[/code]
The first part (combinatorial) can easily run in less than a ns, and the counter can be connected to the main sampling clock.
There are also R0 to R12 listings as well as Callers.
I have tried reloading older versions of everything and it still does it. I also loaded jpa’s flashtst.hex into app4 to see if it might have a problem in that slot but it worked fine. When I loaded pawn again it still does the hardfault.
Any help would be appreciated.
My gut tells me its because I loaded the logo file. I have not found a way to erase and start clean.
Let me back up and explain why I was asking about monitoring temp drift over time. I noticed drift when using the DSO with standard or alternative firmware when measuring RMS. This is about the same time I lost access to pawn. There is several volts drift after minutes.
I just checked the volt meter readout with pawn and it is rock steady. I also checked the Vref on the ADC.
Now I assume there is a bug in the RMS calculations.
I’m not sure if this has been covered before, but I am having some issues with compiling .p and .pawn programs using Quincy. I am using the latest version of Quincy, and I have PAWN_011.hex loaded onto the quad. I can run the pre-compiled examples (.amx files) but I am getting problems compiling my own.
The following code compiles fine:-
#include
main()
{
new a
new b
new c
a=22
b=7
c=a+b
printf("%d",c);
}
When loaded onto the DSO Quad and ‘Run’ I get:-
Loading of program SCRIPT1.AMX Failed:
Error 6: Invalid Instruction
If I try to compile some of the examples provided, like ‘weekday.p’ it compiles fine but when run on the DSO Quad I get the same Error 6 Failure.
Thanks jpa…that was the problem… I hadn’t picked up on the need to use the compiler in your Git repository…makes a big difference. Is there a list of commands for use with pawn for the DSO Quad?