130 word ReadArray[0x40];
256 if (!EraseCheck(0xF800, 0x0400))
264 if (!EraseCheck(0xfe00, 0x0100))
298 if (!EraseCheck(0x1080, 0x0020))
306 if (!EraseCheck(0x1040, 0x0020))
314 if (!EraseCheck(0x1000, 0x0020))
342 ReleaseDevice(V_RESET);
355 #pragma vector=PORT1_VECTOR
#define STATUS_ACTIVE
Replicator is active.
Header file for target code (blinking LED)
JTAG Function Prototypes and Definitions.
const unsigned long eprom_address[10]
Holds the destination adresses for different sections of the target code.
bool DeviceHas_CpuX(void)
Function to check if current device has the extended CPUX.
const unsigned int eprom[10]
Holds the entire target code.
#define STATUS_OK
return 1 = no error
void InitTarget(void)
Initialization of the Target Board (switch voltages on, preset JTAG pins)
void runProgramm(void)
The basic Replicator routine.
void MsDelay(word milliseconds)
Delay function (resolution is 1 ms)
#define ERASE_SGMT
Constant for flash erase: SELECTED segment.
Low Level function prototypes, macros, and pin-to-signal.
Device Function Prototypes and Definitions for FLASH programming.
__interrupt void Port_1(void)
This interrupt service routine calls runProgramm() if button "S1" is pressed.
void ReleaseTarget(void)
Release Target Board (switch voltages off, JTAG pins are HI-Z)
const unsigned long eprom_sections
Holds the number of memory sections.
#define ERASE_GLOB
Constant for flash erase: main & info of ALL mem arrays.
void main(void)
Main function.
#define STATUS_ERROR
return 0 = error
void InitController(void)
Initialization of the Controller Board.
void ShowStatus(word status, word index)
This function controls the status LEDs depending on the status argument. It stops program in error ca...
const unsigned long eprom_length_of_sections[10]
Holds the length of the different memory sections.
#define ERASE_MASS
Constant for flash erase: main & info of SELECTED mem arrays.