SETFREQ
The SETFREQ statement sets the target TCK frequency on all active Subchains and all subchains not currently available in the test remain unchanged. The new target TCK frequency will remain set on the active subchains until it is modified again or the test run is stopped. The new frequency persists after test reset sequences and test list loops. If any of the currently active subchains are reused by a different profile later in the same test list they will use the new target TCK frequency.
If SETFREQ is called while running a subchain test reset sequence, it will only set the target TCK frequency of that subchain.
The SETFREQ statement can only be used inside a JTAG block.
Projects created prior to XJTAG v4.0 open with Classic Scans mode selected. In this mode SETFREQ will change the single project TCK frequency.
When SETFREQ is called in a HOLDOFF block, all scans up to SETFREQ are flushed through, the target TCK frequency is then changed and HOLDOFF
is re-enabled.
A target TCK frequency is not a guarantee it will run at that exact speed. Rather it is only guaranteed it will not exceed it. It may run slower due to other factors in the project setup or the type of XJLink hardware used at runtime. GETFREQ will only return the target TCK frequency, not the effective frequency.
SETFREQ is also used to set the target TCK frequency for SWD.
To set the speed of PIO and External Hardware, use SET_UPDATE_TO_UPDATE_INTERVAL instead.
Syntax
SETFREQ ( INT frequency )
Parameters
- frequency
-
The target TCK frequency is specified in Hz and in the range 10 kHz to 166 MHz, in 10 kHz increments
If the target TCK frequency requested is not possible, then the value will always be rounded down, unless a value less than the minimum has been requested, in which case it will be set to 10 kHz. GETFREQ can then be used to discover the actual target TCK frequency selected.
Errors
It is a compile error to use SETFREQ outside of a raw JTAG block.
XJTAG v4.1.100