Macros | Typedefs | Functions
Config430Xv2.h File Reference

Detailed Description

Configurations for the MSP430 Replicator Xv2.

Definition in file Config430Xv2.h.

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define INTERFACE   SPYBIWIRE_IF
 Select the interface to be used to communicate with the device. More...
 
#define VCC_LEVEL   30
 Set the target's Vcc level supplied by REP430F. More...
 
#define MAIN_START_ADDRESS   0xF000
 Set start address of the main memory. More...
 
#define MAIN_LENGTH   0x800
 Set length of main memory. More...
 
#define RAM_START_ADDRESS   0x1C00
 Set the start address of the device RAM. More...
 
#define MCLK_18MHZ
 Select the main clock frequency. More...
 
#define LPM5_ACTIVATED   1
 Use Jtag Mailbox to write FRAM. More...
 
#define ACTIVATE_MAGIC_PATTERN   1
 Allow use of the "magic pattern". More...
 
#define DEVICE_HAS_JTAG17   1
 For devices with JTAG bug 17 - see device errata sheet (slaz046) More...
 
#define WordBufferSize   50
 Buffer size for read and write operations in words. More...
 
#define MAX_ENTRY_TRY   4
 Maximum number of tries for the determination of the core identification info. More...
 
#define __BYTEWORD__
 

Typedefs

typedef unsigned short word
 
typedef unsigned char byte
 

Functions

void runProgramm (void)
 The basic Replicator routine. More...
 
void main (void)
 Main function. More...
 

Macro Definition Documentation

#define ACTIVATE_MAGIC_PATTERN   1

Allow use of the "magic pattern".

Definition at line 145 of file Config430Xv2.h.

#define DEVICE_HAS_JTAG17   1

For devices with JTAG bug 17 - see device errata sheet (slaz046)

Definition at line 147 of file Config430Xv2.h.

#define INTERFACE   SPYBIWIRE_IF

Select the interface to be used to communicate with the device.

Options:

  • JTAG_IF - MCU has 4-wire JTAG ONLY (F1xx, old F4xx)
  • SPYBIWIRE_IF - 2-wire Spy-Bi-Wire (F2xx, F4xx with SBW, F5xx, F6xx)
  • SPYBIWIREJTAG_IF - 4-wire JTAG in MCU with Spy-Bi-Wire (F2xx, F4xx with SBW, F5xx, F6xx)

Select ONLY ONE interface, comment-out the remaining option

Definition at line 68 of file Config430Xv2.h.

#define LPM5_ACTIVATED   1

Use Jtag Mailbox to write FRAM.

Activate support for Low Power Mode x.5

Definition at line 143 of file Config430Xv2.h.

#define MAIN_LENGTH   0x800

Set length of main memory.

Note that the memory length is counted in 16-bit WORDS!

Definition at line 80 of file Config430Xv2.h.

#define MAIN_START_ADDRESS   0xF000

Set start address of the main memory.

Definition at line 76 of file Config430Xv2.h.

#define MAX_ENTRY_TRY   4

Maximum number of tries for the determination of the core identification info.

Definition at line 152 of file Config430Xv2.h.

#define MCLK_18MHZ

Select the main clock frequency.

Comment it out for MCLK=12MHz, if the Voltage supplied to the REP430F is low (below 2.5V). That can apply when the REP430F is supplied from the target device, not from the external power supply.

Definition at line 139 of file Config430Xv2.h.

#define RAM_START_ADDRESS   0x1C00

Set the start address of the device RAM.

Definition at line 83 of file Config430Xv2.h.

#define VCC_LEVEL   30

Set the target's Vcc level supplied by REP430F.

data = 10*Vcc - range 2.1V to 3.6V or 0 (Vcc-OFF)

Definition at line 73 of file Config430Xv2.h.

#define WordBufferSize   50

Buffer size for read and write operations in words.

Definition at line 149 of file Config430Xv2.h.

Function Documentation

void main ( void  )

Main function.

Definition at line 123 of file Replicator430Xv2.c.

Here is the call graph for this function:

void runProgramm ( void  )

The basic Replicator routine.

This function is executed once at startup and can be restarted by pressing button S1 on the REP430F board.

Array to store data for a memory write

Array to store data for a memory read

Definition at line 130 of file Replicator430Xv2.c.

Here is the call graph for this function:


Copyright 2016, Texas Instruments Incorporated