metaonly module ti.catalog.msp430.MSP430F2274

MSP430F2274 Cpu definition

This device has 32KB + 256B of Flash Memory and 1KB RAM. The MSP430F2274 has two op-amps (OA).
XDCscript usage meta-domain sourced in ti/catalog/msp430/MSP430F2274.xdc
var MSP430F2274 = xdc.useModule('ti.catalog.msp430.MSP430F2274');
per-instance config parameters
    var params = new MSP430F2274.Params// Instance config-params object;
        params.adc10//  = ADC10.Instance undefined;
        params.clock//  = Clock2xx.Instance undefined;
        [
            "PERIPHERALS_8BIT",
            {
                comment: "Memory mapped I/O registers",
                name: "PERIPHERALS_8BIT",
                base: 0x0010,
                len: 0x00F0,
                space: "io",
                access: "RW"
            }
        ],
        [
            "PERIPHERALS_16BIT",
            {
                comment: "Memory mapped I/O registers",
                name: "PERIPHERALS_16BIT",
                base: 0x0100,
                len: 0x0100,
                space: "io",
                access: "RW"
            }
        ],
        [
            "BSLSKEY",
            {
                comment: "Boot loader security key",
                name: "BSLSKEY",
                base: 0xFFDE,
                len: 0x0002,
                space: "data",
                access: "RI"
            }
        ],
        [
            "INT00",
            {
                comment: "Reserved Vector (int00)",
                name: "INT00",
                base: 0xFFE0,
                len: 0x0002,
                space: "data",
                access: "RW"
            }
        ],
        [
            "INT01",
            {
                comment: "Reserved Vector (int01)",
                name: "INT01",
                base: 0xFFE2,
                len: 0x0002,
                space: "data",
                access: "RW"
            }
        ],
        [
            "INT02",
            {
                comment: "I/O Port P1 Vector (int02)",
                name: "INT02",
                base: 0xFFE4,
                len: 0x0002,
                space: "data",
                access: "RW"
            }
        ],
        [
            "INT03",
            {
                comment: "I/O Port P2 Vector (int03)",
                name: "INT03",
                base: 0xFFE6,
                len: 0x0002,
                space: "data",
                access: "RW"
            }
        ],
        [
            "INT04",
            {
                comment: "Reserved Vector (int04)",
                name: "INT04",
                base: 0xFFE8,
                len: 0x0002,
                space: "data",
                access: "RW"
            }
        ],
        [
            "INT05",
            {
                comment: "ADC10 Vector (int05)",
                name: "INT05",
                base: 0xFFEA,
                len: 0x0002,
                space: "data",
                access: "RW"
            }
        ],
        [
            "INT06",
            {
                comment: "USCI_A0/B0 Transmit Vector (int06)",
                name: "INT06",
                base: 0xFFEC,
                len: 0x0002,
                space: "data",
                access: "RW"
            }
        ],
        [
            "INT07",
            {
                comment: "USCI_A0/B0 Receive Vector (int07)",
                name: "INT07",
                base: 0xFFEE,
                len: 0x0002,
                space: "data",
                access: "RW"
            }
        ],
        [
            "INT08",
            {
                comment: "Timer_A3 TBCCR1 Vector (int08)",
                name: "INT08",
                base: 0xFFF0,
                len: 0x0002,
                space: "data",
                access: "RW"
            }
        ],
        [
            "INT09",
            {
                comment: "Timer_A3 TBCCR0 Vector (int09)",
                name: "INT09",
                base: 0xFFF2,
                len: 0x0002,
                space: "data",
                access: "RW"
            }
        ],
        [
            "INT10",
            {
                comment: "Watchdog Vector (int10)",
                name: "INT10",
                base: 0xFFF4,
                len: 0x0002,
                space: "data",
                access: "RW"
            }
        ],
        [
            "INT11",
            {
                comment: "Reserved Vector (int11)",
                name: "INT11",
                base: 0xFFF6,
                len: 0x0002,
                space: "data",
                access: "RW"
            }
        ],
        [
            "INT12",
            {
                comment: "Timer_B3 TBCCR1 Vector (int12)",
                name: "INT12",
                base: 0xFFF8,
                len: 0x0002,
                space: "data",
                access: "RW"
            }
        ],
        [
            "INT13",
            {
                comment: "Timer_B3 TBCCR0 Vector (int13)",
                name: "INT13",
                base: 0xFFFA,
                len: 0x0002,
                space: "data",
                access: "RW"
            }
        ],
        [
            "INT14",
            {
                comment: "NMI Vector (int14)",
                name: "INT14",
                base: 0xFFFC,
                len: 0x0002,
                space: "data",
                access: "RW"
            }
        ],
        [
            "RESET",
            {
                comment: "Reset Vector (int15)",
                name: "RESET",
                base: 0xFFFE,
                len: 0x0002,
                space: "data",
                access: "RW"
            }
        ],
        [
            "INFOA",
            {
                comment: "INFO Flash Memory Segment A",
                name: "INFOA",
                base: 0x10C0,
                len: 0x0040,
                space: "data",
                access: "RW"
            }
        ],
        [
            "INFOB",
            {
                comment: "INFO Flash Memory Segment B",
                name: "INFOB",
                base: 0x1080,
                len: 0x0040,
                space: "data",
                access: "RW"
            }
        ],
        [
            "INFOC",
            {
                comment: "INFO Flash Memory Segment C",
                name: "INFOC",
                base: 0x1040,
                len: 0x0040,
                space: "data",
                access: "RW"
            }
        ],
        [
            "INFOD",
            {
                comment: "INFO Flash Memory Segment D",
                name: "INFOD",
                base: 0x1000,
                len: 0x0040,
                space: "data",
                access: "RW"
            }
        ]
    ];
        params.cpuCore// A string identifying the CPU Core = String "MSP430";
        params.flash//  = Flash_2xx.Instance undefined;
        params.gpio//  = GPIO_MSP430x22xx.Instance undefined;
        params.interruptController//  = Interrupt_Controller.Instance undefined;
        params.interruptEnableRegister1//  = IE1.Instance undefined;
        params.interruptEnableRegister2//  = IE2.Instance undefined;
        [
            "RAM",
            {
                comment: "Data RAM",
                name: "RAM",
                base: 0x200,
                len: 0x400,
                space: "code/data",
                access: "RWX"
            }
        ],
        [
            "FLASH",
            {
                comment: "Program FLASH",
                name: "FLASH",
                base: 0x8000,
                len: 0x7FDE,
                space: "code",
                access: "RWX"
            }
        ]
    ];
        params.oa//  = OA_2.Instance undefined;
        params.timer_A3//  = Timer_A3.Instance undefined;
        params.timer_B3//  = Timer_B3.Instance undefined;
        params.usci_A0_SPI//  = USCI_A0_SPI_2xx.Instance undefined;
        params.usci_A0_UART//  = USCI_A0_UART_2xx.Instance undefined;
        params.usci_B0_I2C//  = USCI_B0_I2C_2xx.Instance undefined;
        params.usci_B0_SPI//  = USCI_B0_SPI_2xx.Instance undefined;
        params.wdtPlus//  = WDTPlus.Instance undefined;
per-instance creation
    var inst = MSP430F2274.create// Create an instance-object(String revision, params);
per-instance functions
 
Instance Config Parameters

XDCscript usage meta-domain
var params = new MSP430F2274.Params;
// Instance config-params object
    params.adc10 = ADC10.Instance undefined;
    // 
    params.clock = Clock2xx.Instance undefined;
    // 
    params.commonMap = IPlatform.Memory[string] [
    // Memory map elements shared by all MSP430x22xx devices
    [
        "PERIPHERALS_8BIT",
        {
            comment: "Memory mapped I/O registers",
            name: "PERIPHERALS_8BIT",
            base: 0x0010,
            len: 0x00F0,
            space: "io",
            access: "RW"
        }
    ],
    [
        "PERIPHERALS_16BIT",
        {
            comment: "Memory mapped I/O registers",
            name: "PERIPHERALS_16BIT",
            base: 0x0100,
            len: 0x0100,
            space: "io",
            access: "RW"
        }
    ],
    [
        "BSLSKEY",
        {
            comment: "Boot loader security key",
            name: "BSLSKEY",
            base: 0xFFDE,
            len: 0x0002,
            space: "data",
            access: "RI"
        }
    ],
    [
        "INT00",
        {
            comment: "Reserved Vector (int00)",
            name: "INT00",
            base: 0xFFE0,
            len: 0x0002,
            space: "data",
            access: "RW"
        }
    ],
    [
        "INT01",
        {
            comment: "Reserved Vector (int01)",
            name: "INT01",
            base: 0xFFE2,
            len: 0x0002,
            space: "data",
            access: "RW"
        }
    ],
    [
        "INT02",
        {
            comment: "I/O Port P1 Vector (int02)",
            name: "INT02",
            base: 0xFFE4,
            len: 0x0002,
            space: "data",
            access: "RW"
        }
    ],
    [
        "INT03",
        {
            comment: "I/O Port P2 Vector (int03)",
            name: "INT03",
            base: 0xFFE6,
            len: 0x0002,
            space: "data",
            access: "RW"
        }
    ],
    [
        "INT04",
        {
            comment: "Reserved Vector (int04)",
            name: "INT04",
            base: 0xFFE8,
            len: 0x0002,
            space: "data",
            access: "RW"
        }
    ],
    [
        "INT05",
        {
            comment: "ADC10 Vector (int05)",
            name: "INT05",
            base: 0xFFEA,
            len: 0x0002,
            space: "data",
            access: "RW"
        }
    ],
    [
        "INT06",
        {
            comment: "USCI_A0/B0 Transmit Vector (int06)",
            name: "INT06",
            base: 0xFFEC,
            len: 0x0002,
            space: "data",
            access: "RW"
        }
    ],
    [
        "INT07",
        {
            comment: "USCI_A0/B0 Receive Vector (int07)",
            name: "INT07",
            base: 0xFFEE,
            len: 0x0002,
            space: "data",
            access: "RW"
        }
    ],
    [
        "INT08",
        {
            comment: "Timer_A3 TBCCR1 Vector (int08)",
            name: "INT08",
            base: 0xFFF0,
            len: 0x0002,
            space: "data",
            access: "RW"
        }
    ],
    [
        "INT09",
        {
            comment: "Timer_A3 TBCCR0 Vector (int09)",
            name: "INT09",
            base: 0xFFF2,
            len: 0x0002,
            space: "data",
            access: "RW"
        }
    ],
    [
        "INT10",
        {
            comment: "Watchdog Vector (int10)",
            name: "INT10",
            base: 0xFFF4,
            len: 0x0002,
            space: "data",
            access: "RW"
        }
    ],
    [
        "INT11",
        {
            comment: "Reserved Vector (int11)",
            name: "INT11",
            base: 0xFFF6,
            len: 0x0002,
            space: "data",
            access: "RW"
        }
    ],
    [
        "INT12",
        {
            comment: "Timer_B3 TBCCR1 Vector (int12)",
            name: "INT12",
            base: 0xFFF8,
            len: 0x0002,
            space: "data",
            access: "RW"
        }
    ],
    [
        "INT13",
        {
            comment: "Timer_B3 TBCCR0 Vector (int13)",
            name: "INT13",
            base: 0xFFFA,
            len: 0x0002,
            space: "data",
            access: "RW"
        }
    ],
    [
        "INT14",
        {
            comment: "NMI Vector (int14)",
            name: "INT14",
            base: 0xFFFC,
            len: 0x0002,
            space: "data",
            access: "RW"
        }
    ],
    [
        "RESET",
        {
            comment: "Reset Vector (int15)",
            name: "RESET",
            base: 0xFFFE,
            len: 0x0002,
            space: "data",
            access: "RW"
        }
    ],
    [
        "INFOA",
        {
            comment: "INFO Flash Memory Segment A",
            name: "INFOA",
            base: 0x10C0,
            len: 0x0040,
            space: "data",
            access: "RW"
        }
    ],
    [
        "INFOB",
        {
            comment: "INFO Flash Memory Segment B",
            name: "INFOB",
            base: 0x1080,
            len: 0x0040,
            space: "data",
            access: "RW"
        }
    ],
    [
        "INFOC",
        {
            comment: "INFO Flash Memory Segment C",
            name: "INFOC",
            base: 0x1040,
            len: 0x0040,
            space: "data",
            access: "RW"
        }
    ],
    [
        "INFOD",
        {
            comment: "INFO Flash Memory Segment D",
            name: "INFOD",
            base: 0x1000,
            len: 0x0040,
            space: "data",
            access: "RW"
        }
    ]
];
    params.cpuCore = String "MSP430";
    // A string identifying the CPU Core
    params.cpuCoreRevision = String "1.0";
    // A string that uniquely identifies a revision of the core
    params.dataWordSize = Int 2;
    // The size of an int on the target in 8-bit bytes
    params.deviceHeader = String undefined;
    // The optional header file that define device specific constants and structures
    params.flash = Flash_2xx.Instance undefined;
    // 
    params.gpio = GPIO_MSP430x22xx.Instance undefined;
    // 
    params.interruptController = Interrupt_Controller.Instance undefined;
    // 
    params.interruptEnableRegister1 = IE1.Instance undefined;
    // 
    params.interruptEnableRegister2 = IE2.Instance undefined;
    // 
    params.memMap = IPlatform.Memory[string] [
    // The default memory map for this device
    [
        "RAM",
        {
            comment: "Data RAM",
            name: "RAM",
            base: 0x200,
            len: 0x400,
            space: "code/data",
            access: "RWX"
        }
    ],
    [
        "FLASH",
        {
            comment: "Program FLASH",
            name: "FLASH",
            base: 0x8000,
            len: 0x7FDE,
            space: "code",
            access: "RWX"
        }
    ]
];
    params.minDataUnitSize = Int 1;
    // The minimum addressable data unit size in 8-bit bytes
    params.minProgUnitSize = Int 1;
    // The minimum addressable program unit size in 8-bit bytes
    params.oa = OA_2.Instance undefined;
    // 
    params.peripherals = IPeripheral.Instance[string] undefined;
    // The map of peripherals available on the device
    params.timer_A3 = Timer_A3.Instance undefined;
    // 
    params.timer_B3 = Timer_B3.Instance undefined;
    // 
    params.usci_A0_SPI = USCI_A0_SPI_2xx.Instance undefined;
    // 
    params.usci_A0_UART = USCI_A0_UART_2xx.Instance undefined;
    // 
    params.usci_B0_I2C = USCI_B0_I2C_2xx.Instance undefined;
    // 
    params.usci_B0_SPI = USCI_B0_SPI_2xx.Instance undefined;
    // 
    params.wdtPlus = WDTPlus.Instance undefined;
    // 
config MSP430F2274.adc10  // instance
XDCscript usage meta-domain
var params = new MSP430F2274.Params;
  ...
params.adc10 = ADC10.Instance undefined;
config MSP430F2274.clock  // instance
XDCscript usage meta-domain
var params = new MSP430F2274.Params;
  ...
params.clock = Clock2xx.Instance undefined;
config MSP430F2274.commonMap  // instance

Memory map elements shared by all MSP430x22xx devices

XDCscript usage meta-domain
var params = new MSP430F2274.Params;
  ...
params.commonMap = IPlatform.Memory[string] [
    [
        "PERIPHERALS_8BIT",
        {
            comment: "Memory mapped I/O registers",
            name: "PERIPHERALS_8BIT",
            base: 0x0010,
            len: 0x00F0,
            space: "io",
            access: "RW"
        }
    ],
    [
        "PERIPHERALS_16BIT",
        {
            comment: "Memory mapped I/O registers",
            name: "PERIPHERALS_16BIT",
            base: 0x0100,
            len: 0x0100,
            space: "io",
            access: "RW"
        }
    ],
    [
        "BSLSKEY",
        {
            comment: "Boot loader security key",
            name: "BSLSKEY",
            base: 0xFFDE,
            len: 0x0002,
            space: "data",
            access: "RI"
        }
    ],
    [
        "INT00",
        {
            comment: "Reserved Vector (int00)",
            name: "INT00",
            base: 0xFFE0,
            len: 0x0002,
            space: "data",
            access: "RW"
        }
    ],
    [
        "INT01",
        {
            comment: "Reserved Vector (int01)",
            name: "INT01",
            base: 0xFFE2,
            len: 0x0002,
            space: "data",
            access: "RW"
        }
    ],
    [
        "INT02",
        {
            comment: "I/O Port P1 Vector (int02)",
            name: "INT02",
            base: 0xFFE4,
            len: 0x0002,
            space: "data",
            access: "RW"
        }
    ],
    [
        "INT03",
        {
            comment: "I/O Port P2 Vector (int03)",
            name: "INT03",
            base: 0xFFE6,
            len: 0x0002,
            space: "data",
            access: "RW"
        }
    ],
    [
        "INT04",
        {
            comment: "Reserved Vector (int04)",
            name: "INT04",
            base: 0xFFE8,
            len: 0x0002,
            space: "data",
            access: "RW"
        }
    ],
    [
        "INT05",
        {
            comment: "ADC10 Vector (int05)",
            name: "INT05",
            base: 0xFFEA,
            len: 0x0002,
            space: "data",
            access: "RW"
        }
    ],
    [
        "INT06",
        {
            comment: "USCI_A0/B0 Transmit Vector (int06)",
            name: "INT06",
            base: 0xFFEC,
            len: 0x0002,
            space: "data",
            access: "RW"
        }
    ],
    [
        "INT07",
        {
            comment: "USCI_A0/B0 Receive Vector (int07)",
            name: "INT07",
            base: 0xFFEE,
            len: 0x0002,
            space: "data",
            access: "RW"
        }
    ],
    [
        "INT08",
        {
            comment: "Timer_A3 TBCCR1 Vector (int08)",
            name: "INT08",
            base: 0xFFF0,
            len: 0x0002,
            space: "data",
            access: "RW"
        }
    ],
    [
        "INT09",
        {
            comment: "Timer_A3 TBCCR0 Vector (int09)",
            name: "INT09",
            base: 0xFFF2,
            len: 0x0002,
            space: "data",
            access: "RW"
        }
    ],
    [
        "INT10",
        {
            comment: "Watchdog Vector (int10)",
            name: "INT10",
            base: 0xFFF4,
            len: 0x0002,
            space: "data",
            access: "RW"
        }
    ],
    [
        "INT11",
        {
            comment: "Reserved Vector (int11)",
            name: "INT11",
            base: 0xFFF6,
            len: 0x0002,
            space: "data",
            access: "RW"
        }
    ],
    [
        "INT12",
        {
            comment: "Timer_B3 TBCCR1 Vector (int12)",
            name: "INT12",
            base: 0xFFF8,
            len: 0x0002,
            space: "data",
            access: "RW"
        }
    ],
    [
        "INT13",
        {
            comment: "Timer_B3 TBCCR0 Vector (int13)",
            name: "INT13",
            base: 0xFFFA,
            len: 0x0002,
            space: "data",
            access: "RW"
        }
    ],
    [
        "INT14",
        {
            comment: "NMI Vector (int14)",
            name: "INT14",
            base: 0xFFFC,
            len: 0x0002,
            space: "data",
            access: "RW"
        }
    ],
    [
        "RESET",
        {
            comment: "Reset Vector (int15)",
            name: "RESET",
            base: 0xFFFE,
            len: 0x0002,
            space: "data",
            access: "RW"
        }
    ],
    [
        "INFOA",
        {
            comment: "INFO Flash Memory Segment A",
            name: "INFOA",
            base: 0x10C0,
            len: 0x0040,
            space: "data",
            access: "RW"
        }
    ],
    [
        "INFOB",
        {
            comment: "INFO Flash Memory Segment B",
            name: "INFOB",
            base: 0x1080,
            len: 0x0040,
            space: "data",
            access: "RW"
        }
    ],
    [
        "INFOC",
        {
            comment: "INFO Flash Memory Segment C",
            name: "INFOC",
            base: 0x1040,
            len: 0x0040,
            space: "data",
            access: "RW"
        }
    ],
    [
        "INFOD",
        {
            comment: "INFO Flash Memory Segment D",
            name: "INFOD",
            base: 0x1000,
            len: 0x0040,
            space: "data",
            access: "RW"
        }
    ]
];
config MSP430F2274.cpuCore  // instance

A string identifying the CPU Core

XDCscript usage meta-domain
var params = new MSP430F2274.Params;
  ...
params.cpuCore = String "MSP430";
DETAILS
This uniquely identifies the instruction set that the CPU can decode and execute.
config MSP430F2274.cpuCoreRevision  // instance

A string that uniquely identifies a revision of the core

XDCscript usage meta-domain
var params = new MSP430F2274.Params;
  ...
params.cpuCoreRevision = String "1.0";
config MSP430F2274.dataWordSize  // instance

The size of an int on the target in 8-bit bytes

XDCscript usage meta-domain
var params = new MSP430F2274.Params;
  ...
params.dataWordSize = Int 2;
config MSP430F2274.deviceHeader  // instance

The optional header file that define device specific constants and structures

XDCscript usage meta-domain
var params = new MSP430F2274.Params;
  ...
params.deviceHeader = String undefined;
config MSP430F2274.flash  // instance
XDCscript usage meta-domain
var params = new MSP430F2274.Params;
  ...
params.flash = Flash_2xx.Instance undefined;
config MSP430F2274.gpio  // instance
XDCscript usage meta-domain
var params = new MSP430F2274.Params;
  ...
params.gpio = GPIO_MSP430x22xx.Instance undefined;
config MSP430F2274.interruptController  // instance
XDCscript usage meta-domain
var params = new MSP430F2274.Params;
  ...
params.interruptController = Interrupt_Controller.Instance undefined;
config MSP430F2274.interruptEnableRegister1  // instance
XDCscript usage meta-domain
var params = new MSP430F2274.Params;
  ...
params.interruptEnableRegister1 = IE1.Instance undefined;
config MSP430F2274.interruptEnableRegister2  // instance
XDCscript usage meta-domain
var params = new MSP430F2274.Params;
  ...
params.interruptEnableRegister2 = IE2.Instance undefined;
config MSP430F2274.memMap  // instance

The default memory map for this device

XDCscript usage meta-domain
var params = new MSP430F2274.Params;
  ...
params.memMap = IPlatform.Memory[string] [
    [
        "RAM",
        {
            comment: "Data RAM",
            name: "RAM",
            base: 0x200,
            len: 0x400,
            space: "code/data",
            access: "RWX"
        }
    ],
    [
        "FLASH",
        {
            comment: "Program FLASH",
            name: "FLASH",
            base: 0x8000,
            len: 0x7FDE,
            space: "code",
            access: "RWX"
        }
    ]
];
config MSP430F2274.minDataUnitSize  // instance

The minimum addressable data unit size in 8-bit bytes

XDCscript usage meta-domain
var params = new MSP430F2274.Params;
  ...
params.minDataUnitSize = Int 1;
config MSP430F2274.minProgUnitSize  // instance

The minimum addressable program unit size in 8-bit bytes

XDCscript usage meta-domain
var params = new MSP430F2274.Params;
  ...
params.minProgUnitSize = Int 1;
config MSP430F2274.oa  // instance
XDCscript usage meta-domain
var params = new MSP430F2274.Params;
  ...
params.oa = OA_2.Instance undefined;
config MSP430F2274.peripherals  // instance

The map of peripherals available on the device

XDCscript usage meta-domain
var params = new MSP430F2274.Params;
  ...
params.peripherals = IPeripheral.Instance[string] undefined;
config MSP430F2274.timer_A3  // instance
XDCscript usage meta-domain
var params = new MSP430F2274.Params;
  ...
params.timer_A3 = Timer_A3.Instance undefined;
config MSP430F2274.timer_B3  // instance
XDCscript usage meta-domain
var params = new MSP430F2274.Params;
  ...
params.timer_B3 = Timer_B3.Instance undefined;
config MSP430F2274.usci_A0_SPI  // instance
XDCscript usage meta-domain
var params = new MSP430F2274.Params;
  ...
params.usci_A0_SPI = USCI_A0_SPI_2xx.Instance undefined;
config MSP430F2274.usci_A0_UART  // instance
XDCscript usage meta-domain
var params = new MSP430F2274.Params;
  ...
params.usci_A0_UART = USCI_A0_UART_2xx.Instance undefined;
config MSP430F2274.usci_B0_I2C  // instance
XDCscript usage meta-domain
var params = new MSP430F2274.Params;
  ...
params.usci_B0_I2C = USCI_B0_I2C_2xx.Instance undefined;
config MSP430F2274.usci_B0_SPI  // instance
XDCscript usage meta-domain
var params = new MSP430F2274.Params;
  ...
params.usci_B0_SPI = USCI_B0_SPI_2xx.Instance undefined;
config MSP430F2274.wdtPlus  // instance
XDCscript usage meta-domain
var params = new MSP430F2274.Params;
  ...
params.wdtPlus = WDTPlus.Instance undefined;
Instance Creation

XDCscript usage meta-domain
var params = new MSP430F2274.Params;
// Allocate instance config-params
params.config =   ...
// Assign individual configs
 
var inst = MSP430F2274.create(String revision, params);
// Create an instance-object
ARGUMENTS
revision — a string that identifies revision of the CPU to be created.
DETAILS
A "data sheet" for a CPU allows one to get specific attributes for a CPU programatically; e.g., the memory map of the CPU.
Notice that we don't specify CPU registers when we create a a data-sheet; registers are provided as necessary to the other functions defined in this interface. This allows one to more easily get memory maps for several different setting of the registers, for example.
MSP430F2274.getMemoryMap()  // instance

Get the memory map that corresponds to the values of the specified registers

XDCscript usage meta-domain
inst.getMemoryMap(Any registers) returns Any
ARGUMENTS
registers — a hash of named registers to values at the time an executable is to be loaded (for example)
DETAILS
If a register is not specified and this register can affect the memory map, the register is assumed to be set to its reset value (the value of the register immediately after a CPU reset).
RETURNS
Returns an array of xdc.platform.IPlatform.Memory objects that represent the memory visible to an executable running on the CPU.
MSP430F2274.getRegisterSet()  // instance

The set of valid register names for this CPU

XDCscript usage meta-domain
inst.getRegisterSet() returns Any
DETAILS
This function returns the complete set of register names that may be passed to the getMemoryMap() function. This function is only used to enable one to write a "requires contract" for the getMemoryMap() function.
RETURNS
Returns an array of valid register names (strings) for this device; only names from this array are valid keys for the registers argument to getMemoryMap().
generated on Tue, 24 Aug 2010 15:40:37 GMT