                                                                  9 July 1997

                    Readme file for the XDS510 Version 
                                  of the
                     F240 JTAG Flash programming utility
	               ===================================
                       (early Beta release rev 1.2)

The XDS510 version of the F240 JTAG Flash programming utility used to program 
the 16K words of flash on the F240 is based on the F206 utility which is 
explained in the relevant files in this directory. The utility operates 
entirely via the JTAG link using the XDS510 emulator. There are no special 
target H/W requirements. Any target H/W which correctly runs an F240 device 
and responds to the JTAG serial scan from the emulator, should be OK.

This F240 specific utility is a very preliminary version & implements only a
subset of operating modes described in the F206 documents. For correct
operation the Clear, Erase, and program algorithms rely on an internal clock
speed of 20MHz (50nS clock cycle).  To ensure this with various 
crystal/oscillator values the correct config needs to be set-up within the 
F240_CFG.I file supplied on this disk. In this file provision is made to 
select 9 different PLL multiplication ratios from x1 to x9 of the CLKIN 
frequency. See instructions within the F240_CFG.I file for details on how to 
select these. Once you make the relevant selection, re-assemble & link using 
MK_UTL.BAT. The default PLL value is x2, i.e. a 10MHz CLKIN clock or crystal 
is expected for s/w to operate correctly.

The Batch files used for completing a Programming cycle are:

   1. FCLR0.BAT   - used for clearing the Array (no user files required)
   2. FERS0.BAT   - used for Erasing the Array  (no user files required)
   3. FPRG0.BAT   - used for Programming the array (User *.out file required)
                    e.g. use FPRG0 MYFILE.OUT to program the array 
                         with the user's file MYFILE.OUT

    Note 1: To test/verify if FPRG0.BAT is working use the test file L2K0.OUT
            to program the first 2048 locations with an incrementing sequence
            of hex numbers form 0 to 2047, i.e. use FPRG0 L2K0.OUT

    Note 2: If the flash array is not completely erased (all FFFF) then a
            CLEAR, ERASE & PROGRAM phase (i.e. FCLR0.BAT, FERS0.BAT & 
            FPRG0.BAT batch files) must be executed in that order.

    Note 3: The I/O address for the XDS510 PC plug-in card is contained within
            each of the batch files mentioned above. This address should be
            consistent with the actual address that has been setup with the
            C2xx Debugger s/w. The default address for the Flash Utility 
            is -p 240.
