It would be great to put your fix in pmos69 firmware. Now I’m usnig a DSO_Sm_JTV_V1.71 and satisfied with it, but I would like to use the new features without losing the correct operation of single-mode.
There is another issue I have to report here. The wave out (analog) seems to be off by one index. If it is generating 1kHz, the output is actually 500Hz. I caught this while looking at the FFT display of frequency.
I’ve been able to fix the analog outputs by changing this table </s><i>
</i>A_tab A_Tab[15] ={ // analog waveform output driver table synthesis, based on the 72MHz frequency, per 36
// STR PSC ARR
{"! 1Hz !", 20-1, 50000-1},
{"! 2Hz !", 20-1, 20000-1},
{"! 5Hz !", 20-1, 10000-1},
{" 10Hz ", 20-1, 5000-1},
{" 20Hz ", 10-1, 2000-1},
{" 50Hz ", 10-1, 1000-1},
{"!100Hz!", 10-1, 500-1},
{"!200Hz!", 10-1, 200-1},
{"!500Hz!", 10-1, 100-1},
{" 1KHz ", 10-1, 50-1},
{" 2KHz ", 10-1, 20-1},
{" 5KHz ", 10-1, 10-1},
{"!10KHz!", 10-1, 5-1},
{"!20KHz!", 10-1, 2-1},
{"!40KHz!", 4-1, 5-1}}; // this value is wrong
<e>
However, some of the frequencies are not correct - but near and I do not know what to change to set it right. I am new to the STM32 and also the toolchain.
I do not have a reference to the SYS1.52 sources which seem to have the __Set(ANALOG_PSC) command. It is not in the SYS1.51 source. See this fragment [code]/*******************************************************************************
Update_Output:
*******************************************************************************/
void Update_Output(void)
{