132 word ReadArray[0x40];
355 #pragma vector=PORT1_VECTOR
Header file for target code (blinking LED)
void ShowStatus(word status, word index)
This function controls the status LEDs depending on the status argument. It stops program in error ca...
JTAG Function Prototypes and Definitions.
word EraseCheck(word StartAddr, word Length)
This function performs an Erase Check over the given memory range.
const unsigned long eprom_address[10]
Holds the destination adresses for different sections of the target code.
Device Function Prototypes and Definitions for FLASH programming.
void ReleaseDevice(word Addr)
Function to release the target device from JTAG control.
void main(void)
Main function.
const unsigned int eprom[10]
Holds the entire target code.
void ReleaseTarget(void)
Release Target Board (switch voltages off, JTAG pins are HI-Z)
#define STATUS_ACTIVE
Replicator is active.
#define STATUS_ERROR
return 0 = error
void EraseFLASH(word EraseMode, word EraseAddr)
This function performs a mass erase (with and w/o info memory) or a segment erase of a FLASH module s...
void runProgramm(void)
The basic Replicator routine.
void MsDelay(word milliseconds)
Delay function (resolution is 1 ms)
void InitController(void)
Initialization of the Controller Board.
#define ERASE_SGMT
Constant for flash erase: SELECTED segment.
const unsigned long eprom_sections
Holds the number of memory sections.
void InitTarget(void)
Initialization of the Target Board (switch voltages on, preset JTAG pins)
#define STATUS_OK
return 1 = no error
#define ERASE_MASS
Constant for flash erase: main & info of SELECTED mem arrays.
__interrupt void Port_1(void)
This interrupt service routine calls runProgramm() if button "S1" is pressed.
const unsigned long eprom_length_of_sections[10]
Holds the length of the different memory sections.
word WriteFLASHallSections(const unsigned int *data, const unsigned long *address, const unsigned long *length_of_sections, const unsigned long sections)
This function programs/verifies a set of data arrays of words into a FLASH memory by using the "Write...
word GetDevice(void)
Function to take target device under JTAG control. Disables the target watchdog. Sets the global DEVI...
Low Level function prototypes, macros, and pin-to-signal assignments regarding to user's hardware...