| ||||||||
Technical Support On-Line Manuals ULINK2 User's Guide | ULINK USB-JTAG AdapterThe section ULINK USB-JTAG Adapter displays driver, device, and firmware information about ULINK2.
Some applications require starting with a lower JTAG Clock from RESET and have to switch to higher clock rates when debugging. Use the VTREG DEBUG_CLOCK to alter the clock rate from scripts:
/*-------------------------------------------------------------------------
The function sets the JTAG Debug Clock to 1MHz
after the Main Clock has been enabled and selected.
-------------------------------------------------------------------------*/
FUNC void setJTAGClock() {
enableMainClock(); // add your code to switch on the Main Clock
DEBUG_CLOCK = 1000000; // Set JTAG Debug Clock to 1MHz
_sleep_(10);
enableMainPLL(); // add your code to enable the main PLL
_sleep_(100);
}
Note
| |||||||
| ||||||||