Posted by: Jan
« on: November 03, 2023, 09:43:36 pm »Here's a simple script you can use:
Remarks:
The script reads internal undocumented register and works with firmware version 2.2 r6, operation with previous or future firmware is not guaranteed.
Value of 7367 covers a range from 18.997,5 to 19.000,0
Value of 7368 covers a range from 19.000,0 to 19.002,5
Unlike a frequency counter, the P275 does not contain TCXO so any frequency measurements are limited to accuracy of about +/- 0.005% (that is +/- 1 Hz for the pilot)
The P275 contains 19kHz NCO for the pilot recovery. Internally the pilot frequency is held with 32-bit precision. Higher word is at address 0x1B0C, lower word at address 0x1942. These addresses may differ accross the firmware versions.
We will consider adding a special command for getting the pilot frequency directly.
Code: [Select]
send(MEM 1B0C?v)
set(pltfreq,%lastmemvalue)
if (%pltfreq=0)
goto(pilot_none)
endif
if (%pltfreq<7367)
goto(pilot_failed)
endif
if (%pltfreq>7368)
goto(pilot_failed)
endif
goto(pilot_ok)
pilot_none:
textwindow.addline(No pilot or poor signal)
goto(pilot_end)
pilot_failed:
textwindow.addline(Pilot frequency failed)
goto(pilot_end)
pilot_ok:
textwindow.addline(Pilot frequency OK)
pilot_end:
Remarks:
The script reads internal undocumented register and works with firmware version 2.2 r6, operation with previous or future firmware is not guaranteed.
Value of 7367 covers a range from 18.997,5 to 19.000,0
Value of 7368 covers a range from 19.000,0 to 19.002,5
Unlike a frequency counter, the P275 does not contain TCXO so any frequency measurements are limited to accuracy of about +/- 0.005% (that is +/- 1 Hz for the pilot)
The P275 contains 19kHz NCO for the pilot recovery. Internally the pilot frequency is held with 32-bit precision. Higher word is at address 0x1B0C, lower word at address 0x1942. These addresses may differ accross the firmware versions.
We will consider adding a special command for getting the pilot frequency directly.