blob: 80c78b3084089e0ff47348e4d9ecc17ea23f0e2b [file] [log] [blame]
/********************************************************************
*
* Standard register and bit definitions for the Texas Instruments
* MSP430 microcontroller.
*
* This file supports assembler and C development for
* MSP430x54x devices.
*
* Texas Instruments, Version 1.4
*
* Rev. 0.0, Setup
* Rev. 0.1, updated PMM (now contains already new definitions with swapped IFG flags for SVSHIFG/SVSLIFG
* Rev. 0.2, updated USCI/I2C Flags (UCBxIFG not used correctly)
* Rev. 0.3, changed RTCEVIFG to RTCTEVIFG / changed RTIV to RTCIV
* Rev. 0.4, added definitions for Interrupt Vectors xxIV
* Rev. 0.5, changed 'void __data20 * volatile' definition
* Rev. 1.0, fixed wrong bit definitions in FLLCTL7
* Rev. 1.1, fixed wrong definitions for some PxDS addresses
* Rev. 1.2, fixed wrong base address for RTC
* Rev. 1.3, fixed SYSRSTIV Definitions
* Rev. 1.4, removed some unused Definitions for PMM
*
********************************************************************/
#ifndef __msp430x54x
#define __msp430x54x
#ifdef __cplusplus
extern "C" {
#endif
/*----------------------------------------------------------------------------*/
/* PERIPHERAL FILE MAP */
/*----------------------------------------------------------------------------*/
/* External references resolved by a device-specific linker command file */
#define SFR_8BIT(address) extern volatile unsigned char address
#define SFR_16BIT(address) extern volatile unsigned int address
//#define SFR_20BIT(address) extern volatile unsigned int address
typedef void (* __SFR_FARPTR)();
#define SFR_20BIT(address) extern __SFR_FARPTR address
#define SFR_32BIT(address) extern volatile unsigned long address
/************************************************************
* STANDARD BITS
************************************************************/
#define BIT0 (0x0001)
#define BIT1 (0x0002)
#define BIT2 (0x0004)
#define BIT3 (0x0008)
#define BIT4 (0x0010)
#define BIT5 (0x0020)
#define BIT6 (0x0040)
#define BIT7 (0x0080)
#define BIT8 (0x0100)
#define BIT9 (0x0200)
#define BITA (0x0400)
#define BITB (0x0800)
#define BITC (0x1000)
#define BITD (0x2000)
#define BITE (0x4000)
#define BITF (0x8000)
/************************************************************
* STATUS REGISTER BITS
************************************************************/
#define C (0x0001)
#define Z (0x0002)
#define N (0x0004)
#define V (0x0100)
#define GIE (0x0008)
#define CPUOFF (0x0010)
#define OSCOFF (0x0020)
#define SCG0 (0x0040)
#define SCG1 (0x0080)
/* Low Power Modes coded with Bits 4-7 in SR */
#ifdef __ASM_HEADER__ /* Begin #defines for assembler */
#define LPM0 (CPUOFF)
#define LPM1 (SCG0+CPUOFF)
#define LPM2 (SCG1+CPUOFF)
#define LPM3 (SCG1+SCG0+CPUOFF)
#define LPM4 (SCG1+SCG0+OSCOFF+CPUOFF)
/* End #defines for assembler */
#else /* Begin #defines for C */
#define LPM0_bits (CPUOFF)
#define LPM1_bits (SCG0+CPUOFF)
#define LPM2_bits (SCG1+CPUOFF)
#define LPM3_bits (SCG1+SCG0+CPUOFF)
#define LPM4_bits (SCG1+SCG0+OSCOFF+CPUOFF)
#include <In430.h>
#define LPM0 _bis_SR_register(LPM0_bits) /* Enter Low Power Mode 0 */
#define LPM0_EXIT _bic_SR_register_on_exit(LPM0_bits) /* Exit Low Power Mode 0 */
#define LPM1 _bis_SR_register(LPM1_bits) /* Enter Low Power Mode 1 */
#define LPM1_EXIT _bic_SR_register_on_exit(LPM1_bits) /* Exit Low Power Mode 1 */
#define LPM2 _bis_SR_register(LPM2_bits) /* Enter Low Power Mode 2 */
#define LPM2_EXIT _bic_SR_register_on_exit(LPM2_bits) /* Exit Low Power Mode 2 */
#define LPM3 _bis_SR_register(LPM3_bits) /* Enter Low Power Mode 3 */
#define LPM3_EXIT _bic_SR_register_on_exit(LPM3_bits) /* Exit Low Power Mode 3 */
#define LPM4 _bis_SR_register(LPM4_bits) /* Enter Low Power Mode 4 */
#define LPM4_EXIT _bic_SR_register_on_exit(LPM4_bits) /* Exit Low Power Mode 4 */
#endif /* End #defines for C */
/************************************************************
* CPU
************************************************************/
#define __MSP430_HAS_MSP430XV2_CPU__ /* Definition to show that it has MSP430XV2 CPU */
/************************************************************
* PERIPHERAL FILE MAP
************************************************************/
/************************************************************
* ADC12 PLUS
************************************************************/
#define __MSP430_HAS_ADC12_PLUS__ /* Definition to show that Module is available */
SFR_16BIT(ADC12CTL0); /* ADC12+ Control 0 */
SFR_8BIT(ADC12CTL0_L); /* ADC12+ Control 0 */
SFR_8BIT(ADC12CTL0_H); /* ADC12+ Control 0 */
SFR_16BIT(ADC12CTL1); /* ADC12+ Control 1 */
SFR_8BIT(ADC12CTL1_L); /* ADC12+ Control 1 */
SFR_8BIT(ADC12CTL1_H); /* ADC12+ Control 1 */
SFR_16BIT(ADC12CTL2); /* ADC12+ Control 2 */
SFR_8BIT(ADC12CTL2_L); /* ADC12+ Control 2 */
SFR_8BIT(ADC12CTL2_H); /* ADC12+ Control 2 */
SFR_16BIT(ADC12IFG); /* ADC12+ Interrupt Flag */
SFR_8BIT(ADC12IFG_L); /* ADC12+ Interrupt Flag */
SFR_8BIT(ADC12IFG_H); /* ADC12+ Interrupt Flag */
SFR_16BIT(ADC12IE); /* ADC12+ Interrupt Enable */
SFR_8BIT(ADC12IE_L); /* ADC12+ Interrupt Enable */
SFR_8BIT(ADC12IE_H); /* ADC12+ Interrupt Enable */
SFR_16BIT(ADC12IV); /* ADC12+ Interrupt Vector Word */
SFR_8BIT(ADC12IV_L); /* ADC12+ Interrupt Vector Word */
SFR_8BIT(ADC12IV_H); /* ADC12+ Interrupt Vector Word */
SFR_16BIT(ADC12MEM0); /* ADC12 Conversion Memory 0 */
SFR_8BIT(ADC12MEM0_L); /* ADC12 Conversion Memory 0 */
SFR_8BIT(ADC12MEM0_H); /* ADC12 Conversion Memory 0 */
SFR_16BIT(ADC12MEM1); /* ADC12 Conversion Memory 1 */
SFR_8BIT(ADC12MEM1_L); /* ADC12 Conversion Memory 1 */
SFR_8BIT(ADC12MEM1_H); /* ADC12 Conversion Memory 1 */
SFR_16BIT(ADC12MEM2); /* ADC12 Conversion Memory 2 */
SFR_8BIT(ADC12MEM2_L); /* ADC12 Conversion Memory 2 */
SFR_8BIT(ADC12MEM2_H); /* ADC12 Conversion Memory 2 */
SFR_16BIT(ADC12MEM3); /* ADC12 Conversion Memory 3 */
SFR_8BIT(ADC12MEM3_L); /* ADC12 Conversion Memory 3 */
SFR_8BIT(ADC12MEM3_H); /* ADC12 Conversion Memory 3 */
SFR_16BIT(ADC12MEM4); /* ADC12 Conversion Memory 4 */
SFR_8BIT(ADC12MEM4_L); /* ADC12 Conversion Memory 4 */
SFR_8BIT(ADC12MEM4_H); /* ADC12 Conversion Memory 4 */
SFR_16BIT(ADC12MEM5); /* ADC12 Conversion Memory 5 */
SFR_8BIT(ADC12MEM5_L); /* ADC12 Conversion Memory 5 */
SFR_8BIT(ADC12MEM5_H); /* ADC12 Conversion Memory 5 */
SFR_16BIT(ADC12MEM6); /* ADC12 Conversion Memory 6 */
SFR_8BIT(ADC12MEM6_L); /* ADC12 Conversion Memory 6 */
SFR_8BIT(ADC12MEM6_H); /* ADC12 Conversion Memory 6 */
SFR_16BIT(ADC12MEM7); /* ADC12 Conversion Memory 7 */
SFR_8BIT(ADC12MEM7_L); /* ADC12 Conversion Memory 7 */
SFR_8BIT(ADC12MEM7_H); /* ADC12 Conversion Memory 7 */
SFR_16BIT(ADC12MEM8); /* ADC12 Conversion Memory 8 */
SFR_8BIT(ADC12MEM8_L); /* ADC12 Conversion Memory 8 */
SFR_8BIT(ADC12MEM8_H); /* ADC12 Conversion Memory 8 */
SFR_16BIT(ADC12MEM9); /* ADC12 Conversion Memory 9 */
SFR_8BIT(ADC12MEM9_L); /* ADC12 Conversion Memory 9 */
SFR_8BIT(ADC12MEM9_H); /* ADC12 Conversion Memory 9 */
SFR_16BIT(ADC12MEM10); /* ADC12 Conversion Memory 10 */
SFR_8BIT(ADC12MEM10_L); /* ADC12 Conversion Memory 10 */
SFR_8BIT(ADC12MEM10_H); /* ADC12 Conversion Memory 10 */
SFR_16BIT(ADC12MEM11); /* ADC12 Conversion Memory 11 */
SFR_8BIT(ADC12MEM11_L); /* ADC12 Conversion Memory 11 */
SFR_8BIT(ADC12MEM11_H); /* ADC12 Conversion Memory 11 */
SFR_16BIT(ADC12MEM12); /* ADC12 Conversion Memory 12 */
SFR_8BIT(ADC12MEM12_L); /* ADC12 Conversion Memory 12 */
SFR_8BIT(ADC12MEM12_H); /* ADC12 Conversion Memory 12 */
SFR_16BIT(ADC12MEM13); /* ADC12 Conversion Memory 13 */
SFR_8BIT(ADC12MEM13_L); /* ADC12 Conversion Memory 13 */
SFR_8BIT(ADC12MEM13_H); /* ADC12 Conversion Memory 13 */
SFR_16BIT(ADC12MEM14); /* ADC12 Conversion Memory 14 */
SFR_8BIT(ADC12MEM14_L); /* ADC12 Conversion Memory 14 */
SFR_8BIT(ADC12MEM14_H); /* ADC12 Conversion Memory 14 */
SFR_16BIT(ADC12MEM15); /* ADC12 Conversion Memory 15 */
SFR_8BIT(ADC12MEM15_L); /* ADC12 Conversion Memory 15 */
SFR_8BIT(ADC12MEM15_H); /* ADC12 Conversion Memory 15 */
#define ADC12MEM_ ADC12MEM /* ADC12 Conversion Memory */
#ifdef __ASM_HEADER__
#define ADC12MEM ADC12MEM0 /* ADC12 Conversion Memory (for assembler) */
#else
#define ADC12MEM ((int*) &ADC12MEM0) /* ADC12 Conversion Memory (for C) */
#endif
SFR_8BIT(ADC12MCTL0); /* ADC12 Memory Control 0 */
SFR_8BIT(ADC12MCTL1); /* ADC12 Memory Control 1 */
SFR_8BIT(ADC12MCTL2); /* ADC12 Memory Control 2 */
SFR_8BIT(ADC12MCTL3); /* ADC12 Memory Control 3 */
SFR_8BIT(ADC12MCTL4); /* ADC12 Memory Control 4 */
SFR_8BIT(ADC12MCTL5); /* ADC12 Memory Control 5 */
SFR_8BIT(ADC12MCTL6); /* ADC12 Memory Control 6 */
SFR_8BIT(ADC12MCTL7); /* ADC12 Memory Control 7 */
SFR_8BIT(ADC12MCTL8); /* ADC12 Memory Control 8 */
SFR_8BIT(ADC12MCTL9); /* ADC12 Memory Control 9 */
SFR_8BIT(ADC12MCTL10); /* ADC12 Memory Control 10 */
SFR_8BIT(ADC12MCTL11); /* ADC12 Memory Control 11 */
SFR_8BIT(ADC12MCTL12); /* ADC12 Memory Control 12 */
SFR_8BIT(ADC12MCTL13); /* ADC12 Memory Control 13 */
SFR_8BIT(ADC12MCTL14); /* ADC12 Memory Control 14 */
SFR_8BIT(ADC12MCTL15); /* ADC12 Memory Control 15 */
#define ADC12MCTL_ ADC12MCTL /* ADC12 Memory Control */
#ifdef __ASM_HEADER__
#define ADC12MCTL ADC12MCTL0 /* ADC12 Memory Control (for assembler) */
#else
#define ADC12MCTL ((char*) ADC12MCTL0) /* ADC12 Memory Control (for C) */
#endif
/* ADC12CTL0 Control Bits */
#define ADC12SC (0x001) /* ADC12 Start Conversion */
#define ADC12ENC (0x002) /* ADC12 Enable Conversion */
#define ADC12TOVIE (0x004) /* ADC12 Timer Overflow interrupt enable */
#define ADC12OVIE (0x008) /* ADC12 Overflow interrupt enable */
#define ADC12ON (0x010) /* ADC12 On/enable */
#define ADC12REFON (0x020) /* ADC12 Reference on */
#define ADC12REF2_5V (0x040) /* ADC12 Ref 0:1.5V / 1:2.5V */
#define ADC12MSC (0x080) /* ADC12 Multiple SampleConversion */
#define ADC12SHT00 (0x0100) /* ADC12 Sample Hold 0 Select 0 */
#define ADC12SHT01 (0x0200) /* ADC12 Sample Hold 0 Select 1 */
#define ADC12SHT02 (0x0400) /* ADC12 Sample Hold 0 Select 2 */
#define ADC12SHT03 (0x0800) /* ADC12 Sample Hold 0 Select 3 */
#define ADC12SHT10 (0x1000) /* ADC12 Sample Hold 0 Select 0 */
#define ADC12SHT11 (0x2000) /* ADC12 Sample Hold 1 Select 1 */
#define ADC12SHT12 (0x4000) /* ADC12 Sample Hold 2 Select 2 */
#define ADC12SHT13 (0x8000) /* ADC12 Sample Hold 3 Select 3 */
/* ADC12CTL0 Control Bits */
#define ADC12SC_L (0x0001) /* ADC12 Start Conversion */
#define ADC12ENC_L (0x0002) /* ADC12 Enable Conversion */
#define ADC12TOVIE_L (0x0004) /* ADC12 Timer Overflow interrupt enable */
#define ADC12OVIE_L (0x0008) /* ADC12 Overflow interrupt enable */
#define ADC12ON_L (0x0010) /* ADC12 On/enable */
#define ADC12REFON_L (0x0020) /* ADC12 Reference on */
#define ADC12REF2_5V_L (0x0040) /* ADC12 Ref 0:1.5V / 1:2.5V */
#define ADC12MSC_L (0x0080) /* ADC12 Multiple SampleConversion */
/* ADC12CTL0 Control Bits */
#define ADC12SHT00_H (0x0001) /* ADC12 Sample Hold 0 Select 0 */
#define ADC12SHT01_H (0x0002) /* ADC12 Sample Hold 0 Select 1 */
#define ADC12SHT02_H (0x0004) /* ADC12 Sample Hold 0 Select 2 */
#define ADC12SHT03_H (0x0008) /* ADC12 Sample Hold 0 Select 3 */
#define ADC12SHT10_H (0x0010) /* ADC12 Sample Hold 0 Select 0 */
#define ADC12SHT11_H (0x0020) /* ADC12 Sample Hold 1 Select 1 */
#define ADC12SHT12_H (0x0040) /* ADC12 Sample Hold 2 Select 2 */
#define ADC12SHT13_H (0x0080) /* ADC12 Sample Hold 3 Select 3 */
#define ADC12SHT0_0 (0*0x100u)
#define ADC12SHT0_1 (1*0x100u)
#define ADC12SHT0_2 (2*0x100u)
#define ADC12SHT0_3 (3*0x100u)
#define ADC12SHT0_4 (4*0x100u)
#define ADC12SHT0_5 (5*0x100u)
#define ADC12SHT0_6 (6*0x100u)
#define ADC12SHT0_7 (7*0x100u)
#define ADC12SHT0_8 (8*0x100u)
#define ADC12SHT0_9 (9*0x100u)
#define ADC12SHT0_10 (10*0x100u)
#define ADC12SHT0_11 (11*0x100u)
#define ADC12SHT0_12 (12*0x100u)
#define ADC12SHT0_13 (13*0x100u)
#define ADC12SHT0_14 (14*0x100u)
#define ADC12SHT0_15 (15*0x100u)
#define ADC12SHT1_0 (0*0x1000u)
#define ADC12SHT1_1 (1*0x1000u)
#define ADC12SHT1_2 (2*0x1000u)
#define ADC12SHT1_3 (3*0x1000u)
#define ADC12SHT1_4 (4*0x1000u)
#define ADC12SHT1_5 (5*0x1000u)
#define ADC12SHT1_6 (6*0x1000u)
#define ADC12SHT1_7 (7*0x1000u)
#define ADC12SHT1_8 (8*0x1000u)
#define ADC12SHT1_9 (9*0x1000u)
#define ADC12SHT1_10 (10*0x1000u)
#define ADC12SHT1_11 (11*0x1000u)
#define ADC12SHT1_12 (12*0x1000u)
#define ADC12SHT1_13 (13*0x1000u)
#define ADC12SHT1_14 (14*0x1000u)
#define ADC12SHT1_15 (15*0x1000u)
/* ADC12CTL1 Control Bits */
#define ADC12BUSY (0x0001) /* ADC12 Busy */
#define ADC12CONSEQ0 (0x0002) /* ADC12 Conversion Sequence Select 0 */
#define ADC12CONSEQ1 (0x0004) /* ADC12 Conversion Sequence Select 1 */
#define ADC12SSEL0 (0x0008) /* ADC12 Clock Source Select 0 */
#define ADC12SSEL1 (0x0010) /* ADC12 Clock Source Select 1 */
#define ADC12DIV0 (0x0020) /* ADC12 Clock Divider Select 0 */
#define ADC12DIV1 (0x0040) /* ADC12 Clock Divider Select 1 */
#define ADC12DIV2 (0x0080) /* ADC12 Clock Divider Select 2 */
#define ADC12ISSH (0x0100) /* ADC12 Invert Sample Hold Signal */
#define ADC12SHP (0x0200) /* ADC12 Sample/Hold Pulse Mode */
#define ADC12SHS0 (0x0400) /* ADC12 Sample/Hold Source 0 */
#define ADC12SHS1 (0x0800) /* ADC12 Sample/Hold Source 1 */
#define ADC12CSTARTADD0 (0x1000) /* ADC12 Conversion Start Address 0 */
#define ADC12CSTARTADD1 (0x2000) /* ADC12 Conversion Start Address 1 */
#define ADC12CSTARTADD2 (0x4000) /* ADC12 Conversion Start Address 2 */
#define ADC12CSTARTADD3 (0x8000) /* ADC12 Conversion Start Address 3 */
/* ADC12CTL1 Control Bits */
#define ADC12BUSY_L (0x0001) /* ADC12 Busy */
#define ADC12CONSEQ0_L (0x0002) /* ADC12 Conversion Sequence Select 0 */
#define ADC12CONSEQ1_L (0x0004) /* ADC12 Conversion Sequence Select 1 */
#define ADC12SSEL0_L (0x0008) /* ADC12 Clock Source Select 0 */
#define ADC12SSEL1_L (0x0010) /* ADC12 Clock Source Select 1 */
#define ADC12DIV0_L (0x0020) /* ADC12 Clock Divider Select 0 */
#define ADC12DIV1_L (0x0040) /* ADC12 Clock Divider Select 1 */
#define ADC12DIV2_L (0x0080) /* ADC12 Clock Divider Select 2 */
/* ADC12CTL1 Control Bits */
#define ADC12ISSH_H (0x0001) /* ADC12 Invert Sample Hold Signal */
#define ADC12SHP_H (0x0002) /* ADC12 Sample/Hold Pulse Mode */
#define ADC12SHS0_H (0x0004) /* ADC12 Sample/Hold Source 0 */
#define ADC12SHS1_H (0x0008) /* ADC12 Sample/Hold Source 1 */
#define ADC12CSTARTADD0_H (0x0010) /* ADC12 Conversion Start Address 0 */
#define ADC12CSTARTADD1_H (0x0020) /* ADC12 Conversion Start Address 1 */
#define ADC12CSTARTADD2_H (0x0040) /* ADC12 Conversion Start Address 2 */
#define ADC12CSTARTADD3_H (0x0080) /* ADC12 Conversion Start Address 3 */
#define ADC12CONSEQ_0 (0*2u)
#define ADC12CONSEQ_1 (1*2u)
#define ADC12CONSEQ_2 (2*2u)
#define ADC12CONSEQ_3 (3*2u)
#define ADC12SSEL_0 (0*8u)
#define ADC12SSEL_1 (1*8u)
#define ADC12SSEL_2 (2*8u)
#define ADC12SSEL_3 (3*8u)
#define ADC12DIV_0 (0*0x20u)
#define ADC12DIV_1 (1*0x20u)
#define ADC12DIV_2 (2*0x20u)
#define ADC12DIV_3 (3*0x20u)
#define ADC12DIV_4 (4*0x20u)
#define ADC12DIV_5 (5*0x20u)
#define ADC12DIV_6 (6*0x20u)
#define ADC12DIV_7 (7*0x20u)
#define ADC12SHS_0 (0*0x400u)
#define ADC12SHS_1 (1*0x400u)
#define ADC12SHS_2 (2*0x400u)
#define ADC12SHS_3 (3*0x400u)
#define ADC12CSTARTADD_0 (0*0x1000u)
#define ADC12CSTARTADD_1 (1*0x1000u)
#define ADC12CSTARTADD_2 (2*0x1000u)
#define ADC12CSTARTADD_3 (3*0x1000u)
#define ADC12CSTARTADD_4 (4*0x1000u)
#define ADC12CSTARTADD_5 (5*0x1000u)
#define ADC12CSTARTADD_6 (6*0x1000u)
#define ADC12CSTARTADD_7 (7*0x1000u)
#define ADC12CSTARTADD_8 (8*0x1000u)
#define ADC12CSTARTADD_9 (9*0x1000u)
#define ADC12CSTARTADD_10 (10*0x1000u)
#define ADC12CSTARTADD_11 (11*0x1000u)
#define ADC12CSTARTADD_12 (12*0x1000u)
#define ADC12CSTARTADD_13 (13*0x1000u)
#define ADC12CSTARTADD_14 (14*0x1000u)
#define ADC12CSTARTADD_15 (15*0x1000u)
/* ADC12CTL2 Control Bits */
#define ADC12REFBURST (0x0001) /* ADC12+ Reference Burst */
#define ADC12REFOUT (0x0002) /* ADC12+ Reference Out */
#define ADC12SR (0x0004) /* ADC12+ Sampling Rate */
#define ADC12DF (0x0008) /* ADC12+ Data Format */
#define ADC12RES0 (0x0010) /* ADC12+ Resolution Bit: 0 */
#define ADC12RES1 (0x0020) /* ADC12+ Resolution Bit: 1 */
#define ADC12TCOFF (0x0080) /* ADC12+ Temperature Sensor Off */
#define ADC12PDIF0 (0x0100) /* ADC12+ predivider 0:/1 1:/4 */
/* ADC12CTL2 Control Bits */
#define ADC12REFBURST_L (0x0001) /* ADC12+ Reference Burst */
#define ADC12REFOUT_L (0x0002) /* ADC12+ Reference Out */
#define ADC12SR_L (0x0004) /* ADC12+ Sampling Rate */
#define ADC12DF_L (0x0008) /* ADC12+ Data Format */
#define ADC12RES0_L (0x0010) /* ADC12+ Resolution Bit: 0 */
#define ADC12RES1_L (0x0020) /* ADC12+ Resolution Bit: 1 */
#define ADC12TCOFF_L (0x0080) /* ADC12+ Temperature Sensor Off */
/* ADC12CTL2 Control Bits */
#define ADC12PDIF0_H (0x0001) /* ADC12+ predivider 0:/1 1:/4 */
#define ADC12RES_0 (0x0000) /* ADC12+ Resolution : 8 Bit */
#define ADC12RES_1 (0x0010) /* ADC12+ Resolution : 10 Bit */
#define ADC12RES_2 (0x0020) /* ADC12+ Resolution : 12 Bit */
#define ADC12RES_3 (0x0030) /* ADC12+ Resolution : reserved */
/* ADC12MCTLx Control Bits */
#define ADC12INCH0 (0x0001) /* ADC12 Input Channel Select Bit 0 */
#define ADC12INCH1 (0x0002) /* ADC12 Input Channel Select Bit 1 */
#define ADC12INCH2 (0x0004) /* ADC12 Input Channel Select Bit 2 */
#define ADC12INCH3 (0x0008) /* ADC12 Input Channel Select Bit 3 */
#define ADC12SREF0 (0x0010) /* ADC12 Select Reference Bit 0 */
#define ADC12SREF1 (0x0020) /* ADC12 Select Reference Bit 1 */
#define ADC12SREF2 (0x0040) /* ADC12 Select Reference Bit 2 */
#define ADC12EOS (0x0080) /* ADC12 End of Sequence */
/* ADC12MCTLx Control Bits */
#define ADC12INCH0_L (0x0001) /* ADC12 Input Channel Select Bit 0 */
#define ADC12INCH1_L (0x0002) /* ADC12 Input Channel Select Bit 1 */
#define ADC12INCH2_L (0x0004) /* ADC12 Input Channel Select Bit 2 */
#define ADC12INCH3_L (0x0008) /* ADC12 Input Channel Select Bit 3 */
#define ADC12SREF0_L (0x0010) /* ADC12 Select Reference Bit 0 */
#define ADC12SREF1_L (0x0020) /* ADC12 Select Reference Bit 1 */
#define ADC12SREF2_L (0x0040) /* ADC12 Select Reference Bit 2 */
#define ADC12EOS_L (0x0080) /* ADC12 End of Sequence */
/* ADC12MCTLx Control Bits */
#define ADC12INCH_0 (0)
#define ADC12INCH_1 (1)
#define ADC12INCH_2 (2)
#define ADC12INCH_3 (3)
#define ADC12INCH_4 (4)
#define ADC12INCH_5 (5)
#define ADC12INCH_6 (6)
#define ADC12INCH_7 (7)
#define ADC12INCH_8 (8)
#define ADC12INCH_9 (9)
#define ADC12INCH_10 (10)
#define ADC12INCH_11 (11)
#define ADC12INCH_12 (12)
#define ADC12INCH_13 (13)
#define ADC12INCH_14 (14)
#define ADC12INCH_15 (15)
#define ADC12SREF_0 (0*0x10u)
#define ADC12SREF_1 (1*0x10u)
#define ADC12SREF_2 (2*0x10u)
#define ADC12SREF_3 (3*0x10u)
#define ADC12SREF_4 (4*0x10u)
#define ADC12SREF_5 (5*0x10u)
#define ADC12SREF_6 (6*0x10u)
#define ADC12SREF_7 (7*0x10u)
/* ADC12IV Definitions */
#define ADC12IV_NONE (0x0000) /* No Interrupt pending */
#define ADC12IV_ADC12OVIFG (0x0002) /* ADC12OVIFG */
#define ADC12IV_ADC12TOVIFG (0x0004) /* ADC12TOVIFG */
#define ADC12IV_ADC12IFG0 (0x0006) /* ADC12IFG0 */
#define ADC12IV_ADC12IFG1 (0x0008) /* ADC12IFG1 */
#define ADC12IV_ADC12IFG2 (0x000A) /* ADC12IFG2 */
#define ADC12IV_ADC12IFG3 (0x000C) /* ADC12IFG3 */
#define ADC12IV_ADC12IFG4 (0x000E) /* ADC12IFG4 */
#define ADC12IV_ADC12IFG5 (0x0010) /* ADC12IFG5 */
#define ADC12IV_ADC12IFG6 (0x0012) /* ADC12IFG6 */
#define ADC12IV_ADC12IFG7 (0x0014) /* ADC12IFG7 */
#define ADC12IV_ADC12IFG8 (0x0016) /* ADC12IFG8 */
#define ADC12IV_ADC12IFG9 (0x0018) /* ADC12IFG9 */
#define ADC12IV_ADC12IFG10 (0x001A) /* ADC12IFG10 */
#define ADC12IV_ADC12IFG11 (0x001C) /* ADC12IFG11 */
#define ADC12IV_ADC12IFG12 (0x001E) /* ADC12IFG12 */
#define ADC12IV_ADC12IFG13 (0x0020) /* ADC12IFG13 */
#define ADC12IV_ADC12IFG14 (0x0022) /* ADC12IFG14 */
#define ADC12IV_ADC12IFG15 (0x0024) /* ADC12IFG15 */
/*************************************************************
* CRC Module
*************************************************************/
#define __MSP430_HAS_CRC__ /* Definition to show that Module is available */
SFR_16BIT(CRCDI); /* CRC Data In Register */
SFR_8BIT(CRCDI_L); /* CRC Data In Register */
SFR_8BIT(CRCDI_H); /* CRC Data In Register */
SFR_16BIT(CRCINIRES); /* CRC Initialisation Register and Result Register*/
SFR_8BIT(CRCINIRES_L); /* CRC Initialisation Register and Result Register*/
SFR_8BIT(CRCINIRES_H); /* CRC Initialisation Register and Result Register*/
/************************************************************
* DMA_X
************************************************************/
#define __MSP430_HAS_DMAX_3__ /* Definition to show that Module is available */
SFR_16BIT(DMACTL0); /* DMA Module Control 0 */
SFR_8BIT(DMACTL0_L); /* DMA Module Control 0 */
SFR_8BIT(DMACTL0_H); /* DMA Module Control 0 */
SFR_16BIT(DMACTL1); /* DMA Module Control 1 */
SFR_8BIT(DMACTL1_L); /* DMA Module Control 1 */
SFR_8BIT(DMACTL1_H); /* DMA Module Control 1 */
SFR_16BIT(DMACTL2); /* DMA Module Control 2 */
SFR_8BIT(DMACTL2_L); /* DMA Module Control 2 */
SFR_8BIT(DMACTL2_H); /* DMA Module Control 2 */
SFR_16BIT(DMACTL3); /* DMA Module Control 3 */
SFR_8BIT(DMACTL3_L); /* DMA Module Control 3 */
SFR_8BIT(DMACTL3_H); /* DMA Module Control 3 */
SFR_16BIT(DMACTL4); /* DMA Module Control 4 */
SFR_8BIT(DMACTL4_L); /* DMA Module Control 4 */
SFR_8BIT(DMACTL4_H); /* DMA Module Control 4 */
SFR_16BIT(DMAIV); /* DMA Interrupt Vector Word */
SFR_8BIT(DMAIV_L); /* DMA Interrupt Vector Word */
SFR_8BIT(DMAIV_H); /* DMA Interrupt Vector Word */
SFR_16BIT(DMA0CTL); /* DMA Channel 0 Control */
SFR_8BIT(DMA0CTL_L); /* DMA Channel 0 Control */
SFR_8BIT(DMA0CTL_H); /* DMA Channel 0 Control */
SFR_20BIT(DMA0SA); /* DMA Channel 0 Source Address */
SFR_20BIT(DMA0DA); /* DMA Channel 0 Destination Address */
SFR_16BIT(DMA0SZ); /* DMA Channel 0 Transfer Size */
SFR_8BIT(DMA0SZ_L); /* DMA Channel 0 Transfer Size */
SFR_8BIT(DMA0SZ_H); /* DMA Channel 0 Transfer Size */
SFR_16BIT(DMA1CTL); /* DMA Channel 1 Control */
SFR_8BIT(DMA1CTL_L); /* DMA Channel 1 Control */
SFR_8BIT(DMA1CTL_H); /* DMA Channel 1 Control */
SFR_20BIT(DMA1SA); /* DMA Channel 1 Source Address */
SFR_20BIT(DMA1DA); /* DMA Channel 1 Destination Address */
SFR_16BIT(DMA1SZ); /* DMA Channel 1 Transfer Size */
SFR_8BIT(DMA1SZ_L); /* DMA Channel 1 Transfer Size */
SFR_8BIT(DMA1SZ_H); /* DMA Channel 1 Transfer Size */
SFR_16BIT(DMA2CTL); /* DMA Channel 2 Control */
SFR_8BIT(DMA2CTL_L); /* DMA Channel 2 Control */
SFR_8BIT(DMA2CTL_H); /* DMA Channel 2 Control */
SFR_20BIT(DMA2SA); /* DMA Channel 2 Source Address */
SFR_20BIT(DMA2DA); /* DMA Channel 2 Destination Address */
SFR_16BIT(DMA2SZ); /* DMA Channel 2 Transfer Size */
SFR_8BIT(DMA2SZ_L); /* DMA Channel 2 Transfer Size */
SFR_8BIT(DMA2SZ_H); /* DMA Channel 2 Transfer Size */
/* DMACTL0 Control Bits */
#define DMA0TSEL0 (0x0001) /* DMA channel 0 transfer select bit 0 */
#define DMA0TSEL1 (0x0002) /* DMA channel 0 transfer select bit 1 */
#define DMA0TSEL2 (0x0004) /* DMA channel 0 transfer select bit 2 */
#define DMA0TSEL3 (0x0008) /* DMA channel 0 transfer select bit 3 */
#define DMA0TSEL4 (0x0010) /* DMA channel 0 transfer select bit 4 */
#define DMA1TSEL0 (0x0100) /* DMA channel 1 transfer select bit 0 */
#define DMA1TSEL1 (0x0200) /* DMA channel 1 transfer select bit 1 */
#define DMA1TSEL2 (0x0400) /* DMA channel 1 transfer select bit 2 */
#define DMA1TSEL3 (0x0800) /* DMA channel 1 transfer select bit 3 */
#define DMA1TSEL4 (0x1000) /* DMA channel 1 transfer select bit 4 */
/* DMACTL0 Control Bits */
#define DMA0TSEL0_L (0x0001) /* DMA channel 0 transfer select bit 0 */
#define DMA0TSEL1_L (0x0002) /* DMA channel 0 transfer select bit 1 */
#define DMA0TSEL2_L (0x0004) /* DMA channel 0 transfer select bit 2 */
#define DMA0TSEL3_L (0x0008) /* DMA channel 0 transfer select bit 3 */
#define DMA0TSEL4_L (0x0010) /* DMA channel 0 transfer select bit 4 */
/* DMACTL0 Control Bits */
#define DMA1TSEL0_H (0x0001) /* DMA channel 1 transfer select bit 0 */
#define DMA1TSEL1_H (0x0002) /* DMA channel 1 transfer select bit 1 */
#define DMA1TSEL2_H (0x0004) /* DMA channel 1 transfer select bit 2 */
#define DMA1TSEL3_H (0x0008) /* DMA channel 1 transfer select bit 3 */
#define DMA1TSEL4_H (0x0010) /* DMA channel 1 transfer select bit 4 */
/* DMACTL01 Control Bits */
#define DMA2TSEL0 (0x0001) /* DMA channel 2 transfer select bit 0 */
#define DMA2TSEL1 (0x0002) /* DMA channel 2 transfer select bit 1 */
#define DMA2TSEL2 (0x0004) /* DMA channel 2 transfer select bit 2 */
#define DMA2TSEL3 (0x0008) /* DMA channel 2 transfer select bit 3 */
#define DMA2TSEL4 (0x0010) /* DMA channel 2 transfer select bit 4 */
/* DMACTL01 Control Bits */
#define DMA2TSEL0_L (0x0001) /* DMA channel 2 transfer select bit 0 */
#define DMA2TSEL1_L (0x0002) /* DMA channel 2 transfer select bit 1 */
#define DMA2TSEL2_L (0x0004) /* DMA channel 2 transfer select bit 2 */
#define DMA2TSEL3_L (0x0008) /* DMA channel 2 transfer select bit 3 */
#define DMA2TSEL4_L (0x0010) /* DMA channel 2 transfer select bit 4 */
/* DMACTL01 Control Bits */
/* DMACTL4 Control Bits */
#define ENNMI (0x0001) /* Enable NMI interruption of DMA */
#define ROUNDROBIN (0x0002) /* Round-Robin DMA channel priorities */
#define DMARMWDIS (0x0004) /* Inhibited DMA transfers during read-modify-write CPU operations */
/* DMACTL4 Control Bits */
#define ENNMI_L (0x0001) /* Enable NMI interruption of DMA */
#define ROUNDROBIN_L (0x0002) /* Round-Robin DMA channel priorities */
#define DMARMWDIS_L (0x0004) /* Inhibited DMA transfers during read-modify-write CPU operations */
/* DMACTL4 Control Bits */
/* DMAxCTL Control Bits */
#define DMAREQ (0x0001) /* Initiate DMA transfer with DMATSEL */
#define DMAABORT (0x0002) /* DMA transfer aborted by NMI */
#define DMAIE (0x0004) /* DMA interrupt enable */
#define DMAIFG (0x0008) /* DMA interrupt flag */
#define DMAEN (0x0010) /* DMA enable */
#define DMALEVEL (0x0020) /* DMA level sensitive trigger select */
#define DMASRCBYTE (0x0040) /* DMA source byte */
#define DMADSTBYTE (0x0080) /* DMA destination byte */
#define DMASRCINCR0 (0x0100) /* DMA source increment bit 0 */
#define DMASRCINCR1 (0x0200) /* DMA source increment bit 1 */
#define DMADSTINCR0 (0x0400) /* DMA destination increment bit 0 */
#define DMADSTINCR1 (0x0800) /* DMA destination increment bit 1 */
#define DMADT0 (0x1000) /* DMA transfer mode bit 0 */
#define DMADT1 (0x2000) /* DMA transfer mode bit 1 */
#define DMADT2 (0x4000) /* DMA transfer mode bit 2 */
/* DMAxCTL Control Bits */
#define DMAREQ_L (0x0001) /* Initiate DMA transfer with DMATSEL */
#define DMAABORT_L (0x0002) /* DMA transfer aborted by NMI */
#define DMAIE_L (0x0004) /* DMA interrupt enable */
#define DMAIFG_L (0x0008) /* DMA interrupt flag */
#define DMAEN_L (0x0010) /* DMA enable */
#define DMALEVEL_L (0x0020) /* DMA level sensitive trigger select */
#define DMASRCBYTE_L (0x0040) /* DMA source byte */
#define DMADSTBYTE_L (0x0080) /* DMA destination byte */
/* DMAxCTL Control Bits */
#define DMASRCINCR0_H (0x0001) /* DMA source increment bit 0 */
#define DMASRCINCR1_H (0x0002) /* DMA source increment bit 1 */
#define DMADSTINCR0_H (0x0004) /* DMA destination increment bit 0 */
#define DMADSTINCR1_H (0x0008) /* DMA destination increment bit 1 */
#define DMADT0_H (0x0010) /* DMA transfer mode bit 0 */
#define DMADT1_H (0x0020) /* DMA transfer mode bit 1 */
#define DMADT2_H (0x0040) /* DMA transfer mode bit 2 */
#define DMASWDW (0*0x0040u) /* DMA transfer: source word to destination word */
#define DMASBDW (1*0x0040u) /* DMA transfer: source byte to destination word */
#define DMASWDB (2*0x0040u) /* DMA transfer: source word to destination byte */
#define DMASBDB (3*0x0040u) /* DMA transfer: source byte to destination byte */
#define DMASRCINCR_0 (0*0x0100u) /* DMA source increment 0: source address unchanged */
#define DMASRCINCR_1 (1*0x0100u) /* DMA source increment 1: source address unchanged */
#define DMASRCINCR_2 (2*0x0100u) /* DMA source increment 2: source address decremented */
#define DMASRCINCR_3 (3*0x0100u) /* DMA source increment 3: source address incremented */
#define DMADSTINCR_0 (0*0x0400u) /* DMA destination increment 0: destination address unchanged */
#define DMADSTINCR_1 (1*0x0400u) /* DMA destination increment 1: destination address unchanged */
#define DMADSTINCR_2 (2*0x0400u) /* DMA destination increment 2: destination address decremented */
#define DMADSTINCR_3 (3*0x0400u) /* DMA destination increment 3: destination address incremented */
#define DMADT_0 (0*0x1000u) /* DMA transfer mode 0: Single transfer */
#define DMADT_1 (1*0x1000u) /* DMA transfer mode 1: Block transfer */
#define DMADT_2 (2*0x1000u) /* DMA transfer mode 2: Burst-Block transfer */
#define DMADT_3 (3*0x1000u) /* DMA transfer mode 3: Burst-Block transfer */
#define DMADT_4 (4*0x1000u) /* DMA transfer mode 4: Repeated Single transfer */
#define DMADT_5 (5*0x1000u) /* DMA transfer mode 5: Repeated Block transfer */
#define DMADT_6 (6*0x1000u) /* DMA transfer mode 6: Repeated Burst-Block transfer */
#define DMADT_7 (7*0x1000u) /* DMA transfer mode 7: Repeated Burst-Block transfer */
/* DMAIV Definitions */
#define DMAIV_NONE (0x0000) /* No Interrupt pending */
#define DMAIV_DMA0IFG (0x0002) /* DMA0IFG*/
#define DMAIV_DMA1IFG (0x0004) /* DMA1IFG*/
#define DMAIV_DMA2IFG (0x0006) /* DMA2IFG*/
#define DMA0TSEL_0 (0*0x0001u) /* DMA channel 0 transfer select 0: DMA_REQ (sw) */
#define DMA0TSEL_1 (1*0x0001u) /* DMA channel 0 transfer select 1: Timer0_A (TA0CCR0.IFG) */
#define DMA0TSEL_2 (2*0x0001u) /* DMA channel 0 transfer select 2: Timer0_A (TA0CCR2.IFG) */
#define DMA0TSEL_3 (3*0x0001u) /* DMA channel 0 transfer select 3: Timer1_A (TA1CCR0.IFG) */
#define DMA0TSEL_4 (4*0x0001u) /* DMA channel 0 transfer select 4: Timer1_A (TA1CCR2.IFG) */
#define DMA0TSEL_5 (5*0x0001u) /* DMA channel 0 transfer select 5: TimerB (TBCCR0.IFG) */
#define DMA0TSEL_6 (6*0x0001u) /* DMA channel 0 transfer select 6: TimerB (TBCCR2.IFG) */
#define DMA0TSEL_7 (7*0x0001u) /* DMA channel 0 transfer select 7: Reserved */
#define DMA0TSEL_8 (8*0x0001u) /* DMA channel 0 transfer select 8: Reserved */
#define DMA0TSEL_9 (9*0x0001u) /* DMA channel 0 transfer select 9: Reserved */
#define DMA0TSEL_10 (10*0x0001u) /* DMA channel 0 transfer select 10: Reserved */
#define DMA0TSEL_11 (11*0x0001u) /* DMA channel 0 transfer select 11: Reserved */
#define DMA0TSEL_12 (12*0x0001u) /* DMA channel 0 transfer select 12: Reserved */
#define DMA0TSEL_13 (13*0x0001u) /* DMA channel 0 transfer select 13: Reserved */
#define DMA0TSEL_14 (14*0x0001u) /* DMA channel 0 transfer select 14: Reserved */
#define DMA0TSEL_15 (15*0x0001u) /* DMA channel 0 transfer select 15: Reserved */
#define DMA0TSEL_16 (16*0x0001u) /* DMA channel 0 transfer select 16: USCIA0 receive */
#define DMA0TSEL_17 (17*0x0001u) /* DMA channel 0 transfer select 17: USCIA0 transmit */
#define DMA0TSEL_18 (18*0x0001u) /* DMA channel 0 transfer select 18: USCIB0 receive */
#define DMA0TSEL_19 (19*0x0001u) /* DMA channel 0 transfer select 19: USCIB0 transmit */
#define DMA0TSEL_20 (20*0x0001u) /* DMA channel 0 transfer select 20: USCIA1 receive */
#define DMA0TSEL_21 (21*0x0001u) /* DMA channel 0 transfer select 21: USCIA1 transmit */
#define DMA0TSEL_22 (22*0x0001u) /* DMA channel 0 transfer select 22: USCIB1 receive */
#define DMA0TSEL_23 (23*0x0001u) /* DMA channel 0 transfer select 23: USCIB1 transmit */
#define DMA0TSEL_24 (24*0x0001u) /* DMA channel 0 transfer select 24: ADC12IFGx */
#define DMA0TSEL_25 (25*0x0001u) /* DMA channel 0 transfer select 25: Reserved */
#define DMA0TSEL_26 (26*0x0001u) /* DMA channel 0 transfer select 26: Reserved */
#define DMA0TSEL_27 (27*0x0001u) /* DMA channel 0 transfer select 27: Reserved */
#define DMA0TSEL_28 (28*0x0001u) /* DMA channel 0 transfer select 28: Reserved */
#define DMA0TSEL_29 (29*0x0001u) /* DMA channel 0 transfer select 29: Multiplier ready */
#define DMA0TSEL_30 (30*0x0001u) /* DMA channel 0 transfer select 30: previous DMA channel DMA2IFG */
#define DMA0TSEL_31 (31*0x0001u) /* DMA channel 0 transfer select 31: ext. Trigger (DMAE0) */
#define DMA1TSEL_0 (0*0x0100u) /* DMA channel 1 transfer select 0: DMA_REQ (sw) */
#define DMA1TSEL_1 (1*0x0100u) /* DMA channel 1 transfer select 1: Timer0_A (TA0CCR0.IFG) */
#define DMA1TSEL_2 (2*0x0100u) /* DMA channel 1 transfer select 2: Timer0_A (TA0CCR2.IFG) */
#define DMA1TSEL_3 (3*0x0100u) /* DMA channel 1 transfer select 3: Timer1_A (TA1CCR0.IFG) */
#define DMA1TSEL_4 (4*0x0100u) /* DMA channel 1 transfer select 4: Timer1_A (TA1CCR2.IFG) */
#define DMA1TSEL_5 (5*0x0100u) /* DMA channel 1 transfer select 5: TimerB (TBCCR0.IFG) */
#define DMA1TSEL_6 (6*0x0100u) /* DMA channel 1 transfer select 6: TimerB (TBCCR2.IFG) */
#define DMA1TSEL_7 (7*0x0100u) /* DMA channel 1 transfer select 7: Reserved */
#define DMA1TSEL_8 (8*0x0100u) /* DMA channel 1 transfer select 8: Reserved */
#define DMA1TSEL_9 (9*0x0100u) /* DMA channel 1 transfer select 9: Reserved */
#define DMA1TSEL_10 (10*0x0100u) /* DMA channel 1 transfer select 10: Reserved */
#define DMA1TSEL_11 (11*0x0100u) /* DMA channel 1 transfer select 11: Reserved */
#define DMA1TSEL_12 (12*0x0100u) /* DMA channel 1 transfer select 12: Reserved */
#define DMA1TSEL_13 (13*0x0100u) /* DMA channel 1 transfer select 13: Reserved */
#define DMA1TSEL_14 (14*0x0100u) /* DMA channel 1 transfer select 14: Reserved */
#define DMA1TSEL_15 (15*0x0100u) /* DMA channel 1 transfer select 15: Reserved */
#define DMA1TSEL_16 (16*0x0100u) /* DMA channel 1 transfer select 16: USCIA0 receive */
#define DMA1TSEL_17 (17*0x0100u) /* DMA channel 1 transfer select 17: USCIA0 transmit */
#define DMA1TSEL_18 (18*0x0100u) /* DMA channel 1 transfer select 18: USCIB0 receive */
#define DMA1TSEL_19 (19*0x0100u) /* DMA channel 1 transfer select 19: USCIB0 transmit */
#define DMA1TSEL_20 (20*0x0100u) /* DMA channel 1 transfer select 20: USCIA1 receive */
#define DMA1TSEL_21 (21*0x0100u) /* DMA channel 1 transfer select 21: USCIA1 transmit */
#define DMA1TSEL_22 (22*0x0100u) /* DMA channel 1 transfer select 22: USCIB1 receive */
#define DMA1TSEL_23 (23*0x0100u) /* DMA channel 1 transfer select 23: USCIB1 transmit */
#define DMA1TSEL_24 (24*0x0100u) /* DMA channel 1 transfer select 24: ADC12IFGx */
#define DMA1TSEL_25 (25*0x0100u) /* DMA channel 1 transfer select 25: Reserved */
#define DMA1TSEL_26 (26*0x0100u) /* DMA channel 1 transfer select 26: Reserved */
#define DMA1TSEL_27 (27*0x0100u) /* DMA channel 1 transfer select 27: Reserved */
#define DMA1TSEL_28 (28*0x0100u) /* DMA channel 1 transfer select 28: Reserved */
#define DMA1TSEL_29 (29*0x0100u) /* DMA channel 1 transfer select 29: Multiplier ready */
#define DMA1TSEL_30 (30*0x0100u) /* DMA channel 1 transfer select 30: previous DMA channel DMA0IFG */
#define DMA1TSEL_31 (31*0x0100u) /* DMA channel 1 transfer select 31: ext. Trigger (DMAE0) */
#define DMA2TSEL_0 (0*0x0001u) /* DMA channel 2 transfer select 0: DMA_REQ (sw) */
#define DMA2TSEL_1 (1*0x0001u) /* DMA channel 2 transfer select 1: Timer0_A (TA0CCR0.IFG) */
#define DMA2TSEL_2 (2*0x0001u) /* DMA channel 2 transfer select 2: Timer0_A (TA0CCR2.IFG) */
#define DMA2TSEL_3 (3*0x0001u) /* DMA channel 2 transfer select 3: Timer1_A (TA1CCR0.IFG) */
#define DMA2TSEL_4 (4*0x0001u) /* DMA channel 2 transfer select 4: Timer1_A (TA1CCR2.IFG) */
#define DMA2TSEL_5 (5*0x0001u) /* DMA channel 2 transfer select 5: TimerB (TBCCR0.IFG) */
#define DMA2TSEL_6 (6*0x0001u) /* DMA channel 2 transfer select 6: TimerB (TBCCR2.IFG) */
#define DMA2TSEL_7 (7*0x0001u) /* DMA channel 2 transfer select 7: Reserved */
#define DMA2TSEL_8 (8*0x0001u) /* DMA channel 2 transfer select 8: Reserved */
#define DMA2TSEL_9 (9*0x0001u) /* DMA channel 2 transfer select 9: Reserved */
#define DMA2TSEL_10 (10*0x0001u) /* DMA channel 2 transfer select 10: Reserved */
#define DMA2TSEL_11 (11*0x0001u) /* DMA channel 2 transfer select 11: Reserved */
#define DMA2TSEL_12 (12*0x0001u) /* DMA channel 2 transfer select 12: Reserved */
#define DMA2TSEL_13 (13*0x0001u) /* DMA channel 2 transfer select 13: Reserved */
#define DMA2TSEL_14 (14*0x0001u) /* DMA channel 2 transfer select 14: Reserved */
#define DMA2TSEL_15 (15*0x0001u) /* DMA channel 2 transfer select 15: Reserved */
#define DMA2TSEL_16 (16*0x0001u) /* DMA channel 2 transfer select 16: USCIA0 receive */
#define DMA2TSEL_17 (17*0x0001u) /* DMA channel 2 transfer select 17: USCIA0 transmit */
#define DMA2TSEL_18 (18*0x0001u) /* DMA channel 2 transfer select 18: USCIB0 receive */
#define DMA2TSEL_19 (19*0x0001u) /* DMA channel 2 transfer select 19: USCIB0 transmit */
#define DMA2TSEL_20 (20*0x0001u) /* DMA channel 2 transfer select 20: USCIA1 receive */
#define DMA2TSEL_21 (21*0x0001u) /* DMA channel 2 transfer select 21: USCIA1 transmit */
#define DMA2TSEL_22 (22*0x0001u) /* DMA channel 2 transfer select 22: USCIB1 receive */
#define DMA2TSEL_23 (23*0x0001u) /* DMA channel 2 transfer select 23: USCIB1 transmit */
#define DMA2TSEL_24 (24*0x0001u) /* DMA channel 2 transfer select 24: ADC12IFGx */
#define DMA2TSEL_25 (25*0x0001u) /* DMA channel 2 transfer select 25: Reserved */
#define DMA2TSEL_26 (26*0x0001u) /* DMA channel 2 transfer select 26: Reserved */
#define DMA2TSEL_27 (27*0x0001u) /* DMA channel 2 transfer select 27: Reserved */
#define DMA2TSEL_28 (28*0x0001u) /* DMA channel 2 transfer select 28: Reserved */
#define DMA2TSEL_29 (29*0x0001u) /* DMA channel 2 transfer select 29: Multiplier ready */
#define DMA2TSEL_30 (30*0x0001u) /* DMA channel 2 transfer select 30: previous DMA channel DMA1IFG */
#define DMA2TSEL_31 (31*0x0001u) /* DMA channel 2 transfer select 31: ext. Trigger (DMAE0) */
/*************************************************************
* Flash Memory
*************************************************************/
#define __MSP430_HAS_FLASH__ /* Definition to show that Module is available */
SFR_16BIT(FCTL1); /* FLASH Control 1 */
SFR_8BIT(FCTL1_L); /* FLASH Control 1 */
SFR_8BIT(FCTL1_H); /* FLASH Control 1 */
//sfrbw FCTL2 (0x0142) /* FLASH Control 2 */
SFR_16BIT(FCTL3); /* FLASH Control 3 */
SFR_8BIT(FCTL3_L); /* FLASH Control 3 */
SFR_8BIT(FCTL3_H); /* FLASH Control 3 */
SFR_16BIT(FCTL4); /* FLASH Control 4 */
SFR_8BIT(FCTL4_L); /* FLASH Control 4 */
SFR_8BIT(FCTL4_H); /* FLASH Control 4 */
#define FRKEY (0x9600) /* Flash key returned by read */
#define FWKEY (0xA500) /* Flash key for write */
#define FXKEY (0x3300) /* for use with XOR instruction */
/* FCTL1 Control Bits */
//#define RESERVED (0x0001) /* Reserved */
#define ERASE (0x0002) /* Enable bit for Flash segment erase */
#define MERAS (0x0004) /* Enable bit for Flash mass erase */
#define EEI (0x0008) /* Enable Erase Interrupts */
#define EEIEX (0x0010) /* Enable Emergency Interrupt Exit */
#define SWRT (0x0020) /* Smart Write enable */
#define WRT (0x0040) /* Enable bit for Flash write */
#define BLKWRT (0x0080) /* Enable bit for Flash segment write */
/* FCTL1 Control Bits */
//#define RESERVED (0x0001) /* Reserved */
#define ERASE_L (0x0002) /* Enable bit for Flash segment erase */
#define MERAS_L (0x0004) /* Enable bit for Flash mass erase */
#define EEI_L (0x0008) /* Enable Erase Interrupts */
#define EEIEX_L (0x0010) /* Enable Emergency Interrupt Exit */
#define SWRT_L (0x0020) /* Smart Write enable */
#define WRT_L (0x0040) /* Enable bit for Flash write */
#define BLKWRT_L (0x0080) /* Enable bit for Flash segment write */
/* FCTL1 Control Bits */
//#define RESERVED (0x0001) /* Reserved */
/* FCTL3 Control Bits */
#define BUSY (0x0001) /* Flash busy: 1 */
#define KEYV (0x0002) /* Flash Key violation flag */
#define ACCVIFG (0x0004) /* Flash Access violation flag */
#define WAIT (0x0008) /* Wait flag for segment write */
#define LOCK (0x0010) /* Lock bit: 1 - Flash is locked (read only) */
#define EMEX (0x0020) /* Flash Emergency Exit */
#define LOCKA (0x0040) /* Segment A Lock bit: read = 1 - Segment is locked (read only) */
#define FAIL (0x0080) /* Last Program or Erase failed */
/* FCTL3 Control Bits */
#define BUSY_L (0x0001) /* Flash busy: 1 */
#define KEYV_L (0x0002) /* Flash Key violation flag */
#define ACCVIFG_L (0x0004) /* Flash Access violation flag */
#define WAIT_L (0x0008) /* Wait flag for segment write */
#define LOCK_L (0x0010) /* Lock bit: 1 - Flash is locked (read only) */
#define EMEX_L (0x0020) /* Flash Emergency Exit */
#define LOCKA_L (0x0040) /* Segment A Lock bit: read = 1 - Segment is locked (read only) */
#define FAIL_L (0x0080) /* Last Program or Erase failed */
/* FCTL3 Control Bits */
/* FCTL4 Control Bits */
#define VPE (0x0001) /* Voltage Changed during Program Error Flag */
#define MGR0 (0x0010) /* Marginal read 0 mode. */
#define MGR1 (0x0020) /* Marginal read 1 mode. */
#define LOCKINFO (0x0080) /* Lock INFO Memory bit: read = 1 - Segment is locked (read only) */
/* FCTL4 Control Bits */
#define VPE_L (0x0001) /* Voltage Changed during Program Error Flag */
#define MGR0_L (0x0010) /* Marginal read 0 mode. */
#define MGR1_L (0x0020) /* Marginal read 1 mode. */
#define LOCKINFO_L (0x0080) /* Lock INFO Memory bit: read = 1 - Segment is locked (read only) */
/* FCTL4 Control Bits */
/************************************************************
* HARDWARE MULTIPLIER 32Bit
************************************************************/
#define __MSP430_HAS_MPY32__ /* Definition to show that Module is available */
SFR_16BIT(MPY); /* Multiply Unsigned/Operand 1 */
SFR_8BIT(MPY_L); /* Multiply Unsigned/Operand 1 */
SFR_8BIT(MPY_H); /* Multiply Unsigned/Operand 1 */
SFR_16BIT(MPYS); /* Multiply Signed/Operand 1 */
SFR_8BIT(MPYS_L); /* Multiply Signed/Operand 1 */
SFR_8BIT(MPYS_H); /* Multiply Signed/Operand 1 */
SFR_16BIT(MAC); /* Multiply Unsigned and Accumulate/Operand 1 */
SFR_8BIT(MAC_L); /* Multiply Unsigned and Accumulate/Operand 1 */
SFR_8BIT(MAC_H); /* Multiply Unsigned and Accumulate/Operand 1 */
SFR_16BIT(MACS); /* Multiply Signed and Accumulate/Operand 1 */
SFR_8BIT(MACS_L); /* Multiply Signed and Accumulate/Operand 1 */
SFR_8BIT(MACS_H); /* Multiply Signed and Accumulate/Operand 1 */
SFR_16BIT(OP2); /* Operand 2 */
SFR_8BIT(OP2_L); /* Operand 2 */
SFR_8BIT(OP2_H); /* Operand 2 */
SFR_16BIT(RESLO); /* Result Low Word */
SFR_8BIT(RESLO_L); /* Result Low Word */
SFR_8BIT(RESLO_H); /* Result Low Word */
SFR_16BIT(RESHI); /* Result High Word */
SFR_8BIT(RESHI_L); /* Result High Word */
SFR_8BIT(RESHI_H); /* Result High Word */
SFR_16BIT(SUMEXT); /* Sum Extend */
SFR_8BIT(SUMEXT_L); /* Sum Extend */
SFR_8BIT(SUMEXT_H); /* Sum Extend */
SFR_16BIT(MPY32L); /* 32-bit operand 1 - multiply - low word */
SFR_8BIT(MPY32L_L); /* 32-bit operand 1 - multiply - low word */
SFR_8BIT(MPY32L_H); /* 32-bit operand 1 - multiply - low word */
SFR_16BIT(MPY32H); /* 32-bit operand 1 - multiply - high word */
SFR_8BIT(MPY32H_L); /* 32-bit operand 1 - multiply - high word */
SFR_8BIT(MPY32H_H); /* 32-bit operand 1 - multiply - high word */
SFR_16BIT(MPYS32L); /* 32-bit operand 1 - signed multiply - low word */
SFR_8BIT(MPYS32L_L); /* 32-bit operand 1 - signed multiply - low word */
SFR_8BIT(MPYS32L_H); /* 32-bit operand 1 - signed multiply - low word */
SFR_16BIT(MPYS32H); /* 32-bit operand 1 - signed multiply - high word */
SFR_8BIT(MPYS32H_L); /* 32-bit operand 1 - signed multiply - high word */
SFR_8BIT(MPYS32H_H); /* 32-bit operand 1 - signed multiply - high word */
SFR_16BIT(MAC32L); /* 32-bit operand 1 - multiply accumulate - low word */
SFR_8BIT(MAC32L_L); /* 32-bit operand 1 - multiply accumulate - low word */
SFR_8BIT(MAC32L_H); /* 32-bit operand 1 - multiply accumulate - low word */
SFR_16BIT(MAC32H); /* 32-bit operand 1 - multiply accumulate - high word */
SFR_8BIT(MAC32H_L); /* 32-bit operand 1 - multiply accumulate - high word */
SFR_8BIT(MAC32H_H); /* 32-bit operand 1 - multiply accumulate - high word */
SFR_16BIT(MACS32L); /* 32-bit operand 1 - signed multiply accumulate - low word */
SFR_8BIT(MACS32L_L); /* 32-bit operand 1 - signed multiply accumulate - low word */
SFR_8BIT(MACS32L_H); /* 32-bit operand 1 - signed multiply accumulate - low word */
SFR_16BIT(MACS32H); /* 32-bit operand 1 - signed multiply accumulate - high word */
SFR_8BIT(MACS32H_L); /* 32-bit operand 1 - signed multiply accumulate - high word */
SFR_8BIT(MACS32H_H); /* 32-bit operand 1 - signed multiply accumulate - high word */
SFR_16BIT(OP2L); /* 32-bit operand 2 - low word */
SFR_8BIT(OP2L_L); /* 32-bit operand 2 - low word */
SFR_8BIT(OP2L_H); /* 32-bit operand 2 - low word */
SFR_16BIT(OP2H); /* 32-bit operand 2 - high word */
SFR_8BIT(OP2H_L); /* 32-bit operand 2 - high word */
SFR_8BIT(OP2H_H); /* 32-bit operand 2 - high word */
SFR_16BIT(RES0); /* 32x32-bit result 0 - least significant word */
SFR_8BIT(RES0_L); /* 32x32-bit result 0 - least significant word */
SFR_8BIT(RES0_H); /* 32x32-bit result 0 - least significant word */
SFR_16BIT(RES1); /* 32x32-bit result 1 */
SFR_8BIT(RES1_L); /* 32x32-bit result 1 */
SFR_8BIT(RES1_H); /* 32x32-bit result 1 */
SFR_16BIT(RES2); /* 32x32-bit result 2 */
SFR_8BIT(RES2_L); /* 32x32-bit result 2 */
SFR_8BIT(RES2_H); /* 32x32-bit result 2 */
SFR_16BIT(RES3); /* 32x32-bit result 3 - most significant word */
SFR_8BIT(RES3_L); /* 32x32-bit result 3 - most significant word */
SFR_8BIT(RES3_H); /* 32x32-bit result 3 - most significant word */
SFR_16BIT(MPY32CTL0); /* MPY32 Control Register 0 */
SFR_8BIT(MPY32CTL0_L); /* MPY32 Control Register 0 */
SFR_8BIT(MPY32CTL0_H); /* MPY32 Control Register 0 */
#define MPY_B MPY_L /* Multiply Unsigned/Operand 1 (Byte Access) */
#define MPYS_B MPYS_L /* Multiply Signed/Operand 1 (Byte Access) */
#define MAC_B MAC_L /* Multiply Unsigned and Accumulate/Operand 1 (Byte Access) */
#define MACS_B MACS_L /* Multiply Signed and Accumulate/Operand 1 (Byte Access) */
#define OP2_B OP2_L /* Operand 2 (Byte Access) */
#define MPY32L_B MPY32L_L /* 32-bit operand 1 - multiply - low word (Byte Access) */
#define MPY32H_B MPY32H_L /* 32-bit operand 1 - multiply - high word (Byte Access) */
#define MPYS32L_B MPYS32L_L /* 32-bit operand 1 - signed multiply - low word (Byte Access) */
#define MPYS32H_B MPYS32H_L /* 32-bit operand 1 - signed multiply - high word (Byte Access) */
#define MAC32L_B MAC32L_L /* 32-bit operand 1 - multiply accumulate - low word (Byte Access) */
#define MAC32H_B MAC32H_L /* 32-bit operand 1 - multiply accumulate - high word (Byte Access) */
#define MACS32L_B MACS32L_L /* 32-bit operand 1 - signed multiply accumulate - low word (Byte Access) */
#define MACS32H_B MACS32H_L /* 32-bit operand 1 - signed multiply accumulate - high word (Byte Access) */
#define OP2L_B OP2L_L /* 32-bit operand 2 - low word (Byte Access) */
#define OP2H_B OP2H_L /* 32-bit operand 2 - high word (Byte Access) */
/* MPY32CTL0 Control Bits */
#define MPYC (0x0001) /* Carry of the multiplier */
//#define RESERVED (0x0002) /* Reserved */
#define MPYFRAC (0x0004) /* Fractional mode */
#define MPYSAT (0x0008) /* Saturation mode */
#define MPYM0 (0x0010) /* Multiplier mode Bit:0 */
#define MPYM1 (0x0020) /* Multiplier mode Bit:1 */
#define OP1_32 (0x0040) /* Bit-width of operand 1 0:16Bit / 1:32Bit */
#define OP2_32 (0x0080) /* Bit-width of operand 2 0:16Bit / 1:32Bit */
#define MPYDLYWRTEN (0x0100) /* Delayed write enable */
#define MPYDLY32 (0x0200) /* Delayed write mode */
/* MPY32CTL0 Control Bits */
#define MPYC_L (0x0001) /* Carry of the multiplier */
//#define RESERVED (0x0002) /* Reserved */
#define MPYFRAC_L (0x0004) /* Fractional mode */
#define MPYSAT_L (0x0008) /* Saturation mode */
#define MPYM0_L (0x0010) /* Multiplier mode Bit:0 */
#define MPYM1_L (0x0020) /* Multiplier mode Bit:1 */
#define OP1_32_L (0x0040) /* Bit-width of operand 1 0:16Bit / 1:32Bit */
#define OP2_32_L (0x0080) /* Bit-width of operand 2 0:16Bit / 1:32Bit */
/* MPY32CTL0 Control Bits */
//#define RESERVED (0x0002) /* Reserved */
#define MPYDLYWRTEN_H (0x0001) /* Delayed write enable */
#define MPYDLY32_H (0x0002) /* Delayed write mode */
#define MPYM_0 (0x0000) /* Multiplier mode: MPY */
#define MPYM_1 (0x0010) /* Multiplier mode: MPYS */
#define MPYM_2 (0x0020) /* Multiplier mode: MAC */
#define MPYM_3 (0x0030) /* Multiplier mode: MACS */
#define MPYM__MPY (0x0000) /* Multiplier mode: MPY */
#define MPYM__MPYS (0x0010) /* Multiplier mode: MPYS */
#define MPYM__MAC (0x0020) /* Multiplier mode: MAC */
#define MPYM__MACS (0x0030) /* Multiplier mode: MACS */
/************************************************************
* DIGITAL I/O Port1/2 Pull up / Pull down Resistors
************************************************************/
#define __MSP430_HAS_PORT1_R__ /* Definition to show that Module is available */
#define __MSP430_HAS_PORT2_R__ /* Definition to show that Module is available */
#define __MSP430_HAS_PORTA_R__ /* Definition to show that Module is available */
SFR_16BIT(PAIN); /* Port A Input */
SFR_8BIT(PAIN_L); /* Port A Input */
SFR_8BIT(PAIN_H); /* Port A Input */
SFR_16BIT(PAOUT); /* Port A Output */
SFR_8BIT(PAOUT_L); /* Port A Output */
SFR_8BIT(PAOUT_H); /* Port A Output */
SFR_16BIT(PADIR); /* Port A Direction */
SFR_8BIT(PADIR_L); /* Port A Direction */
SFR_8BIT(PADIR_H); /* Port A Direction */
SFR_16BIT(PAREN); /* Port A Resistor Enable */
SFR_8BIT(PAREN_L); /* Port A Resistor Enable */
SFR_8BIT(PAREN_H); /* Port A Resistor Enable */
SFR_16BIT(PADS); /* Port A Resistor Drive Strenght */
SFR_8BIT(PADS_L); /* Port A Resistor Drive Strenght */
SFR_8BIT(PADS_H); /* Port A Resistor Drive Strenght */
SFR_16BIT(PASEL); /* Port A Selection */
SFR_8BIT(PASEL_L); /* Port A Selection */
SFR_8BIT(PASEL_H); /* Port A Selection */
SFR_16BIT(PAIES); /* Port A Interrupt Edge Select */
SFR_8BIT(PAIES_L); /* Port A Interrupt Edge Select */
SFR_8BIT(PAIES_H); /* Port A Interrupt Edge Select */
SFR_16BIT(PAIE); /* Port A Interrupt Enable */
SFR_8BIT(PAIE_L); /* Port A Interrupt Enable */
SFR_8BIT(PAIE_H); /* Port A Interrupt Enable */
SFR_16BIT(PAIFG); /* Port A Interrupt Flag */
SFR_8BIT(PAIFG_L); /* Port A Interrupt Flag */
SFR_8BIT(PAIFG_H); /* Port A Interrupt Flag */
SFR_16BIT(P1IV); /* Port 1 Interrupt Vector Word */
SFR_16BIT(P2IV); /* Port 2 Interrupt Vector Word */
#define P1IN (PAIN_L) /* Port 1 Input */
#define P1OUT (PAOUT_L) /* Port 1 Output */
#define P1DIR (PADIR_L) /* Port 1 Direction */
#define P1REN (PAREN_L) /* Port 1 Resistor Enable */
#define P1DS (PADS_L) /* Port 1 Resistor Drive Strenght */
#define P1SEL (PASEL_L) /* Port 1 Selection */
#define P1IES (PAIES_L) /* Port 1 Interrupt Edge Select */
#define P1IE (PAIE_L) /* Port 1 Interrupt Enable */
#define P1IFG (PAIFG_L) /* Port 1 Interrupt Flag */
//Definitions for P1IV
#define P1IV_NONE (0x0000) /* No Interrupt pending */
#define P1IV_P1IFG0 (0x0002) /* P1IV P1IFG.0 */
#define P1IV_P1IFG1 (0x0004) /* P1IV P1IFG.1 */
#define P1IV_P1IFG2 (0x0006) /* P1IV P1IFG.2 */
#define P1IV_P1IFG3 (0x0008) /* P1IV P1IFG.3 */
#define P1IV_P1IFG4 (0x000A) /* P1IV P1IFG.4 */
#define P1IV_P1IFG5 (0x000C) /* P1IV P1IFG.5 */
#define P1IV_P1IFG6 (0x000E) /* P1IV P1IFG.6 */
#define P1IV_P1IFG7 (0x0010) /* P1IV P1IFG.7 */
#define P2IN (PAIN_H) /* Port 2 Input */
#define P2OUT (PAOUT_H) /* Port 2 Output */
#define P2DIR (PADIR_H) /* Port 2 Direction */
#define P2REN (PAREN_H) /* Port 2 Resistor Enable */
#define P2DS (PADS_H) /* Port 2 Resistor Drive Strenght */
#define P2SEL (PASEL_H) /* Port 2 Selection */
#define P2IES (PAIES_H) /* Port 2 Interrupt Edge Select */
#define P2IE (PAIE_H) /* Port 2 Interrupt Enable */
#define P2IFG (PAIFG_H) /* Port 2 Interrupt Flag */
//Definitions for P2IV
#define P2IV_NONE (0x0000) /* No Interrupt pending */
#define P2IV_P2IFG0 (0x0002) /* P2IV P2IFG.0 */
#define P2IV_P2IFG1 (0x0004) /* P2IV P2IFG.1 */
#define P2IV_P2IFG2 (0x0006) /* P2IV P2IFG.2 */
#define P2IV_P2IFG3 (0x0008) /* P2IV P2IFG.3 */
#define P2IV_P2IFG4 (0x000A) /* P2IV P2IFG.4 */
#define P2IV_P2IFG5 (0x000C) /* P2IV P2IFG.5 */
#define P2IV_P2IFG6 (0x000E) /* P2IV P2IFG.6 */
#define P2IV_P2IFG7 (0x0010) /* P2IV P2IFG.7 */
/************************************************************
* DIGITAL I/O Port3/4 Pull up / Pull down Resistors
************************************************************/
#define __MSP430_HAS_PORT3_R__ /* Definition to show that Module is available */
#define __MSP430_HAS_PORT4_R__ /* Definition to show that Module is available */
#define __MSP430_HAS_PORTB_R__ /* Definition to show that Module is available */
SFR_16BIT(PBIN); /* Port B Input */
SFR_8BIT(PBIN_L); /* Port B Input */
SFR_8BIT(PBIN_H); /* Port B Input */
SFR_16BIT(PBOUT); /* Port B Output */
SFR_8BIT(PBOUT_L); /* Port B Output */
SFR_8BIT(PBOUT_H); /* Port B Output */
SFR_16BIT(PBDIR); /* Port B Direction */
SFR_8BIT(PBDIR_L); /* Port B Direction */
SFR_8BIT(PBDIR_H); /* Port B Direction */
SFR_16BIT(PBREN); /* Port B Resistor Enable */
SFR_8BIT(PBREN_L); /* Port B Resistor Enable */
SFR_8BIT(PBREN_H); /* Port B Resistor Enable */
SFR_16BIT(PBDS); /* Port B Resistor Drive Strenght */
SFR_8BIT(PBDS_L); /* Port B Resistor Drive Strenght */
SFR_8BIT(PBDS_H); /* Port B Resistor Drive Strenght */
SFR_16BIT(PBSEL); /* Port B Selection */
SFR_8BIT(PBSEL_L); /* Port B Selection */
SFR_8BIT(PBSEL_H); /* Port B Selection */
#define P3IN (PBIN_L) /* Port 3 Input */
#define P3OUT (PBOUT_L) /* Port 3 Output */
#define P3DIR (PBDIR_L) /* Port 3 Direction */
#define P3REN (PBREN_L) /* Port 3 Resistor Enable */
#define P3DS (PBDS_L) /* Port 3 Resistor Drive Strenght */
#define P3SEL (PBSEL_L) /* Port 3 Selection */
#define P4IN (PBIN_H) /* Port 4 Input */
#define P4OUT (PBOUT_H) /* Port 4 Output */
#define P4DIR (PBDIR_H) /* Port 4 Direction */
#define P4REN (PBREN_H) /* Port 4 Resistor Enable */
#define P4DS (PBDS_H) /* Port 4 Resistor Drive Strenght */
#define P4SEL (PBSEL_H) /* Port 4 Selection */
/************************************************************
* DIGITAL I/O Port5/6 Pull up / Pull down Resistors
************************************************************/
#define __MSP430_HAS_PORT5_R__ /* Definition to show that Module is available */
#define __MSP430_HAS_PORT6_R__ /* Definition to show that Module is available */
#define __MSP430_HAS_PORTC_R__ /* Definition to show that Module is available */
SFR_16BIT(PCIN); /* Port C Input */
SFR_8BIT(PCIN_L); /* Port C Input */
SFR_8BIT(PCIN_H); /* Port C Input */
SFR_16BIT(PCOUT); /* Port C Output */
SFR_8BIT(PCOUT_L); /* Port C Output */
SFR_8BIT(PCOUT_H); /* Port C Output */
SFR_16BIT(PCDIR); /* Port C Direction */
SFR_8BIT(PCDIR_L); /* Port C Direction */
SFR_8BIT(PCDIR_H); /* Port C Direction */
SFR_16BIT(PCREN); /* Port C Resistor Enable */
SFR_8BIT(PCREN_L); /* Port C Resistor Enable */
SFR_8BIT(PCREN_H); /* Port C Resistor Enable */
SFR_16BIT(PCDS); /* Port C Resistor Drive Strenght */
SFR_8BIT(PCDS_L); /* Port C Resistor Drive Strenght */
SFR_8BIT(PCDS_H); /* Port C Resistor Drive Strenght */
SFR_16BIT(PCSEL); /* Port C Selection */
SFR_8BIT(PCSEL_L); /* Port C Selection */
SFR_8BIT(PCSEL_H); /* Port C Selection */
#define P5IN (PCIN_L) /* Port 5 Input */
#define P5OUT (PCOUT_L) /* Port 5 Output */
#define P5DIR (PCDIR_L) /* Port 5 Direction */
#define P5REN (PCREN_L) /* Port 5 Resistor Enable */
#define P5DS (PCDS_L) /* Port 5 Resistor Drive Strenght */
#define P5SEL (PCSEL_L) /* Port 5 Selection */
#define P6IN (PCIN_H) /* Port 6 Input */
#define P6OUT (PCOUT_H) /* Port 6 Output */
#define P6DIR (PCDIR_H) /* Port 6 Direction */
#define P6REN (PCREN_H) /* Port 6 Resistor Enable */
#define P6DS (PCDS_H) /* Port 6 Resistor Drive Strenght */
#define P6SEL (PCSEL_H) /* Port 6 Selection */
/************************************************************
* DIGITAL I/O Port7/8 Pull up / Pull down Resistors
************************************************************/
#define __MSP430_HAS_PORT7_R__ /* Definition to show that Module is available */
#define __MSP430_HAS_PORT8_R__ /* Definition to show that Module is available */
#define __MSP430_HAS_PORTD_R__ /* Definition to show that Module is available */
SFR_16BIT(PDIN); /* Port D Input */
SFR_8BIT(PDIN_L); /* Port D Input */
SFR_8BIT(PDIN_H); /* Port D Input */
SFR_16BIT(PDOUT); /* Port D Output */
SFR_8BIT(PDOUT_L); /* Port D Output */
SFR_8BIT(PDOUT_H); /* Port D Output */
SFR_16BIT(PDDIR); /* Port D Direction */
SFR_8BIT(PDDIR_L); /* Port D Direction */
SFR_8BIT(PDDIR_H); /* Port D Direction */
SFR_16BIT(PDREN); /* Port D Resistor Enable */
SFR_8BIT(PDREN_L); /* Port D Resistor Enable */
SFR_8BIT(PDREN_H); /* Port D Resistor Enable */
SFR_16BIT(PDDS); /* Port D Resistor Drive Strenght */
SFR_8BIT(PDDS_L); /* Port D Resistor Drive Strenght */
SFR_8BIT(PDDS_H); /* Port D Resistor Drive Strenght */
SFR_16BIT(PDSEL); /* Port D Selection */
SFR_8BIT(PDSEL_L); /* Port D Selection */
SFR_8BIT(PDSEL_H); /* Port D Selection */
#define P7IN (PDIN_L) /* Port 7 Input */
#define P7OUT (PDOUT_L) /* Port 7 Output */
#define P7DIR (PDDIR_L) /* Port 7 Direction */
#define P7REN (PDREN_L) /* Port 7 Resistor Enable */
#define P7DS (PDDS_L) /* Port 7 Resistor Drive Strenght */
#define P7SEL (PDSEL_L) /* Port 7 Selection */
#define P8IN (PDIN_H) /* Port 8 Input */
#define P8OUT (PDOUT_H) /* Port 8 Output */
#define P8DIR (PDDIR_H) /* Port 8 Direction */
#define P8REN (PDREN_H) /* Port 8 Resistor Enable */
#define P8DS (PDDS_H) /* Port 8 Resistor Drive Strenght */
#define P8SEL (PDSEL_H) /* Port 8 Selection */
/************************************************************
* DIGITAL I/O Port9/10 Pull up / Pull down Resistors
************************************************************/
#define __MSP430_HAS_PORT9_R__ /* Definition to show that Module is available */
#define __MSP430_HAS_PORT10_R__ /* Definition to show that Module is available */
#define __MSP430_HAS_PORTE_R__ /* Definition to show that Module is available */
SFR_16BIT(PEIN); /* Port E Input */
SFR_8BIT(PEIN_L); /* Port E Input */
SFR_8BIT(PEIN_H); /* Port E Input */
SFR_16BIT(PEOUT); /* Port E Output */
SFR_8BIT(PEOUT_L); /* Port E Output */
SFR_8BIT(PEOUT_H); /* Port E Output */
SFR_16BIT(PEDIR); /* Port E Direction */
SFR_8BIT(PEDIR_L); /* Port E Direction */
SFR_8BIT(PEDIR_H); /* Port E Direction */
SFR_16BIT(PEREN); /* Port E Resistor Enable */
SFR_8BIT(PEREN_L); /* Port E Resistor Enable */
SFR_8BIT(PEREN_H); /* Port E Resistor Enable */
SFR_16BIT(PEDS); /* Port E Resistor Drive Strenght */
SFR_8BIT(PEDS_L); /* Port E Resistor Drive Strenght */
SFR_8BIT(PEDS_H); /* Port E Resistor Drive Strenght */
SFR_16BIT(PESEL); /* Port E Selection */
SFR_8BIT(PESEL_L); /* Port E Selection */
SFR_8BIT(PESEL_H); /* Port E Selection */
#define P9IN (PEIN_L) /* Port 9 Input */
#define P9OUT (PEOUT_L) /* Port 9 Output */
#define P9DIR (PEDIR_L) /* Port 9 Direction */
#define P9REN (PEREN_L) /* Port 9 Resistor Enable */
#define P9DS (PEDS_L) /* Port 9 Resistor Drive Strenght */
#define P9SEL (PESEL_L) /* Port 9 Selection */
#define P10IN (PEIN_H) /* Port 10 Input */
#define P10OUT (PEOUT_H) /* Port 10 Output */
#define P10DIR (PEDIR_H) /* Port 10 Direction */
#define P10REN (PEREN_H) /* Port 10 Resistor Enable */
#define P10DS (PEDS_H) /* Port 10 Resistor Drive Strenght */
#define P10SEL (PESEL_H) /* Port 10 Selection */
/************************************************************
* DIGITAL I/O Port11 Pull up / Pull down Resistors
************************************************************/
#define __MSP430_HAS_PORT11_R__ /* Definition to show that Module is available */
#define __MSP430_HAS_PORTF_R__ /* Definition to show that Module is available */
SFR_16BIT(PFIN); /* Port F Input */
SFR_8BIT(PFIN_L); /* Port F Input */
SFR_8BIT(PFIN_H); /* Port F Input */
SFR_16BIT(PFOUT); /* Port F Output */
SFR_8BIT(PFOUT_L); /* Port F Output */
SFR_8BIT(PFOUT_H); /* Port F Output */
SFR_16BIT(PFDIR); /* Port F Direction */
SFR_8BIT(PFDIR_L); /* Port F Direction */
SFR_8BIT(PFDIR_H); /* Port F Direction */
SFR_16BIT(PFREN); /* Port F Resistor Enable */
SFR_8BIT(PFREN_L); /* Port F Resistor Enable */
SFR_8BIT(PFREN_H); /* Port F Resistor Enable */
SFR_16BIT(PFDS); /* Port F Resistor Drive Strenght */
SFR_8BIT(PFDS_L); /* Port F Resistor Drive Strenght */
SFR_8BIT(PFDS_H); /* Port F Resistor Drive Strenght */
SFR_16BIT(PFSEL); /* Port F Selection */
SFR_8BIT(PFSEL_L); /* Port F Selection */
SFR_8BIT(PFSEL_H); /* Port F Selection */
#define P11IN (PFIN_L) /* Port 11 Input */
#define P11OUT (PFOUT_L) /* Port 11 Output */
#define P11DIR (PFDIR_L) /* Port 11 Direction */
#define P11REN (PFREN_L) /* Port 11 Resistor Enable */
#define P11DS (PFDS_L) /* Port 11 Resistor Drive Strenght */
#define P11SEL (PFSEL_L) /* Port 11 Selection */
/************************************************************
* DIGITAL I/O PortJ Pull up / Pull down Resistors
************************************************************/
#define __MSP430_HAS_PORTJ_R__ /* Definition to show that Module is available */
SFR_16BIT(PJIN); /* Port J Input */
SFR_8BIT(PJIN_L); /* Port J Input */
SFR_8BIT(PJIN_H); /* Port J Input */
SFR_16BIT(PJOUT); /* Port J Output */
SFR_8BIT(PJOUT_L); /* Port J Output */
SFR_8BIT(PJOUT_H); /* Port J Output */
SFR_16BIT(PJDIR); /* Port J Direction */
SFR_8BIT(PJDIR_L); /* Port J Direction */
SFR_8BIT(PJDIR_H); /* Port J Direction */
SFR_16BIT(PJREN); /* Port J Resistor Enable */
SFR_8BIT(PJREN_L); /* Port J Resistor Enable */
SFR_8BIT(PJREN_H); /* Port J Resistor Enable */
SFR_16BIT(PJDS); /* Port J Resistor Drive Strenght */
SFR_8BIT(PJDS_L); /* Port J Resistor Drive Strenght */
SFR_8BIT(PJDS_H); /* Port J Resistor Drive Strenght */
/************************************************************
* PMM - Power Management System
************************************************************/
#define __MSP430_HAS_PMM__ /* Definition to show that Module is available */
SFR_16BIT(PMMCTL0); /* PMM Control 0 */
SFR_8BIT(PMMCTL0_L); /* PMM Control 0 */
SFR_8BIT(PMMCTL0_H); /* PMM Control 0 */
SFR_16BIT(PMMCTL1); /* PMM Control 1 */
SFR_8BIT(PMMCTL1_L); /* PMM Control 1 */
SFR_8BIT(PMMCTL1_H); /* PMM Control 1 */
SFR_16BIT(SVSMHCTL); /* SVS and SVM high side control register */
SFR_8BIT(SVSMHCTL_L); /* SVS and SVM high side control register */
SFR_8BIT(SVSMHCTL_H); /* SVS and SVM high side control register */
SFR_16BIT(SVSMLCTL); /* SVS and SVM low side control register */
SFR_8BIT(SVSMLCTL_L); /* SVS and SVM low side control register */
SFR_8BIT(SVSMLCTL_H); /* SVS and SVM low side control register */
SFR_16BIT(SVSMIO); /* SVSIN and SVSOUT control register */
SFR_8BIT(SVSMIO_L); /* SVSIN and SVSOUT control register */
SFR_8BIT(SVSMIO_H); /* SVSIN and SVSOUT control register */
SFR_16BIT(PMMIFG); /* PMM Interrupt Flag */
SFR_8BIT(PMMIFG_L); /* PMM Interrupt Flag */
SFR_8BIT(PMMIFG_H); /* PMM Interrupt Flag */
SFR_16BIT(PMMRIE); /* PMM and RESET Interrupt Enable */
SFR_8BIT(PMMRIE_L); /* PMM and RESET Interrupt Enable */
SFR_8BIT(PMMRIE_H); /* PMM and RESET Interrupt Enable */
#define PMMPW (0xA500) /* PMM Register Write Password */
/* PMMCTL0 Control Bits */
#define PMMCOREV0 (0x0001) /* PMM Core Voltage Bit: 0 */
#define PMMCOREV1 (0x0002) /* PMM Core Voltage Bit: 1 */
#define PMMSWBOR (0x0004) /* PMM Software BOR */
#define PMMSWPOR (0x0008) /* PMM Software POR */
#define PMMREGOFF (0x0010) /* PMM Turn Regulator off */
#define PMMHPMRE (0x0080) /* PMM Global High Power Module Request Enable */
/* PMMCTL0 Control Bits */
#define PMMCOREV0_L (0x0001) /* PMM Core Voltage Bit: 0 */
#define PMMCOREV1_L (0x0002) /* PMM Core Voltage Bit: 1 */
#define PMMSWBOR_L (0x0004) /* PMM Software BOR */
#define PMMSWPOR_L (0x0008) /* PMM Software POR */
#define PMMREGOFF_L (0x0010) /* PMM Turn Regulator off */
#define PMMHPMRE_L (0x0080) /* PMM Global High Power Module Request Enable */
/* PMMCTL0 Control Bits */
#define PMMCOREV_0 (0x0000) /* PMM Core Voltage 0 (1.35V) */
#define PMMCOREV_1 (0x0001) /* PMM Core Voltage 1 (1.55V) */
#define PMMCOREV_2 (0x0002) /* PMM Core Voltage 2 (1.75V) */
#define PMMCOREV_3 (0x0003) /* PMM Core Voltage 3 (1.85V) */
/* PMMCTL1 Control Bits */
#define PMMREFMD (0x0001) /* PMM Reference Mode */
#define PMMCMD0 (0x0010) /* PMM Voltage Regulator Current Mode Bit: 0 */
#define PMMCMD1 (0x0020) /* PMM Voltage Regulator Current Mode Bit: 1 */
/* PMMCTL1 Control Bits */
#define PMMREFMD_L (0x0001) /* PMM Reference Mode */
#define PMMCMD0_L (0x0010) /* PMM Voltage Regulator Current Mode Bit: 0 */
#define PMMCMD1_L (0x0020) /* PMM Voltage Regulator Current Mode Bit: 1 */
/* PMMCTL1 Control Bits */
/* SVSMHCTL Control Bits */
#define SVSMHRRL0 (0x0001) /* SVS and SVM high side Reset Release Voltage Level Bit: 0 */
#define SVSMHRRL1 (0x0002) /* SVS and SVM high side Reset Release Voltage Level Bit: 1 */
#define SVSMHRRL2 (0x0004) /* SVS and SVM high side Reset Release Voltage Level Bit: 2 */
#define SVSMHDLYST (0x0008) /* SVS and SVM high side delay status */
#define SVSHMD (0x0010) /* SVS high side mode */
#define SVSMHEVM (0x0040) /* SVS and SVM high side event mask */
#define SVSMHACE (0x0080) /* SVS and SVM high side auto control enable */
#define SVSHRVL0 (0x0100) /* SVS high side reset voltage level Bit: 0 */
#define SVSHRVL1 (0x0200) /* SVS high side reset voltage level Bit: 1 */
#define SVSHE (0x0400) /* SVS high side enable */
#define SVSHFP (0x0800) /* SVS high side full performace mode */
#define SVMHOVPE (0x1000) /* SVM high side over-voltage enable */
#define SVMHE (0x4000) /* SVM high side enable */
#define SVMHFP (0x8000) /* SVM high side full performace mode */
/* SVSMHCTL Control Bits */
#define SVSMHRRL0_L (0x0001) /* SVS and SVM high side Reset Release Voltage Level Bit: 0 */
#define SVSMHRRL1_L (0x0002) /* SVS and SVM high side Reset Release Voltage Level Bit: 1 */
#define SVSMHRRL2_L (0x0004) /* SVS and SVM high side Reset Release Voltage Level Bit: 2 */
#define SVSMHDLYST_L (0x0008) /* SVS and SVM high side delay status */
#define SVSHMD_L (0x0010) /* SVS high side mode */
#define SVSMHEVM_L (0x0040) /* SVS and SVM high side event mask */
#define SVSMHACE_L (0x0080) /* SVS and SVM high side auto control enable */
/* SVSMHCTL Control Bits */
#define SVSHRVL0_H (0x0001) /* SVS high side reset voltage level Bit: 0 */
#define SVSHRVL1_H (0x0002) /* SVS high side reset voltage level Bit: 1 */
#define SVSHE_H (0x0004) /* SVS high side enable */
#define SVSHFP_H (0x0008) /* SVS high side full performace mode */
#define SVMHOVPE_H (0x0010) /* SVM high side over-voltage enable */
#define SVMHE_H (0x0040) /* SVM high side enable */
#define SVMHFP_H (0x0080) /* SVM high side full performace mode */
#define SVSMHRRL_0 (0x0000) /* SVS and SVM high side Reset Release Voltage Level 0 */
#define SVSMHRRL_1 (0x0001) /* SVS and SVM high side Reset Release Voltage Level 1 */
#define SVSMHRRL_2 (0x0002) /* SVS and SVM high side Reset Release Voltage Level 2 */
#define SVSMHRRL_3 (0x0003) /* SVS and SVM high side Reset Release Voltage Level 3 */
#define SVSMHRRL_4 (0x0004) /* SVS and SVM high side Reset Release Voltage Level 4 */
#define SVSMHRRL_5 (0x0005) /* SVS and SVM high side Reset Release Voltage Level 5 */
#define SVSMHRRL_6 (0x0006) /* SVS and SVM high side Reset Release Voltage Level 6 */
#define SVSMHRRL_7 (0x0007) /* SVS and SVM high side Reset Release Voltage Level 7 */
#define SVSHRVL_0 (0x0000) /* SVS high side Reset Release Voltage Level 0 */
#define SVSHRVL_1 (0x0100) /* SVS high side Reset Release Voltage Level 1 */
#define SVSHRVL_2 (0x0200) /* SVS high side Reset Release Voltage Level 2 */
#define SVSHRVL_3 (0x0300) /* SVS high side Reset Release Voltage Level 3 */
/* SVSMLCTL Control Bits */
#define SVSMLRRL0 (0x0001) /* SVS and SVM low side Reset Release Voltage Level Bit: 0 */
#define SVSMLRRL1 (0x0002) /* SVS and SVM low side Reset Release Voltage Level Bit: 1 */
#define SVSMLRRL2 (0x0004) /* SVS and SVM low side Reset Release Voltage Level Bit: 2 */
#define SVSMLDLYST (0x0008) /* SVS and SVM low side delay status */
#define SVSLMD (0x0010) /* SVS low side mode */
#define SVSMLEVM (0x0040) /* SVS and SVM low side event mask */
#define SVSMLACE (0x0080) /* SVS and SVM low side auto control enable */
#define SVSLRVL0 (0x0100) /* SVS low side reset voltage level Bit: 0 */
#define SVSLRVL1 (0x0200) /* SVS low side reset voltage level Bit: 1 */
#define SVSLE (0x0400) /* SVS low side enable */
#define SVSLFP (0x0800) /* SVS low side full performace mode */
#define SVMLOVPE (0x1000) /* SVM low side over-voltage enable */
#define SVMLE (0x4000) /* SVM low side enable */
#define SVMLFP (0x8000) /* SVM low side full performace mode */
/* SVSMLCTL Control Bits */
#define SVSMLRRL0_L (0x0001) /* SVS and SVM low side Reset Release Voltage Level Bit: 0 */
#define SVSMLRRL1_L (0x0002) /* SVS and SVM low side Reset Release Voltage Level Bit: 1 */
#define SVSMLRRL2_L (0x0004) /* SVS and SVM low side Reset Release Voltage Level Bit: 2 */
#define SVSMLDLYST_L (0x0008) /* SVS and SVM low side delay status */
#define SVSLMD_L (0x0010) /* SVS low side mode */
#define SVSMLEVM_L (0x0040) /* SVS and SVM low side event mask */
#define SVSMLACE_L (0x0080) /* SVS and SVM low side auto control enable */
/* SVSMLCTL Control Bits */
#define SVSLRVL0_H (0x0001) /* SVS low side reset voltage level Bit: 0 */
#define SVSLRVL1_H (0x0002) /* SVS low side reset voltage level Bit: 1 */
#define SVSLE_H (0x0004) /* SVS low side enable */
#define SVSLFP_H (0x0008) /* SVS low side full performace mode */
#define SVMLOVPE_H (0x0010) /* SVM low side over-voltage enable */
#define SVMLE_H (0x0040) /* SVM low side enable */
#define SVMLFP_H (0x0080) /* SVM low side full performace mode */
#define SVSMLRRL_0 (0x0000) /* SVS and SVM low side Reset Release Voltage Level 0 */
#define SVSMLRRL_1 (0x0001) /* SVS and SVM low side Reset Release Voltage Level 1 */
#define SVSMLRRL_2 (0x0002) /* SVS and SVM low side Reset Release Voltage Level 2 */
#define SVSMLRRL_3 (0x0003) /* SVS and SVM low side Reset Release Voltage Level 3 */
#define SVSMLRRL_4 (0x0004) /* SVS and SVM low side Reset Release Voltage Level 4 */
#define SVSMLRRL_5 (0x0005) /* SVS and SVM low side Reset Release Voltage Level 5 */
#define SVSMLRRL_6 (0x0006) /* SVS and SVM low side Reset Release Voltage Level 6 */
#define SVSMLRRL_7 (0x0007) /* SVS and SVM low side Reset Release Voltage Level 7 */
#define SVSLRVL_0 (0x0000) /* SVS low side Reset Release Voltage Level 0 */
#define SVSLRVL_1 (0x0100) /* SVS low side Reset Release Voltage Level 1 */
#define SVSLRVL_2 (0x0200) /* SVS low side Reset Release Voltage Level 2 */
#define SVSLRVL_3 (0x0300) /* SVS low side Reset Release Voltage Level 3 */
/* SVSMIO Control Bits */
#define SVMLOE (0x0008) /* SVM low side output enable */
#define SVMLVLROE (0x0010) /* SVM low side voltage level reached output enable */
#define SVMOUTPOL (0x0020) /* SVMOUT pin polarity */
#define SVMHOE (0x0800) /* SVM high side output enable */
#define SVMHVLROE (0x1000) /* SVM high side voltage level reached output enable */
/* SVSMIO Control Bits */
#define SVMLOE_L (0x0008) /* SVM low side output enable */
#define SVMLVLROE_L (0x0010) /* SVM low side voltage level reached output enable */
#define SVMOUTPOL_L (0x0020) /* SVMOUT pin polarity */
/* SVSMIO Control Bits */
#define SVMHOE_H (0x0008) /* SVM high side output enable */
#define SVMHVLROE_H (0x0010) /* SVM high side voltage level reached output enable */
/* PMMIFG Control Bits */
#define SVSMLDLYIFG (0x0001) /* SVS and SVM low side Delay expired interrupt flag */
#define SVMLIFG (0x0002) /* SVM low side interrupt flag */
#define SVMLVLRIFG (0x0004) /* SVM low side Voltage Level Reached interrupt flag */
#define SVSMHDLYIFG (0x0010) /* SVS and SVM high side Delay expired interrupt flag */
#define SVMHIFG (0x0020) /* SVM high side interrupt flag */
#define SVMHVLRIFG (0x0040) /* SVM high side Voltage Level Reached interrupt flag */
#define PMMBORIFG (0x0100) /* PMM Software BOR interrupt flag */
#define PMMRSTIFG (0x0200) /* PMM RESET pin interrupt flag */
#define PMMPORIFG (0x0400) /* PMM Software POR interrupt flag */
#define SVSHIFG (0x1000) /* SVS low side interrupt flag */
#define SVSLIFG (0x2000) /* SVS high side interrupt flag */
#define PMMRSTLPM5IFG (0x8000) /* LPM5 indication Flag */
/* PMMIFG Control Bits */
#define SVSMLDLYIFG_L (0x0001) /* SVS and SVM low side Delay expired interrupt flag */
#define SVMLIFG_L (0x0002) /* SVM low side interrupt flag */
#define SVMLVLRIFG_L (0x0004) /* SVM low side Voltage Level Reached interrupt flag */
#define SVSMHDLYIFG_L (0x0010) /* SVS and SVM high side Delay expired interrupt flag */
#define SVMHIFG_L (0x0020) /* SVM high side interrupt flag */
#define SVMHVLRIFG_L (0x0040) /* SVM high side Voltage Level Reached interrupt flag */
/* PMMIFG Control Bits */
#define PMMBORIFG_H (0x0001) /* PMM Software BOR interrupt flag */
#define PMMRSTIFG_H (0x0002) /* PMM RESET pin interrupt flag */
#define PMMPORIFG_H (0x0004) /* PMM Software POR interrupt flag */
#define SVSHIFG_H (0x0010) /* SVS low side interrupt flag */
#define SVSLIFG_H (0x0020) /* SVS high side interrupt flag */
#define PMMRSTLPM5IFG_H (0x0080) /* LPM5 indication Flag */
/* PMMIE and RESET Control Bits */
#define SVSMLDLYIE (0x0001) /* SVS and SVM low side Delay expired interrupt enable */
#define SVMLIE (0x0002) /* SVM low side interrupt enable */
#define SVMLVLRIE (0x0004) /* SVM low side Voltage Level Reached interrupt enable */
#define SVSMHDLYIE (0x0010) /* SVS and SVM high side Delay expired interrupt enable */
#define SVMHIE (0x0020) /* SVM high side interrupt enable */
#define SVMHVLRIE (0x0040) /* SVM high side Voltage Level Reached interrupt enable */
#define SVSLPE (0x0100) /* SVS low side POR enable */
#define SVMLVLRPE (0x0200) /* SVM low side Voltage Level reached POR enable */
#define SVSHPE (0x1000) /* SVS high side POR enable */
#define SVMHVLRPE (0x2000) /* SVM high side Voltage Level reached POR enable */
/* PMMIE and RESET Control Bits */
#define SVSMLDLYIE_L (0x0001) /* SVS and SVM low side Delay expired interrupt enable */
#define SVMLIE_L (0x0002) /* SVM low side interrupt enable */
#define SVMLVLRIE_L (0x0004) /* SVM low side Voltage Level Reached interrupt enable */
#define SVSMHDLYIE_L (0x0010) /* SVS and SVM high side Delay expired interrupt enable */
#define SVMHIE_L (0x0020) /* SVM high side interrupt enable */
#define SVMHVLRIE_L (0x0040) /* SVM high side Voltage Level Reached interrupt enable */
/* PMMIE and RESET Control Bits */
#define SVSLPE_H (0x0001) /* SVS low side POR enable */
#define SVMLVLRPE_H (0x0002) /* SVM low side Voltage Level reached POR enable */
#define SVSHPE_H (0x0010) /* SVS high side POR enable */
#define SVMHVLRPE_H (0x0020) /* SVM high side Voltage Level reached POR enable */
/* Power Mode 5 Control Bits */
#define LOCKIO_L (0x0001) /* Lock I/O pin configuration upon entry/exit to/from LPM5 */
/* Power Mode 5 Control Bits */
/*************************************************************
* RAM Control Module
*************************************************************/
#define __MSP430_HAS_RC__ /* Definition to show that Module is available */
SFR_16BIT(RCCTL0); /* Ram Controller Control Register */
SFR_8BIT(RCCTL0_L); /* Ram Controller Control Register */
SFR_8BIT(RCCTL0_H); /* Ram Controller Control Register */
/* RCCTL0 Control Bits */
#define RCRS0OFF (0x0001) /* RAM Controller RAM Sector 0 Off */
#define RCRS1OFF (0x0002) /* RAM Controller RAM Sector 1 Off */
#define RCRS2OFF (0x0004) /* RAM Controller RAM Sector 2 Off */
#define RCRS3OFF (0x0008) /* RAM Controller RAM Sector 3 Off */
//#define RESERVED (0x0010) /* Reserved */
//#define RESERVED (0x0020) /* Reserved */
//#define RESERVED (0x0040) /* Reserved */
//#define RESERVED (0x0080) /* Reserved */
/* RCCTL0 Control Bits */
#define RCRS0OFF_L (0x0001) /* RAM Controller RAM Sector 0 Off */
#define RCRS1OFF_L (0x0002) /* RAM Controller RAM Sector 1 Off */
#define RCRS2OFF_L (0x0004) /* RAM Controller RAM Sector 2 Off */
#define RCRS3OFF_L (0x0008) /* RAM Controller RAM Sector 3 Off */
//#define RESERVED (0x0010) /* Reserved */
//#define RESERVED (0x0020) /* Reserved */
//#define RESERVED (0x0040) /* Reserved */
//#define RESERVED (0x0080) /* Reserved */
/* RCCTL0 Control Bits */
//#define RESERVED (0x0010) /* Reserved */
//#define RESERVED (0x0020) /* Reserved */
//#define RESERVED (0x0040) /* Reserved */
//#define RESERVED (0x0080) /* Reserved */
#define RCKEY (0x5A00)
/************************************************************
* Real Time Clock
************************************************************/
#define __MSP430_HAS_RTC__ /* Definition to show that Module is available */
SFR_16BIT(RTCCTL01); /* Real Timer Control 0/1 */
SFR_8BIT(RTCCTL01_L); /* Real Timer Control 0/1 */
SFR_8BIT(RTCCTL01_H); /* Real Timer Control 0/1 */
SFR_16BIT(RTCCTL23); /* Real Timer Control 2/3 */
SFR_8BIT(RTCCTL23_L); /* Real Timer Control 2/3 */
SFR_8BIT(RTCCTL23_H); /* Real Timer Control 2/3 */
SFR_16BIT(RTCPS0CTL); /* Real Timer Prescale Timer 0 Control */
SFR_8BIT(RTCPS0CTL_L); /* Real Timer Prescale Timer 0 Control */
SFR_8BIT(RTCPS0CTL_H); /* Real Timer Prescale Timer 0 Control */
SFR_16BIT(RTCPS1CTL); /* Real Timer Prescale Timer 1 Control */
SFR_8BIT(RTCPS1CTL_L); /* Real Timer Prescale Timer 1 Control */
SFR_8BIT(RTCPS1CTL_H); /* Real Timer Prescale Timer 1 Control */
SFR_16BIT(RTCPS); /* Real Timer Prescale Timer Control */
SFR_8BIT(RTCPS_L); /* Real Timer Prescale Timer Control */
SFR_8BIT(RTCPS_H); /* Real Timer Prescale Timer Control */
SFR_16BIT(RTCIV); /* Real Time Clock Interrupt Vector */
SFR_16BIT(RTCTIM0); /* Real Time Clock Time 0 */
SFR_8BIT(RTCTIM0_L); /* Real Time Clock Time 0 */
SFR_8BIT(RTCTIM0_H); /* Real Time Clock Time 0 */
SFR_16BIT(RTCTIM1); /* Real Time Clock Time 1 */
SFR_8BIT(RTCTIM1_L); /* Real Time Clock Time 1 */
SFR_8BIT(RTCTIM1_H); /* Real Time Clock Time 1 */
SFR_16BIT(RTCDATE); /* Real Time Clock Date */
SFR_8BIT(RTCDATE_L); /* Real Time Clock Date */
SFR_8BIT(RTCDATE_H); /* Real Time Clock Date */
SFR_16BIT(RTCYEAR); /* Real Time Clock Year */
SFR_8BIT(RTCYEAR_L); /* Real Time Clock Year */
SFR_8BIT(RTCYEAR_H); /* Real Time Clock Year */
SFR_16BIT(RTCAMINHR); /* Real Time Clock Alarm Min/Hour */
SFR_8BIT(RTCAMINHR_L); /* Real Time Clock Alarm Min/Hour */
SFR_8BIT(RTCAMINHR_H); /* Real Time Clock Alarm Min/Hour */
SFR_16BIT(RTCADOWDAY); /* Real Time Clock Alarm day of week/day */
SFR_8BIT(RTCADOWDAY_L); /* Real Time Clock Alarm day of week/day */
SFR_8BIT(RTCADOWDAY_H); /* Real Time Clock Alarm day of week/day */
#define RTCCTL0 RTCCTL01_L /* Real Time Clock Control 0 */
#define RTCCTL1 RTCCTL01_H /* Real Time Clock Control 1 */
#define RTCCTL2 RTCCTL23_L /* Real Time Clock Control 2 */
#define RTCCTL3 RTCCTL23_H /* Real Time Clock Control 3 */
#define RTCNT12 RTCTIM0
#define RTCNT34 RTCTIM1
#define RTCNT1 RTCTIM0_L
#define RTCNT2 RTCTIM0_H
#define RTCNT3 RTCTIM1_L
#define RTCNT4 RTCTIM1_H
#define RTCSEC RTCTIM0_L
#define RTCMIN RTCTIM0_H
#define RTCHOUR RTCTIM1_L
#define RTCDOW RTCTIM1_H
#define RTCDAY RTCDATE_L
#define RTCMON RTCDATE_H
#define RTCYEARL RTCYEAR_L
#define RTCYEARH RTCYEAR_H
/* RTCCTL01 Control Bits */
#define RTCBCD (0x8000) /* RTC BCD 0:Binary / 1:BCD */
#define RTCHOLD (0x4000) /* RTC Hold */
#define RTCMODE (0x2000) /* RTC Mode 0:Counter / 1: Calendar */
#define RTCRDY (0x1000) /* RTC Ready */
#define RTCSSEL1 (0x0800) /* RTC Source Select 1 */
#define RTCSSEL0 (0x0400) /* RTC Source Select 0 */
#define RTCTEV1 (0x0200) /* RTC Time Event 1 */
#define RTCTEV0 (0x0100) /* RTC Time Event 0 */
//#define Reserved (0x0080)
#define RTCTEVIE (0x0040) /* RTC Time Event Interrupt Enable Flag */
#define RTCAIE (0x0020) /* RTC Alarm Interrupt Enable Flag */
#define RTCRDYIE (0x0010) /* RTC Ready Interrupt Enable Flag */
//#define Reserved (0x0008)
#define RTCTEVIFG (0x0004) /* RTC Time Event Interrupt Flag */
#define RTCAIFG (0x0002) /* RTC Alarm Interrupt Flag */
#define RTCRDYIFG (0x0001) /* RTC Ready Interrupt Flag */
/* RTCCTL01 Control Bits */
//#define Reserved (0x0080)
#define RTCTEVIE_L (0x0040) /* RTC Time Event Interrupt Enable Flag */
#define RTCAIE_L (0x0020) /* RTC Alarm Interrupt Enable Flag */
#define RTCRDYIE_L (0x0010) /* RTC Ready Interrupt Enable Flag */
//#define Reserved (0x0008)
#define RTCTEVIFG_L (0x0004) /* RTC Time Event Interrupt Flag */
#define RTCAIFG_L (0x0002) /* RTC Alarm Interrupt Flag */
#define RTCRDYIFG_L (0x0001) /* RTC Ready Interrupt Flag */
/* RTCCTL01 Control Bits */
#define RTCBCD_H (0x0080) /* RTC BCD 0:Binary / 1:BCD */
#define RTCHOLD_H (0x0040) /* RTC Hold */
#define RTCMODE_H (0x0020) /* RTC Mode 0:Counter / 1: Calendar */
#define RTCRDY_H (0x0010) /* RTC Ready */
#define RTCSSEL1_H (0x0008) /* RTC Source Select 1 */
#define RTCSSEL0_H (0x0004) /* RTC Source Select 0 */
#define RTCTEV1_H (0x0002) /* RTC Time Event 1 */
#define RTCTEV0_H (0x0001) /* RTC Time Event 0 */
//#define Reserved (0x0080)
//#define Reserved (0x0008)
#define RTCSSEL_0 (0x0000) /* RTC Source Select ACLK */
#define RTCSSEL_1 (0x0400) /* RTC Source Select SMCLK */
#define RTCSSEL_2 (0x0800) /* RTC Source Select RT1PS */
#define RTCSSEL_3 (0x0C00) /* RTC Source Select RT1PS */
#define RTCSSEL__ACLK (0x0000) /* RTC Source Select ACLK */
#define RTCSSEL__SMCLK (0x0400) /* RTC Source Select SMCLK */
#define RTCSSEL__RT1PS (0x0800) /* RTC Source Select RT1PS */
#define RTCTEV_0 (0x0000) /* RTC Time Event: 0 (Min. changed) */
#define RTCTEV_1 (0x0100) /* RTC Time Event: 1 (Hour changed) */
#define RTCTEV_2 (0x0200) /* RTC Time Event: 2 (12:00 changed) */
#define RTCTEV_3 (0x0300) /* RTC Time Event: 3 (00:00 changed) */
#define RTCTEV__MIN (0x0000) /* RTC Time Event: 0 (Min. changed) */
#define RTCTEV__HOUR (0x0100) /* RTC Time Event: 1 (Hour changed) */
#define RTCTEV__1200 (0x0200) /* RTC Time Event: 2 (12:00 changed) */
#define RTCTEV__0000 (0x0300) /* RTC Time Event: 3 (00:00 changed) */
/* RTCCTL23 Control Bits */
#define RTCCALF1 (0x0200) /* RTC Calibration Frequency Bit 1 */
#define RTCCALF0 (0x0100) /* RTC Calibration Frequency Bit 0 */
#define RTCCALS (0x0080) /* RTC Calibration Sign */
//#define Reserved (0x0040)
#define RTCCAL5 (0x0020) /* RTC Calibration Bit 5 */
#define RTCCAL4 (0x0010) /* RTC Calibration Bit 4 */
#define RTCCAL3 (0x0008) /* RTC Calibration Bit 3 */
#define RTCCAL2 (0x0004) /* RTC Calibration Bit 2 */
#define RTCCAL1 (0x0002) /* RTC Calibration Bit 1 */
#define RTCCAL0 (0x0001) /* RTC Calibration Bit 0 */
/* RTCCTL23 Control Bits */
#define RTCCALS_L (0x0080) /* RTC Calibration Sign */
//#define Reserved (0x0040)
#define RTCCAL5_L (0x0020) /* RTC Calibration Bit 5 */
#define RTCCAL4_L (0x0010) /* RTC Calibration Bit 4 */
#define RTCCAL3_L (0x0008) /* RTC Calibration Bit 3 */
#define RTCCAL2_L (0x0004) /* RTC Calibration Bit 2 */
#define RTCCAL1_L (0x0002) /* RTC Calibration Bit 1 */
#define RTCCAL0_L (0x0001) /* RTC Calibration Bit 0 */
/* RTCCTL23 Control Bits */
#define RTCCALF1_H (0x0002) /* RTC Calibration Frequency Bit 1 */
#define RTCCALF0_H (0x0001) /* RTC Calibration Frequency Bit 0 */
//#define Reserved (0x0040)
#define RTCCALF_0 (0x0000) /* RTC Calibration Frequency: No Output */
#define RTCCALF_1 (0x0100) /* RTC Calibration Frequency: 512 Hz */
#define RTCCALF_2 (0x0200) /* RTC Calibration Frequency: 256 Hz */
#define RTCCALF_3 (0x0300) /* RTC Calibration Frequency: 1 Hz */
/* RTCPS0CTL Control Bits */
//#define Reserved (0x8000)
#define RT0SSEL (0x4000) /* RTC Prescale Timer 0 Source Select 0:ACLK / 1:SMCLK */
#define RT0PSDIV2 (0x2000) /* RTC Prescale Timer 0 Clock Divide Bit: 2 */
#define RT0PSDIV1 (0x1000) /* RTC Prescale Timer 0 Clock Divide Bit: 1 */
#define RT0PSDIV0 (0x0800) /* RTC Prescale Timer 0 Clock Divide Bit: 0 */
//#define Reserved (0x0400)
//#define Reserved (0x0200)
#define RT0PSHOLD (0x0100) /* RTC Prescale Timer 0 Hold */
//#define Reserved (0x0080)
//#define Reserved (0x0040)
//#define Reserved (0x0020)
#define RT0IP2 (0x0010) /* RTC Prescale Timer 0 Interrupt Interval Bit: 2 */
#define RT0IP1 (0x0008) /* RTC Prescale Timer 0 Interrupt Interval Bit: 1 */
#define RT0IP0 (0x0004) /* RTC Prescale Timer 0 Interrupt Interval Bit: 0 */
#define RT0PSIE (0x0002) /* RTC Prescale Timer 0 Interrupt Enalbe Flag */
#define RT0PSIFG (0x0001) /* RTC Prescale Timer 0 Interrupt Flag */
/* RTCPS0CTL Control Bits */
//#define Reserved (0x8000)
//#define Reserved (0x0400)
//#define Reserved (0x0200)
//#define Reserved (0x0080)
//#define Reserved (0x0040)
//#define Reserved (0x0020)
#define RT0IP2_L (0x0010) /* RTC Prescale Timer 0 Interrupt Interval Bit: 2 */
#define RT0IP1_L (0x0008) /* RTC Prescale Timer 0 Interrupt Interval Bit: 1 */
#define RT0IP0_L (0x0004) /* RTC Prescale Timer 0 Interrupt Interval Bit: 0 */
#define RT0PSIE_L (0x0002) /* RTC Prescale Timer 0 Interrupt Enalbe Flag */
#define RT0PSIFG_L (0x0001) /* RTC Prescale Timer 0 Interrupt Flag */
/* RTCPS0CTL Control Bits */
//#define Reserved (0x8000)
#define RT0SSEL_H (0x0040) /* RTC Prescale Timer 0 Source Select 0:ACLK / 1:SMCLK */
#define RT0PSDIV2_H (0x0020) /* RTC Prescale Timer 0 Clock Divide Bit: 2 */
#define RT0PSDIV1_H (0x0010) /* RTC Prescale Timer 0 Clock Divide Bit: 1 */
#define RT0PSDIV0_H (0x0008) /* RTC Prescale Timer 0 Clock Divide Bit: 0 */
//#define Reserved (0x0400)
//#define Reserved (0x0200)
#define RT0PSHOLD_H (0x0001) /* RTC Prescale Timer 0 Hold */
//#define Reserved (0x0080)
//#define Reserved (0x0040)
//#define Reserved (0x0020)
#define RT0IP_0 (0x0000) /* RTC Prescale Timer 0 Interrupt Interval /2 */
#define RT0IP_1 (0x0004) /* RTC Prescale Timer 0 Interrupt Interval /4 */
#define RT0IP_2 (0x0008) /* RTC Prescale Timer 0 Interrupt Interval /8 */
#define RT0IP_3 (0x000C) /* RTC Prescale Timer 0 Interrupt Interval /16 */
#define RT0IP_4 (0x0010) /* RTC Prescale Timer 0 Interrupt Interval /32 */
#define RT0IP_5 (0x0014) /* RTC Prescale Timer 0 Interrupt Interval /64 */
#define RT0IP_6 (0x0018) /* RTC Prescale Timer 0 Interrupt Interval /128 */
#define RT0IP_7 (0x001C) /* RTC Prescale Timer 0 Interrupt Interval /256 */
#define RT0PSDIV_0 (0x0000) /* RTC Prescale Timer 0 Clock Divide /2 */
#define RT0PSDIV_1 (0x0800) /* RTC Prescale Timer 0 Clock Divide /4 */
#define RT0PSDIV_2 (0x1000) /* RTC Prescale Timer 0 Clock Divide /8 */
#define RT0PSDIV_3 (0x1800) /* RTC Prescale Timer 0 Clock Divide /16 */
#define RT0PSDIV_4 (0x2000) /* RTC Prescale Timer 0 Clock Divide /32 */
#define RT0PSDIV_5 (0x2800) /* RTC Prescale Timer 0 Clock Divide /64 */
#define RT0PSDIV_6 (0x3000) /* RTC Prescale Timer 0 Clock Divide /128 */
#define RT0PSDIV_7 (0x3800) /* RTC Prescale Timer 0 Clock Divide /256 */
/* RTCPS1CTL Control Bits */
#define RT1SSEL1 (0x8000) /* RTC Prescale Timer 1 Source Select Bit 1 */
#define RT1SSEL0 (0x4000) /* RTC Prescale Timer 1 Source Select Bit 0 */
#define RT1PSDIV2 (0x2000) /* RTC Prescale Timer 1 Clock Divide Bit: 2 */
#define RT1PSDIV1 (0x1000) /* RTC Prescale Timer 1 Clock Divide Bit: 1 */
#define RT1PSDIV0 (0x0800) /* RTC Prescale Timer 1 Clock Divide Bit: 0 */
//#define Reserved (0x0400)
//#define Reserved (0x0200)
#define RT1PSHOLD (0x0100) /* RTC Prescale Timer 1 Hold */
//#define Reserved (0x0080)
//#define Reserved (0x0040)
//#define Reserved (0x0020)
#define RT1IP2 (0x0010) /* RTC Prescale Timer 1 Interrupt Interval Bit: 2 */
#define RT1IP1 (0x0008) /* RTC Prescale Timer 1 Interrupt Interval Bit: 1 */
#define RT1IP0 (0x0004) /* RTC Prescale Timer 1 Interrupt Interval Bit: 0 */
#define RT1PSIE (0x0002) /* RTC Prescale Timer 1 Interrupt Enalbe Flag */
#define RT1PSIFG (0x0001) /* RTC Prescale Timer 1 Interrupt Flag */
/* RTCPS1CTL Control Bits */
//#define Reserved (0x0400)
//#define Reserved (0x0200)
//#define Reserved (0x0080)
//#define Reserved (0x0040)
//#define Reserved (0x0020)
#define RT1IP2_L (0x0010) /* RTC Prescale Timer 1 Interrupt Interval Bit: 2 */
#define RT1IP1_L (0x0008) /* RTC Prescale Timer 1 Interrupt Interval Bit: 1 */
#define RT1IP0_L (0x0004) /* RTC Prescale Timer 1 Interrupt Interval Bit: 0 */
#define RT1PSIE_L (0x0002) /* RTC Prescale Timer 1 Interrupt Enalbe Flag */
#define RT1PSIFG_L (0x0001) /* RTC Prescale Timer 1 Interrupt Flag */
/* RTCPS1CTL Control Bits */
#define RT1SSEL1_H (0x0080) /* RTC Prescale Timer 1 Source Select Bit 1 */
#define RT1SSEL0_H (0x0040) /* RTC Prescale Timer 1 Source Select Bit 0 */
#define RT1PSDIV2_H (0x0020) /* RTC Prescale Timer 1 Clock Divide Bit: 2 */
#define RT1PSDIV1_H (0x0010) /* RTC Prescale Timer 1 Clock Divide Bit: 1 */
#define RT1PSDIV0_H (0x0008) /* RTC Prescale Timer 1 Clock Divide Bit: 0 */
//#define Reserved (0x0400)
//#define Reserved (0x0200)
#define RT1PSHOLD_H (0x0001) /* RTC Prescale Timer 1 Hold */
//#define Reserved (0x0080)
//#define Reserved (0x0040)
//#define Reserved (0x0020)
#define RT1IP_0 (0x0000) /* RTC Prescale Timer 1 Interrupt Interval /2 */
#define RT1IP_1 (0x0004) /* RTC Prescale Timer 1 Interrupt Interval /4 */
#define RT1IP_2 (0x0008) /* RTC Prescale Timer 1 Interrupt Interval /8 */
#define RT1IP_3 (0x000C) /* RTC Prescale Timer 1 Interrupt Interval /16 */
#define RT1IP_4 (0x0010) /* RTC Prescale Timer 1 Interrupt Interval /32 */
#define RT1IP_5 (0x0014) /* RTC Prescale Timer 1 Interrupt Interval /64 */
#define RT1IP_6 (0x0018) /* RTC Prescale Timer 1 Interrupt Interval /128 */
#define RT1IP_7 (0x001C) /* RTC Prescale Timer 1 Interrupt Interval /256 */
#define RT1PSDIV_0 (0x0000) /* RTC Prescale Timer 1 Clock Divide /2 */
#define RT1PSDIV_1 (0x0800) /* RTC Prescale Timer 1 Clock Divide /4 */
#define RT1PSDIV_2 (0x1000) /* RTC Prescale Timer 1 Clock Divide /8 */
#define RT1PSDIV_3 (0x1800) /* RTC Prescale Timer 1 Clock Divide /16 */
#define RT1PSDIV_4 (0x2000) /* RTC Prescale Timer 1 Clock Divide /32 */
#define RT1PSDIV_5 (0x2800) /* RTC Prescale Timer 1 Clock Divide /64 */
#define RT1PSDIV_6 (0x3000) /* RTC Prescale Timer 1 Clock Divide /128 */
#define RT1PSDIV_7 (0x3800) /* RTC Prescale Timer 1 Clock Divide /256 */
#define RT1SSEL_0 (0x0000) /* RTC Prescale Timer Source Select ACLK */
#define RT1SSEL_1 (0x4000) /* RTC Prescale Timer Source Select SMCLK */
#define RT1SSEL_2 (0x8000) /* RTC Prescale Timer Source Select RT0PS */
#define RT1SSEL_3 (0xC000) /* RTC Prescale Timer Source Select RT0PS */
/* RTC Definitions */
#define RTC_NONE (0x0000) /* No Interrupt pending */
#define RTC_RTCRDYIFG (0x0002) /* RTC ready: RTCRDYIFG */
#define RTC_RTCTEVIFG (0x0004) /* RTC interval timer: RTCTEVIFG */
#define RTC_RTCAIFG (0x0006) /* RTC user alarm: RTCAIFG */
#define RTC_RT0PSIFG (0x0008) /* RTC prescaler 0: RT0PSIFG */
#define RTC_RT1PSIFG (0x000A) /* RTC prescaler 1: RT1PSIFG */
/************************************************************
* SFR - Special Function Register Module
************************************************************/
#define __MSP430_HAS_SFR__ /* Definition to show that Module is available */
SFR_16BIT(SFRIE1); /* Interrupt Enable 1 */
SFR_8BIT(SFRIE1_L); /* Interrupt Enable 1 */
SFR_8BIT(SFRIE1_H); /* Interrupt Enable 1 */
/* SFRIE1 Control Bits */
#define WDTIE (0x0001) /* WDT Interrupt Enable */
#define OFIE (0x0002) /* Osc Fault Enable */
//#define Reserved (0x0004)
#define VMAIE (0x0008) /* Vacant Memory Interrupt Enable */
#define NMIIE (0x0010) /* NMI Interrupt Enable */
#define ACCVIE (0x0020) /* Flash Access Violation Interrupt Enable */
#define JMBINIE (0x0040) /* JTAG Mail Box input Interrupt Enable */
#define JMBOUTIE (0x0080) /* JTAG Mail Box output Interrupt Enable */
#define WDTIE_L (0x0001) /* WDT Interrupt Enable */
#define OFIE_L (0x0002) /* Osc Fault Enable */
//#define Reserved (0x0004)
#define VMAIE_L (0x0008) /* Vacant Memory Interrupt Enable */
#define NMIIE_L (0x0010) /* NMI Interrupt Enable */
#define ACCVIE_L (0x0020) /* Flash Access Violation Interrupt Enable */
#define JMBINIE_L (0x0040) /* JTAG Mail Box input Interrupt Enable */
#define JMBOUTIE_L (0x0080) /* JTAG Mail Box output Interrupt Enable */
//#define Reserved (0x0004)
SFR_16BIT(SFRIFG1); /* Interrupt Flag 1 */
SFR_8BIT(SFRIFG1_L); /* Interrupt Flag 1 */
SFR_8BIT(SFRIFG1_H); /* Interrupt Flag 1 */
/* SFRIFG1 Control Bits */
#define WDTIFG (0x0001) /* WDT Interrupt Flag */
#define OFIFG (0x0002) /* Osc Fault Flag */
//#define Reserved (0x0004)
#define VMAIFG (0x0008) /* Vacant Memory Interrupt Flag */
#define NMIIFG (0x0010) /* NMI Interrupt Flag */
//#define Reserved (0x0020)
#define JMBINIFG (0x0040) /* JTAG Mail Box input Interrupt Flag */
#define JMBOUTIFG (0x0080) /* JTAG Mail Box output Interrupt Flag */
#define WDTIFG_L (0x0001) /* WDT Interrupt Flag */
#define OFIFG_L (0x0002) /* Osc Fault Flag */
//#define Reserved (0x0004)
#define VMAIFG_L (0x0008) /* Vacant Memory Interrupt Flag */
#define NMIIFG_L (0x0010) /* NMI Interrupt Flag */
//#define Reserved (0x0020)
#define JMBINIFG_L (0x0040) /* JTAG Mail Box input Interrupt Flag */
#define JMBOUTIFG_L (0x0080) /* JTAG Mail Box output Interrupt Flag */
//#define Reserved (0x0004)
//#define Reserved (0x0020)
SFR_16BIT(SFRRPCR); /* RESET Pin Control Register */
SFR_8BIT(SFRRPCR_L); /* RESET Pin Control Register */
SFR_8BIT(SFRRPCR_H); /* RESET Pin Control Register */
/* SFRRPCR Control Bits */
#define SYSNMI (0x0001) /* NMI select */
#define SYSNMIIES (0x0002) /* NMI edge select */
#define SYSRSTUP (0x0004) /* RESET Pin pull down/up select */
#define SYSRSTRE (0x0008) /* RESET Pin Resistor enalbe */
#define SYSNMI_L (0x0001) /* NMI select */
#define SYSNMIIES_L (0x0002) /* NMI edge select */
#define SYSRSTUP_L (0x0004) /* RESET Pin pull down/up select */
#define SYSRSTRE_L (0x0008) /* RESET Pin Resistor enalbe */
/************************************************************
* SYS - System Module
************************************************************/
#define __MSP430_HAS_SYS__ /* Definition to show that Module is available */
SFR_16BIT(SYSCTL); /* System control */
SFR_8BIT(SYSCTL_L); /* System control */
SFR_8BIT(SYSCTL_H); /* System control */
SFR_16BIT(SYSBSLC); /* Boot strap configuration area */
SFR_8BIT(SYSBSLC_L); /* Boot strap configuration area */
SFR_8BIT(SYSBSLC_H); /* Boot strap configuration area */
SFR_16BIT(SYSARB); /* JTAG Arbitration configuration */
SFR_8BIT(SYSARB_L); /* JTAG Arbitration configuration */
SFR_8BIT(SYSARB_H); /* JTAG Arbitration configuration */
SFR_16BIT(SYSJMBC); /* JTAG mailbox control */
SFR_8BIT(SYSJMBC_L); /* JTAG mailbox control */
SFR_8BIT(SYSJMBC_H); /* JTAG mailbox control */
SFR_16BIT(SYSJMBI0); /* JTAG mailbox input 0 */
SFR_8BIT(SYSJMBI0_L); /* JTAG mailbox input 0 */
SFR_8BIT(SYSJMBI0_H); /* JTAG mailbox input 0 */
SFR_16BIT(SYSJMBI1); /* JTAG mailbox input 1 */
SFR_8BIT(SYSJMBI1_L); /* JTAG mailbox input 1 */
SFR_8BIT(SYSJMBI1_H); /* JTAG mailbox input 1 */
SFR_16BIT(SYSJMBO0); /* JTAG mailbox output 0 */
SFR_8BIT(SYSJMBO0_L); /* JTAG mailbox output 0 */
SFR_8BIT(SYSJMBO0_H); /* JTAG mailbox output 0 */
SFR_16BIT(SYSJMBO1); /* JTAG mailbox output 1 */
SFR_8BIT(SYSJMBO1_L); /* JTAG mailbox output 1 */
SFR_8BIT(SYSJMBO1_H); /* JTAG mailbox output 1 */
SFR_16BIT(SYSBERRIV); /* Bus Error vector generator */
SFR_8BIT(SYSBERRIV_L); /* Bus Error vector generator */
SFR_8BIT(SYSBERRIV_H); /* Bus Error vector generator */
SFR_16BIT(SYSUNIV); /* User NMI vector generator */
SFR_8BIT(SYSUNIV_L); /* User NMI vector generator */
SFR_8BIT(SYSUNIV_H); /* User NMI vector generator */
SFR_16BIT(SYSSNIV); /* System NMI vector generator */
SFR_8BIT(SYSSNIV_L); /* System NMI vector generator */
SFR_8BIT(SYSSNIV_H); /* System NMI vector generator */
SFR_16BIT(SYSRSTIV); /* Reset vector generator */
SFR_8BIT(SYSRSTIV_L); /* Reset vector generator */
SFR_8BIT(SYSRSTIV_H); /* Reset vector generator */
/* SYSCTL Control Bits */
#define SYSRIVECT (0x0001) /* SYS - RAM based interrupt vectors */
//#define RESERVED (0x0002) /* SYS - Reserved */
#define SYSPMMPE (0x0004) /* SYS - PMM access protect */
//#define RESERVED (0x0008) /* SYS - Reserved */
#define SYSBSLIND (0x0010) /* SYS - TCK/RST indication detected */
#define SYSJTAGPIN (0x0020) /* SYS - Dedicated JTAG pins enabled */
//#define RESERVED (0x0040) /* SYS - Reserved */
//#define RESERVED (0x0080) /* SYS - Reserved */
//#define RESERVED (0x0100) /* SYS - Reserved */
//#define RESERVED (0x0200) /* SYS - Reserved */
//#define RESERVED (0x0400) /* SYS - Reserved */
//#define RESERVED (0x0800) /* SYS - Reserved */
//#define RESERVED (0x1000) /* SYS - Reserved */
//#define RESERVED (0x2000) /* SYS - Reserved */
//#define RESERVED (0x4000) /* SYS - Reserved */
//#define RESERVED (0x8000) /* SYS - Reserved */
/* SYSCTL Control Bits */
#define SYSRIVECT_L (0x0001) /* SYS - RAM based interrupt vectors */
//#define RESERVED (0x0002) /* SYS - Reserved */
#define SYSPMMPE_L (0x0004) /* SYS - PMM access protect */
//#define RESERVED (0x0008) /* SYS - Reserved */
#define SYSBSLIND_L (0x0010) /* SYS - TCK/RST indication detected */
#define SYSJTAGPIN_L (0x0020) /* SYS - Dedicated JTAG pins enabled */
//#define RESERVED (0x0040) /* SYS - Reserved */
//#define RESERVED (0x0080) /* SYS - Reserved */
//#define RESERVED (0x0100) /* SYS - Reserved */
//#define RESERVED (0x0200) /* SYS - Reserved */
//#define RESERVED (0x0400) /* SYS - Reserved */
//#define RESERVED (0x0800) /* SYS - Reserved */
//#define RESERVED (0x1000) /* SYS - Reserved */
//#define RESERVED (0x2000) /* SYS - Reserved */
//#define RESERVED (0x4000) /* SYS - Reserved */
//#define RESERVED (0x8000) /* SYS - Reserved */
/* SYSCTL Control Bits */
//#define RESERVED (0x0002) /* SYS - Reserved */
//#define RESERVED (0x0008) /* SYS - Reserved */
//#define RESERVED (0x0040) /* SYS - Reserved */
//#define RESERVED (0x0080) /* SYS - Reserved */
//#define RESERVED (0x0100) /* SYS - Reserved */
//#define RESERVED (0x0200) /* SYS - Reserved */
//#define RESERVED (0x0400) /* SYS - Reserved */
//#define RESERVED (0x0800) /* SYS - Reserved */
//#define RESERVED (0x1000) /* SYS - Reserved */
//#define RESERVED (0x2000) /* SYS - Reserved */
//#define RESERVED (0x4000) /* SYS - Reserved */
//#define RESERVED (0x8000) /* SYS - Reserved */
/* SYSBSLC Control Bits */
#define SYSBSLSIZE0 (0x0001) /* SYS - BSL Protection Size 0 */
#define SYSBSLSIZE1 (0x0002) /* SYS - BSL Protection Size 1 */
#define SYSBSLR (0x0004) /* SYS - RAM assigned to BSL */
//#define RESERVED (0x0008) /* SYS - Reserved */
//#define RESERVED (0x0010) /* SYS - Reserved */
//#define RESERVED (0x0020) /* SYS - Reserved */
//#define RESERVED (0x0040) /* SYS - Reserved */
//#define RESERVED (0x0080) /* SYS - Reserved */
//#define RESERVED (0x0100) /* SYS - Reserved */
//#define RESERVED (0x0200) /* SYS - Reserved */
//#define RESERVED (0x0400) /* SYS - Reserved */
//#define RESERVED (0x0800) /* SYS - Reserved */
//#define RESERVED (0x1000) /* SYS - Reserved */
//#define RESERVED (0x2000) /* SYS - Reserved */
#define SYSBSLOFF (0x4000) /* SYS - BSL Memeory disabled */
#define SYSBSLPE (0x8000) /* SYS - BSL Memory protection enalbed */
/* SYSBSLC Control Bits */
#define SYSBSLSIZE0_L (0x0001) /* SYS - BSL Protection Size 0 */
#define SYSBSLSIZE1_L (0x0002) /* SYS - BSL Protection Size 1 */
#define SYSBSLR_L (0x0004) /* SYS - RAM assigned to BSL */
//#define RESERVED (0x0008) /* SYS - Reserved */
//#define RESERVED (0x0010) /* SYS - Reserved */
//#define RESERVED (0x0020) /* SYS - Reserved */
//#define RESERVED (0x0040) /* SYS - Reserved */
//#define RESERVED (0x0080) /* SYS - Reserved */
//#define RESERVED (0x0100) /* SYS - Reserved */
//#define RESERVED (0x0200) /* SYS - Reserved */
//#define RESERVED (0x0400) /* SYS - Reserved */
//#define RESERVED (0x0800) /* SYS - Reserved */
//#define RESERVED (0x1000) /* SYS - Reserved */
//#define RESERVED (0x2000) /* SYS - Reserved */
/* SYSBSLC Control Bits */
//#define RESERVED (0x0008) /* SYS - Reserved */
//#define RESERVED (0x0010) /* SYS - Reserved */
//#define RESERVED (0x0020) /* SYS - Reserved */
//#define RESERVED (0x0040) /* SYS - Reserved */
//#define RESERVED (0x0080) /* SYS - Reserved */
//#define RESERVED (0x0100) /* SYS - Reserved */
//#define RESERVED (0x0200) /* SYS - Reserved */
//#define RESERVED (0x0400) /* SYS - Reserved */
//#define RESERVED (0x0800) /* SYS - Reserved */
//#define RESERVED (0x1000) /* SYS - Reserved */
//#define RESERVED (0x2000) /* SYS - Reserved */
#define SYSBSLOFF_H (0x0040) /* SYS - BSL Memeory disabled */
#define SYSBSLPE_H (0x0080) /* SYS - BSL Memory protection enalbed */
/* SYSJMBC Control Bits */
#define JMBIN0FG (0x0001) /* SYS - Incoming JTAG Mailbox 0 Flag */
#define JMBIN1FG (0x0002) /* SYS - Incoming JTAG Mailbox 1 Flag */
#define JMBOUT0FG (0x0004) /* SYS - Outgoing JTAG Mailbox 0 Flag */
#define JMBOUT1FG (0x0008) /* SYS - Outgoing JTAG Mailbox 1 Flag */
#define JMBMODE (0x0010) /* SYS - JMB 16/32 Bit Mode */
//#define RESERVED (0x0020) /* SYS - Reserved */
#define JMBCLR0OFF (0x0040) /* SYS - Incoming JTAG Mailbox 0 Flag auto-clear disalbe */
#define JMBCLR1OFF (0x0080) /* SYS - Incoming JTAG Mailbox 1 Flag auto-clear disalbe */
//#define RESERVED (0x0100) /* SYS - Reserved */
//#define RESERVED (0x0200) /* SYS - Reserved */
//#define RESERVED (0x0400) /* SYS - Reserved */
//#define RESERVED (0x0800) /* SYS - Reserved */
//#define RESERVED (0x1000) /* SYS - Reserved */
//#define RESERVED (0x2000) /* SYS - Reserved */
//#define RESERVED (0x4000) /* SYS - Reserved */
//#define RESERVED (0x8000) /* SYS - Reserved */
/* SYSJMBC Control Bits */
#define JMBIN0FG_L (0x0001) /* SYS - Incoming JTAG Mailbox 0 Flag */
#define JMBIN1FG_L (0x0002) /* SYS - Incoming JTAG Mailbox 1 Flag */
#define JMBOUT0FG_L (0x0004) /* SYS - Outgoing JTAG Mailbox 0 Flag */
#define JMBOUT1FG_L (0x0008) /* SYS - Outgoing JTAG Mailbox 1 Flag */
#define JMBMODE_L (0x0010) /* SYS - JMB 16/32 Bit Mode */
//#define RESERVED (0x0020) /* SYS - Reserved */
#define JMBCLR0OFF_L (0x0040) /* SYS - Incoming JTAG Mailbox 0 Flag auto-clear disalbe */
#define JMBCLR1OFF_L (0x0080) /* SYS - Incoming JTAG Mailbox 1 Flag auto-clear disalbe */
//#define RESERVED (0x0100) /* SYS - Reserved */
//#define RESERVED (0x0200) /* SYS - Reserved */
//#define RESERVED (0x0400) /* SYS - Reserved */
//#define RESERVED (0x0800) /* SYS - Reserved */
//#define RESERVED (0x1000) /* SYS - Reserved */
//#define RESERVED (0x2000) /* SYS - Reserved */
//#define RESERVED (0x4000) /* SYS - Reserved */
//#define RESERVED (0x8000) /* SYS - Reserved */
/* SYSJMBC Control Bits */
//#define RESERVED (0x0020) /* SYS - Reserved */
//#define RESERVED (0x0100) /* SYS - Reserved */
//#define RESERVED (0x0200) /* SYS - Reserved */
//#define RESERVED (0x0400) /* SYS - Reserved */
//#define RESERVED (0x0800) /* SYS - Reserved */
//#define RESERVED (0x1000) /* SYS - Reserved */
//#define RESERVED (0x2000) /* SYS - Reserved */
//#define RESERVED (0x4000) /* SYS - Reserved */
//#define RESERVED (0x8000) /* SYS - Reserved */
/* SYSUNIV Definitions */
#define SYSUNIV_NONE (0x0000) /* No Interrupt pending */
#define SYSUNIV_NMIIFG (0x0002) /* SYSUNIV : NMIIFG */
#define SYSUNIV_OFIFG (0x0004) /* SYSUNIV : Osc. Fail - OFIFG */
#define SYSUNIV_ACCVIFG (0x0006) /* SYSUNIV : Access Violation - ACCVIFG */
#define SYSUNIV_SYSBERRIV (0x0008) /* SYSUNIV : Bus Error - SYSBERRIV */
/* SYSSNIV Definitions */
#define SYSSNIV_NONE (0x0000) /* No Interrupt pending */
#define SYSSNIV_SVMLIFG (0x0002) /* SYSSNIV : SVMLIFG */
#define SYSSNIV_SVMHIFG (0x0004) /* SYSSNIV : SVMHIFG */
#define SYSSNIV_DLYLIFG (0x0006) /* SYSSNIV : DLYLIFG */
#define SYSSNIV_DLYHIFG (0x0008) /* SYSSNIV : DLYHIFG */
#define SYSSNIV_VMAIFG (0x000A) /* SYSSNIV : VMAIFG */
#define SYSSNIV_JMBINIFG (0x000C) /* SYSSNIV : JMBINIFG */
#define SYSSNIV_JMBOUTIFG (0x000E) /* SYSSNIV : JMBOUTIFG */
#define SYSSNIV_VLRLIFG (0x0010) /* SYSSNIV : VLRLIFG */
#define SYSSNIV_VLRHIFG (0x0012) /* SYSSNIV : VLRHIFG */
/* SYSRSTIV Definitions */
#define SYSRSTIV_NONE (0x0000) /* No Interrupt pending */
#define SYSRSTIV_BOR (0x0002) /* SYSRSTIV : BOR */
#define SYSRSTIV_RSTNMI (0x0004) /* SYSRSTIV : RST/NMI */
#define SYSRSTIV_DOBOR (0x0006) /* SYSRSTIV : Do BOR */
#define SYSRSTIV_PORTWU (0x0008) /* SYSRSTIV : Port Wake Up */
#define SYSRSTIV_SECYV (0x000A) /* SYSRSTIV : Security violation */
#define SYSRSTIV_SVSL (0x000C) /* SYSRSTIV : SVSL */
#define SYSRSTIV_SVSH (0x000E) /* SYSRSTIV : SVSH */
#define SYSRSTIV_SVML_OVP (0x0010) /* SYSRSTIV : SVML_OVP */
#define SYSRSTIV_SVMH_OVP (0x0012) /* SYSRSTIV : SVMH_OVP */
#define SYSRSTIV_DOPOR (0x0014) /* SYSRSTIV : Do POR */
#define SYSRSTIV_WDTTO (0x0016) /* SYSRSTIV : WDT Time out */
#define SYSRSTIV_WDTKEY (0x0018) /* SYSRSTIV : WDTKEY violation */
#define SYSRSTIV_KEYV (0x001A) /* SYSRSTIV : Flash Key violation */
#define SYSRSTIV_PLLUL (0x001C) /* SYSRSTIV : PLL unlock */
#define SYSRSTIV_PERF (0x001E) /* SYSRSTIV : peripheral/config area fetch */
#define SYSRSTIV_PSSKEY (0x0020) /* SYSRSTIV : PSSKEY violation */
/************************************************************
* Timer0_A5
************************************************************/
#define __MSP430_HAS_T0A5__ /* Definition to show that Module is available */
SFR_16BIT(TA0CTL); /* Timer0_A5 Control */
SFR_8BIT(TA0CTL_L); /* Timer0_A5 Control */
SFR_8BIT(TA0CTL_H); /* Timer0_A5 Control */
SFR_16BIT(TA0CCTL0); /* Timer0_A5 Capture/Compare Control 0 */
SFR_8BIT(TA0CCTL0_L); /* Timer0_A5 Capture/Compare Control 0 */
SFR_8BIT(TA0CCTL0_H); /* Timer0_A5 Capture/Compare Control 0 */
SFR_16BIT(TA0CCTL1); /* Timer0_A5 Capture/Compare Control 1 */
SFR_8BIT(TA0CCTL1_L); /* Timer0_A5 Capture/Compare Control 1 */
SFR_8BIT(TA0CCTL1_H); /* Timer0_A5 Capture/Compare Control 1 */
SFR_16BIT(TA0CCTL2); /* Timer0_A5 Capture/Compare Control 2 */
SFR_8BIT(TA0CCTL2_L); /* Timer0_A5 Capture/Compare Control 2 */
SFR_8BIT(TA0CCTL2_H); /* Timer0_A5 Capture/Compare Control 2 */
SFR_16BIT(TA0CCTL3); /* Timer0_A5 Capture/Compare Control 3 */
SFR_8BIT(TA0CCTL3_L); /* Timer0_A5 Capture/Compare Control 3 */
SFR_8BIT(TA0CCTL3_H); /* Timer0_A5 Capture/Compare Control 3 */
SFR_16BIT(TA0CCTL4); /* Timer0_A5 Capture/Compare Control 4 */
SFR_8BIT(TA0CCTL4_L); /* Timer0_A5 Capture/Compare Control 4 */
SFR_8BIT(TA0CCTL4_H); /* Timer0_A5 Capture/Compare Control 4 */
SFR_16BIT(TA0R); /* Timer0_A5 */
SFR_8BIT(TA0R_L); /* Timer0_A5 */
SFR_8BIT(TA0R_H); /* Timer0_A5 */
SFR_16BIT(TA0CCR0); /* Timer0_A5 Capture/Compare 0 */
SFR_8BIT(TA0CCR0_L); /* Timer0_A5 Capture/Compare 0 */
SFR_8BIT(TA0CCR0_H); /* Timer0_A5 Capture/Compare 0 */
SFR_16BIT(TA0CCR1); /* Timer0_A5 Capture/Compare 1 */
SFR_8BIT(TA0CCR1_L); /* Timer0_A5 Capture/Compare 1 */
SFR_8BIT(TA0CCR1_H); /* Timer0_A5 Capture/Compare 1 */
SFR_16BIT(TA0CCR2); /* Timer0_A5 Capture/Compare 2 */
SFR_8BIT(TA0CCR2_L); /* Timer0_A5 Capture/Compare 2 */
SFR_8BIT(TA0CCR2_H); /* Timer0_A5 Capture/Compare 2 */
SFR_16BIT(TA0CCR3); /* Timer0_A5 Capture/Compare 3 */
SFR_8BIT(TA0CCR3_L); /* Timer0_A5 Capture/Compare 3 */
SFR_8BIT(TA0CCR3_H); /* Timer0_A5 Capture/Compare 3 */
SFR_16BIT(TA0CCR4); /* Timer0_A5 Capture/Compare 4 */
SFR_8BIT(TA0CCR4_L); /* Timer0_A5 Capture/Compare 4 */
SFR_8BIT(TA0CCR4_H); /* Timer0_A5 Capture/Compare 4 */
SFR_16BIT(TA0IV); /* Timer0_A5 Interrupt Vector Word */
SFR_8BIT(TA0IV_L); /* Timer0_A5 Interrupt Vector Word */
SFR_8BIT(TA0IV_H); /* Timer0_A5 Interrupt Vector Word */
SFR_16BIT(TA0EX0); /* Timer0_A3 Expansion Register 0 */
SFR_8BIT(TA0EX0_L); /* Timer0_A3 Expansion Register 0 */
SFR_8BIT(TA0EX0_H); /* Timer0_A3 Expansion Register 0 */
/* TAxCTL Control Bits */
#define TASSEL1 (0x0200) /* Timer A clock source select 0 */
#define TASSEL0 (0x0100) /* Timer A clock source select 1 */
#define ID1 (0x0080) /* Timer A clock input divider 1 */
#define ID0 (0x0040) /* Timer A clock input divider 0 */
#define MC1 (0x0020) /* Timer A mode control 1 */
#define MC0 (0x0010) /* Timer A mode control 0 */
#define TACLR (0x0004) /* Timer A counter clear */
#define TAIE (0x0002) /* Timer A counter interrupt enable */
#define TAIFG (0x0001) /* Timer A counter interrupt flag */
/* TAxCTL Control Bits */
#define ID1_L (0x0080) /* Timer A clock input divider 1 */
#define ID0_L (0x0040) /* Timer A clock input divider 0 */
#define MC1_L (0x0020) /* Timer A mode control 1 */
#define MC0_L (0x0010) /* Timer A mode control 0 */
#define TACLR_L (0x0004) /* Timer A counter clear */
#define TAIE_L (0x0002) /* Timer A counter interrupt enable */
#define TAIFG_L (0x0001) /* Timer A counter interrupt flag */
/* TAxCTL Control Bits */
#define TASSEL1_H (0x0002) /* Timer A clock source select 0 */
#define TASSEL0_H (0x0001) /* Timer A clock source select 1 */
#define MC_0 (0*0x10u) /* Timer A mode control: 0 - Stop */
#define MC_1 (1*0x10u) /* Timer A mode control: 1 - Up to CCR0 */
#define MC_2 (2*0x10u) /* Timer A mode control: 2 - Continous up */
#define MC_3 (3*0x10u) /* Timer A mode control: 3 - Up/Down */
#define ID_0 (0*0x40u) /* Timer A input divider: 0 - /1 */
#define ID_1 (1*0x40u) /* Timer A input divider: 1 - /2 */
#define ID_2 (2*0x40u) /* Timer A input divider: 2 - /4 */
#define ID_3 (3*0x40u) /* Timer A input divider: 3 - /8 */
#define TASSEL_0 (0*0x100u) /* Timer A clock source select: 0 - TACLK */
#define TASSEL_1 (1*0x100u) /* Timer A clock source select: 1 - ACLK */
#define TASSEL_2 (2*0x100u) /* Timer A clock source select: 2 - SMCLK */
#define TASSEL_3 (3*0x100u) /* Timer A clock source select: 3 - INCLK */
#define MC__STOP (0*0x10u) /* Timer A mode control: 0 - Stop */
#define MC__UP (1*0x10u) /* Timer A mode control: 1 - Up to CCR0 */
#define MC__CONTINOUS (2*0x10u) /* Timer A mode control: 2 - Continous up */
#define MC__UPDOWN (3*0x10u) /* Timer A mode control: 3 - Up/Down */
#define ID__1 (0*0x40u) /* Timer A input divider: 0 - /1 */
#define ID__2 (1*0x40u) /* Timer A input divider: 1 - /2 */
#define ID__4 (2*0x40u) /* Timer A input divider: 2 - /4 */
#define ID__8 (3*0x40u) /* Timer A input divider: 3 - /8 */
#define TASSEL__TACLK (0*0x100u) /* Timer A clock source select: 0 - TACLK */
#define TASSEL__ACLK (1*0x100u) /* Timer A clock source select: 1 - ACLK */
#define TASSEL__SMCLK (2*0x100u) /* Timer A clock source select: 2 - SMCLK */
#define TASSEL__INCLK (3*0x100u) /* Timer A clock source select: 3 - INCLK */
/* TAxCTLx Control Bits */
#define CM1 (0x8000) /* Capture mode 1 */
#define CM0 (0x4000) /* Capture mode 0 */
#define CCIS1 (0x2000) /* Capture input select 1 */
#define CCIS0 (0x1000) /* Capture input select 0 */
#define SCS (0x0800) /* Capture sychronize */
#define SCCI (0x0400) /* Latched capture signal (read) */
#define CAP (0x0100) /* Capture mode: 1 /Compare mode : 0 */
#define OUTMOD2 (0x0080) /* Output mode 2 */
#define OUTMOD1 (0x0040) /* Output mode 1 */
#define OUTMOD0 (0x0020) /* Output mode 0 */
#define CCIE (0x0010) /* Capture/compare interrupt enable */
#define CCI (0x0008) /* Capture input signal (read) */
#define OUT (0x0004) /* PWM Output signal if output mode 0 */
#define COV (0x0002) /* Capture/compare overflow flag */
#define CCIFG (0x0001) /* Capture/compare interrupt flag */
/* TAxCTLx Control Bits */
#define OUTMOD2_L (0x0080) /* Output mode 2 */
#define OUTMOD1_L (0x0040) /* Output mode 1 */
#define OUTMOD0_L (0x0020) /* Output mode 0 */
#define CCIE_L (0x0010) /* Capture/compare interrupt enable */
#define CCI_L (0x0008) /* Capture input signal (read) */
#define OUT_L (0x0004) /* PWM Output signal if output mode 0 */
#define COV_L (0x0002) /* Capture/compare overflow flag */
#define CCIFG_L (0x0001) /* Capture/compare interrupt flag */
/* TAxCTLx Control Bits */
#define CM1_H (0x0080) /* Capture mode 1 */
#define CM0_H (0x0040) /* Capture mode 0 */
#define CCIS1_H (0x0020) /* Capture input select 1 */
#define CCIS0_H (0x0010) /* Capture input select 0 */
#define SCS_H (0x0008) /* Capture sychronize */
#define SCCI_H (0x0004) /* Latched capture signal (read) */
#define CAP_H (0x0001) /* Capture mode: 1 /Compare mode : 0 */
#define OUTMOD_0 (0*0x20u) /* PWM output mode: 0 - output only */
#define OUTMOD_1 (1*0x20u) /* PWM output mode: 1 - set */
#define OUTMOD_2 (2*0x20u) /* PWM output mode: 2 - PWM toggle/reset */
#define OUTMOD_3 (3*0x20u) /* PWM output mode: 3 - PWM set/reset */
#define OUTMOD_4 (4*0x20u) /* PWM output mode: 4 - toggle */
#define OUTMOD_5 (5*0x20u) /* PWM output mode: 5 - Reset */
#define OUTMOD_6 (6*0x20u) /* PWM output mode: 6 - PWM toggle/set */
#define OUTMOD_7 (7*0x20u) /* PWM output mode: 7 - PWM reset/set */
#define CCIS_0 (0*0x1000u) /* Capture input select: 0 - CCIxA */
#define CCIS_1 (1*0x1000u) /* Capture input select: 1 - CCIxB */
#define CCIS_2 (2*0x1000u) /* Capture input select: 2 - GND */
#define CCIS_3 (3*0x1000u) /* Capture input select: 3 - Vcc */
#define CM_0 (0*0x4000u) /* Capture mode: 0 - disabled */
#define CM_1 (1*0x4000u) /* Capture mode: 1 - pos. edge */
#define CM_2 (2*0x4000u) /* Capture mode: 1 - neg. edge */
#define CM_3 (3*0x4000u) /* Capture mode: 1 - both edges */
/* TAxEX0 Control Bits */
#define TAIDEX0 (0x0001) /* Timer A Input divider expansion Bit: 0 */
#define TAIDEX1 (0x0002) /* Timer A Input divider expansion Bit: 1 */
#define TAIDEX2 (0x0004) /* Timer A Input divider expansion Bit: 2 */
/* TAxEX0 Control Bits */
#define TAIDEX0_L (0x0001) /* Timer A Input divider expansion Bit: 0 */
#define TAIDEX1_L (0x0002) /* Timer A Input divider expansion Bit: 1 */
#define TAIDEX2_L (0x0004) /* Timer A Input divider expansion Bit: 2 */
/* TAxEX0 Control Bits */
#define TAIDEX_0 (0*0x0001u) /* Timer A Input divider expansion : /1 */
#define TAIDEX_1 (1*0x0001u) /* Timer A Input divider expansion : /2 */
#define TAIDEX_2 (2*0x0001u) /* Timer A Input divider expansion : /3 */
#define TAIDEX_3 (3*0x0001u) /* Timer A Input divider expansion : /4 */
#define TAIDEX_4 (4*0x0001u) /* Timer A Input divider expansion : /5 */
#define TAIDEX_5 (5*0x0001u) /* Timer A Input divider expansion : /6 */
#define TAIDEX_6 (6*0x0001u) /* Timer A Input divider expansion : /7 */
#define TAIDEX_7 (7*0x0001u) /* Timer A Input divider expansion : /8 */
/* T0A5IV Definitions */
#define TA0IV_NONE (0x0000) /* No Interrupt pending */
#define TA0IV_TA0CCR1 (0x0002) /* TA0CCR1_CCIFG */
#define TA0IV_TA0CCR2 (0x0004) /* TA0CCR2_CCIFG */
#define TA0IV_TA0CCR3 (0x0006) /* TA0CCR3_CCIFG */
#define TA0IV_TA0CCR4 (0x0008) /* TA0CCR4_CCIFG */
#define TA0IV_5 (0x000A) /* Reserved */
#define TA0IV_6 (0x000C) /* Reserved */
#define TA0IV_TA0IFG (0x000E) /* TA0IFG */
/************************************************************
* Timer1_A3
************************************************************/
#define __MSP430_HAS_T1A3__ /* Definition to show that Module is available */
SFR_16BIT(TA1CTL); /* Timer1_A3 Control */
SFR_8BIT(TA1CTL_L); /* Timer1_A3 Control */
SFR_8BIT(TA1CTL_H); /* Timer1_A3 Control */
SFR_16BIT(TA1CCTL0); /* Timer1_A3 Capture/Compare Control 0 */
SFR_8BIT(TA1CCTL0_L); /* Timer1_A3 Capture/Compare Control 0 */
SFR_8BIT(TA1CCTL0_H); /* Timer1_A3 Capture/Compare Control 0 */
SFR_16BIT(TA1CCTL1); /* Timer1_A3 Capture/Compare Control 1 */
SFR_8BIT(TA1CCTL1_L); /* Timer1_A3 Capture/Compare Control 1 */
SFR_8BIT(TA1CCTL1_H); /* Timer1_A3 Capture/Compare Control 1 */
SFR_16BIT(TA1CCTL2); /* Timer1_A3 Capture/Compare Control 2 */
SFR_8BIT(TA1CCTL2_L); /* Timer1_A3 Capture/Compare Control 2 */
SFR_8BIT(TA1CCTL2_H); /* Timer1_A3 Capture/Compare Control 2 */
SFR_16BIT(TA1R); /* Timer1_A3 */
SFR_8BIT(TA1R_L); /* Timer1_A3 */
SFR_8BIT(TA1R_H); /* Timer1_A3 */
SFR_16BIT(TA1CCR0); /* Timer1_A3 Capture/Compare 0 */
SFR_8BIT(TA1CCR0_L); /* Timer1_A3 Capture/Compare 0 */
SFR_8BIT(TA1CCR0_H); /* Timer1_A3 Capture/Compare 0 */
SFR_16BIT(TA1CCR1); /* Timer1_A3 Capture/Compare 1 */
SFR_8BIT(TA1CCR1_L); /* Timer1_A3 Capture/Compare 1 */
SFR_8BIT(TA1CCR1_H); /* Timer1_A3 Capture/Compare 1 */
SFR_16BIT(TA1CCR2); /* Timer1_A3 Capture/Compare 2 */
SFR_8BIT(TA1CCR2_L); /* Timer1_A3 Capture/Compare 2 */
SFR_8BIT(TA1CCR2_H); /* Timer1_A3 Capture/Compare 2 */
SFR_16BIT(TA1IV); /* Timer1_A3 Interrupt Vector Word */
SFR_8BIT(TA1IV_L); /* Timer1_A3 Interrupt Vector Word */
SFR_8BIT(TA1IV_H); /* Timer1_A3 Interrupt Vector Word */
SFR_16BIT(TA1EX0); /* Timer1_A3 Expansion Register 0 */
SFR_8BIT(TA1EX0_L); /* Timer1_A3 Expansion Register 0 */
SFR_8BIT(TA1EX0_H); /* Timer1_A3 Expansion Register 0 */
/* Bits are already defined within the Timer0_Ax */
/* T1A3IV Definitions */
#define TA1IV_NONE (0x0000) /* No Interrupt pending */
#define TA1IV_TA1CCR1 (0x0002) /* TA1CCR1_CCIFG */
#define TA1IV_TA1CCR2 (0x0004) /* TA1CCR2_CCIFG */
#define TA1IV_3 (0x0006) /* Reserved */
#define TA1IV_4 (0x0008) /* Reserved */
#define TA1IV_5 (0x000A) /* Reserved */
#define TA1IV_6 (0x000C) /* Reserved */
#define TA1IV_TA1IFG (0x000E) /* TA1IFG */
/************************************************************
* Timer B7
************************************************************/
#define __MSP430_HAS_TB7__ /* Definition to show that Module is available */
SFR_16BIT(TBCTL); /* Timer_B7 Control */
SFR_8BIT(TBCTL_L); /* Timer_B7 Control */
SFR_8BIT(TBCTL_H); /* Timer_B7 Control */
SFR_16BIT(TBCCTL0); /* Timer_B7 Capture/Compare Control 0 */
SFR_8BIT(TBCCTL0_L); /* Timer_B7 Capture/Compare Control 0 */
SFR_8BIT(TBCCTL0_H); /* Timer_B7 Capture/Compare Control 0 */
SFR_16BIT(TBCCTL1); /* Timer_B7 Capture/Compare Control 1 */
SFR_8BIT(TBCCTL1_L); /* Timer_B7 Capture/Compare Control 1 */
SFR_8BIT(TBCCTL1_H); /* Timer_B7 Capture/Compare Control 1 */
SFR_16BIT(TBCCTL2); /* Timer_B7 Capture/Compare Control 2 */
SFR_8BIT(TBCCTL2_L); /* Timer_B7 Capture/Compare Control 2 */
SFR_8BIT(TBCCTL2_H); /* Timer_B7 Capture/Compare Control 2 */
SFR_16BIT(TBCCTL3); /* Timer_B7 Capture/Compare Control 3 */
SFR_8BIT(TBCCTL3_L); /* Timer_B7 Capture/Compare Control 3 */
SFR_8BIT(TBCCTL3_H); /* Timer_B7 Capture/Compare Control 3 */
SFR_16BIT(TBCCTL4); /* Timer_B7 Capture/Compare Control 4 */
SFR_8BIT(TBCCTL4_L); /* Timer_B7 Capture/Compare Control 4 */
SFR_8BIT(TBCCTL4_H); /* Timer_B7 Capture/Compare Control 4 */
SFR_16BIT(TBCCTL5); /* Timer_B7 Capture/Compare Control 5 */
SFR_8BIT(TBCCTL5_L); /* Timer_B7 Capture/Compare Control 5 */
SFR_8BIT(TBCCTL5_H); /* Timer_B7 Capture/Compare Control 5 */
SFR_16BIT(TBCCTL6); /* Timer_B7 Capture/Compare Control 6 */
SFR_8BIT(TBCCTL6_L); /* Timer_B7 Capture/Compare Control 6 */
SFR_8BIT(TBCCTL6_H); /* Timer_B7 Capture/Compare Control 6 */
SFR_16BIT(TBR); /* Timer_B7 */
SFR_8BIT(TBR_L); /* Timer_B7 */
SFR_8BIT(TBR_H); /* Timer_B7 */
SFR_16BIT(TBCCR0); /* Timer_B7 Capture/Compare 0 */
SFR_8BIT(TBCCR0_L); /* Timer_B7 Capture/Compare 0 */
SFR_8BIT(TBCCR0_H); /* Timer_B7 Capture/Compare 0 */
SFR_16BIT(TBCCR1); /* Timer_B7 Capture/Compare 1 */
SFR_8BIT(TBCCR1_L); /* Timer_B7 Capture/Compare 1 */
SFR_8BIT(TBCCR1_H); /* Timer_B7 Capture/Compare 1 */
SFR_16BIT(TBCCR2); /* Timer_B7 Capture/Compare 2 */
SFR_8BIT(TBCCR2_L); /* Timer_B7 Capture/Compare 2 */
SFR_8BIT(TBCCR2_H); /* Timer_B7 Capture/Compare 2 */
SFR_16BIT(TBCCR3); /* Timer_B7 Capture/Compare 3 */
SFR_8BIT(TBCCR3_L); /* Timer_B7 Capture/Compare 3 */
SFR_8BIT(TBCCR3_H); /* Timer_B7 Capture/Compare 3 */
SFR_16BIT(TBCCR4); /* Timer_B7 Capture/Compare 4 */
SFR_8BIT(TBCCR4_L); /* Timer_B7 Capture/Compare 4 */
SFR_8BIT(TBCCR4_H); /* Timer_B7 Capture/Compare 4 */
SFR_16BIT(TBCCR5); /* Timer_B7 Capture/Compare 5 */
SFR_8BIT(TBCCR5_L); /* Timer_B7 Capture/Compare 5 */
SFR_8BIT(TBCCR5_H); /* Timer_B7 Capture/Compare 5 */
SFR_16BIT(TBCCR6); /* Timer_B7 Capture/Compare 6 */
SFR_8BIT(TBCCR6_L); /* Timer_B7 Capture/Compare 6 */
SFR_8BIT(TBCCR6_H); /* Timer_B7 Capture/Compare 6 */
SFR_16BIT(TBEX0); /* Timer_B7 Expansion Register 0 */
SFR_8BIT(TBEX0_L); /* Timer_B7 Expansion Register 0 */
SFR_8BIT(TBEX0_H); /* Timer_B7 Expansion Register 0 */
SFR_16BIT(TBIV); /* Timer_B7 Interrupt Vector Word */
SFR_8BIT(TBIV_L); /* Timer_B7 Interrupt Vector Word */
SFR_8BIT(TBIV_H); /* Timer_B7 Interrupt Vector Word */
/* TBCTL Control Bits */
#define TBCLGRP1 (0x4000) /* Timer_B7 Compare latch load group 1 */
#define TBCLGRP0 (0x2000) /* Timer_B7 Compare latch load group 0 */
#define CNTL1 (0x1000) /* Counter lenght 1 */
#define CNTL0 (0x0800) /* Counter lenght 0 */
#define TBSSEL1 (0x0200) /* Clock source 1 */
#define TBSSEL0 (0x0100) /* Clock source 0 */
#define TBCLR (0x0004) /* Timer_B7 counter clear */
#define TBIE (0x0002) /* Timer_B7 interrupt enable */
#define TBIFG (0x0001) /* Timer_B7 interrupt flag */
/* TBCTL Control Bits */
#define TBCLR_L (0x0004) /* Timer_B7 counter clear */
#define TBIE_L (0x0002) /* Timer_B7 interrupt enable */
#define TBIFG_L (0x0001) /* Timer_B7 interrupt flag */
/* TBCTL Control Bits */
#define TBCLGRP1_H (0x0040) /* Timer_B7 Compare latch load group 1 */
#define TBCLGRP0_H (0x0020) /* Timer_B7 Compare latch load group 0 */
#define CNTL1_H (0x0010) /* Counter lenght 1 */
#define CNTL0_H (0x0008) /* Counter lenght 0 */
#define TBSSEL1_H (0x0002) /* Clock source 1 */
#define TBSSEL0_H (0x0001) /* Clock source 0 */
#define SHR1 (0x4000) /* Timer_B7 Compare latch load group 1 */
#define SHR0 (0x2000) /* Timer_B7 Compare latch load group 0 */
#define TBSSEL_0 (0*0x0100u) /* Clock Source: TBCLK */
#define TBSSEL_1 (1*0x0100u) /* Clock Source: ACLK */
#define TBSSEL_2 (2*0x0100u) /* Clock Source: SMCLK */
#define TBSSEL_3 (3*0x0100u) /* Clock Source: INCLK */
#define CNTL_0 (0*0x0800u) /* Counter lenght: 16 bit */
#define CNTL_1 (1*0x0800u) /* Counter lenght: 12 bit */
#define CNTL_2 (2*0x0800u) /* Counter lenght: 10 bit */
#define CNTL_3 (3*0x0800u) /* Counter lenght: 8 bit */
#define SHR_0 (0*0x2000u) /* Timer_B7 Group: 0 - individually */
#define SHR_1 (1*0x2000u) /* Timer_B7 Group: 1 - 3 groups (1-2, 3-4, 5-6) */
#define SHR_2 (2*0x2000u) /* Timer_B7 Group: 2 - 2 groups (1-3, 4-6)*/
#define SHR_3 (3*0x2000u) /* Timer_B7 Group: 3 - 1 group (all) */
#define TBCLGRP_0 (0*0x2000u) /* Timer_B7 Group: 0 - individually */
#define TBCLGRP_1 (1*0x2000u) /* Timer_B7 Group: 1 - 3 groups (1-2, 3-4, 5-6) */
#define TBCLGRP_2 (2*0x2000u) /* Timer_B7 Group: 2 - 2 groups (1-3, 4-6)*/
#define TBCLGRP_3 (3*0x2000u) /* Timer_B7 Group: 3 - 1 group (all) */
#define TBSSEL__TACLK (0*0x100u) /* Timer_B7 clock source select: 0 - TACLK */
#define TBSSEL__ACLK (1*0x100u) /* Timer_B7 clock source select: 1 - ACLK */
#define TBSSEL__SMCLK (2*0x100u) /* Timer_B7 clock source select: 2 - SMCLK */
#define TBSSEL__INCLK (3*0x100u) /* Timer_B7 clock source select: 3 - INCLK */
#define CNTL__16 (0*0x0800u) /* Counter lenght: 16 bit */
#define CNTL__12 (1*0x0800u) /* Counter lenght: 12 bit */
#define CNTL__10 (2*0x0800u) /* Counter lenght: 10 bit */
#define CNTL__8 (3*0x0800u) /* Counter lenght: 8 bit */
/* Additional Timer B Control Register bits are defined in Timer A */
/* TBCTLx Control Bits */
#define CLLD1 (0x0400) /* Compare latch load source 1 */
#define CLLD0 (0x0200) /* Compare latch load source 0 */
/* TBCTLx Control Bits */
/* TBCTLx Control Bits */
#define CLLD1_H (0x0004) /* Compare latch load source 1 */
#define CLLD0_H (0x0002) /* Compare latch load source 0 */
#define SLSHR1 (0x0400) /* Compare latch load source 1 */
#define SLSHR0 (0x0200) /* Compare latch load source 0 */
#define SLSHR_0 (0*0x0200u) /* Compare latch load sourec : 0 - immediate */
#define SLSHR_1 (1*0x0200u) /* Compare latch load sourec : 1 - TBR counts to 0 */
#define SLSHR_2 (2*0x0200u) /* Compare latch load sourec : 2 - up/down */
#define SLSHR_3 (3*0x0200u) /* Compare latch load sourec : 3 - TBR counts to TBCTL0 */
#define CLLD_0 (0*0x0200u) /* Compare latch load sourec : 0 - immediate */
#define CLLD_1 (1*0x0200u) /* Compare latch load sourec : 1 - TBR counts to 0 */
#define CLLD_2 (2*0x0200u) /* Compare latch load sourec : 2 - up/down */
#define CLLD_3 (3*0x0200u) /* Compare latch load sourec : 3 - TBR counts to TBCTL0 */
/* TBEX0 Control Bits */
#define TBIDEX0 (0x0001) /* Timer_B7 Input divider expansion Bit: 0 */
#define TBIDEX1 (0x0002) /* Timer_B7 Input divider expansion Bit: 1 */
#define TBIDEX2 (0x0004) /* Timer_B7 Input divider expansion Bit: 2 */
/* TBEX0 Control Bits */
#define TBIDEX0_L (0x0001) /* Timer_B7 Input divider expansion Bit: 0 */
#define TBIDEX1_L (0x0002) /* Timer_B7 Input divider expansion Bit: 1 */
#define TBIDEX2_L (0x0004) /* Timer_B7 Input divider expansion Bit: 2 */
/* TBEX0 Control Bits */
#define TBIDEX_0 (0*0x0001u) /* Timer_B7 Input divider expansion : /1 */
#define TBIDEX_1 (1*0x0001u) /* Timer_B7 Input divider expansion : /2 */
#define TBIDEX_2 (2*0x0001u) /* Timer_B7 Input divider expansion : /3 */
#define TBIDEX_3 (3*0x0001u) /* Timer_B7 Input divider expansion : /4 */
#define TBIDEX_4 (4*0x0001u) /* Timer_B7 Input divider expansion : /5 */
#define TBIDEX_5 (5*0x0001u) /* Timer_B7 Input divider expansion : /6 */
#define TBIDEX_6 (6*0x0001u) /* Timer_B7 Input divider expansion : /7 */
#define TBIDEX_7 (7*0x0001u) /* Timer_B7 Input divider expansion : /8 */
#define TBIDEX__1 (0*0x0001u) /* Timer_B7 Input divider expansion : /1 */
#define TBIDEX__2 (1*0x0001u) /* Timer_B7 Input divider expansion : /2 */
#define TBIDEX__3 (2*0x0001u) /* Timer_B7 Input divider expansion : /3 */
#define TBIDEX__4 (3*0x0001u) /* Timer_B7 Input divider expansion : /4 */
#define TBIDEX__5 (4*0x0001u) /* Timer_B7 Input divider expansion : /5 */
#define TBIDEX__6 (5*0x0001u) /* Timer_B7 Input divider expansion : /6 */
#define TBIDEX__7 (6*0x0001u) /* Timer_B7 Input divider expansion : /7 */
#define TBIDEX__8 (7*0x0001u) /* Timer_B7 Input divider expansion : /8 */
/************************************************************
* UNIFIED CLOCK SYSTEM
************************************************************/
#define __MSP430_HAS_UCS__ /* Definition to show that Module is available */
SFR_16BIT(UCSCTL0); /* UCS Control Register 0 */
SFR_8BIT(UCSCTL0_L); /* UCS Control Register 0 */
SFR_8BIT(UCSCTL0_H); /* UCS Control Register 0 */
SFR_16BIT(UCSCTL1); /* UCS Control Register 1 */
SFR_8BIT(UCSCTL1_L); /* UCS Control Register 1 */
SFR_8BIT(UCSCTL1_H); /* UCS Control Register 1 */
SFR_16BIT(UCSCTL2); /* UCS Control Register 2 */
SFR_8BIT(UCSCTL2_L); /* UCS Control Register 2 */
SFR_8BIT(UCSCTL2_H); /* UCS Control Register 2 */
SFR_16BIT(UCSCTL3); /* UCS Control Register 3 */
SFR_8BIT(UCSCTL3_L); /* UCS Control Register 3 */
SFR_8BIT(UCSCTL3_H); /* UCS Control Register 3 */
SFR_16BIT(UCSCTL4); /* UCS Control Register 4 */
SFR_8BIT(UCSCTL4_L); /* UCS Control Register 4 */
SFR_8BIT(UCSCTL4_H); /* UCS Control Register 4 */
SFR_16BIT(UCSCTL5); /* UCS Control Register 5 */
SFR_8BIT(UCSCTL5_L); /* UCS Control Register 5 */
SFR_8BIT(UCSCTL5_H); /* UCS Control Register 5 */
SFR_16BIT(UCSCTL6); /* UCS Control Register 6 */
SFR_8BIT(UCSCTL6_L); /* UCS Control Register 6 */
SFR_8BIT(UCSCTL6_H); /* UCS Control Register 6 */
SFR_16BIT(UCSCTL7); /* UCS Control Register 7 */
SFR_8BIT(UCSCTL7_L); /* UCS Control Register 7 */
SFR_8BIT(UCSCTL7_H); /* UCS Control Register 7 */
SFR_16BIT(UCSCTL8); /* UCS Control Register 8 */
SFR_8BIT(UCSCTL8_L); /* UCS Control Register 8 */
SFR_8BIT(UCSCTL8_H); /* UCS Control Register 8 */
/* UCSCTL0 Control Bits */
//#define RESERVED (0x0001) /* RESERVED */
//#define RESERVED (0x0002) /* RESERVED */
//#define RESERVED (0x0004) /* RESERVED */
#define MOD0 (0x0008) /* Modulation Bit Counter Bit : 0 */
#define MOD1 (0x0010) /* Modulation Bit Counter Bit : 1 */
#define MOD2 (0x0020) /* Modulation Bit Counter Bit : 2 */
#define MOD3 (0x0040) /* Modulation Bit Counter Bit : 3 */
#define MOD4 (0x0080) /* Modulation Bit Counter Bit : 4 */
#define DCO0 (0x0100) /* DCO TAP Bit : 0 */
#define DCO1 (0x0200) /* DCO TAP Bit : 1 */
#define DCO2 (0x0400) /* DCO TAP Bit : 2 */
#define DCO3 (0x0800) /* DCO TAP Bit : 3 */
#define DCO4 (0x1000) /* DCO TAP Bit : 4 */
//#define RESERVED (0x2000) /* RESERVED */
//#define RESERVED (0x4000) /* RESERVED */
//#define RESERVED (0x8000) /* RESERVED */
/* UCSCTL0 Control Bits */
//#define RESERVED (0x0001) /* RESERVED */
//#define RESERVED (0x0002) /* RESERVED */
//#define RESERVED (0x0004) /* RESERVED */
#define MOD0_L (0x0008) /* Modulation Bit Counter Bit : 0 */
#define MOD1_L (0x0010) /* Modulation Bit Counter Bit : 1 */
#define MOD2_L (0x0020) /* Modulation Bit Counter Bit : 2 */
#define MOD3_L (0x0040) /* Modulation Bit Counter Bit : 3 */
#define MOD4_L (0x0080) /* Modulation Bit Counter Bit : 4 */
//#define RESERVED (0x2000) /* RESERVED */
//#define RESERVED (0x4000) /* RESERVED */
//#define RESERVED (0x8000) /* RESERVED */
/* UCSCTL0 Control Bits */
//#define RESERVED (0x0001) /* RESERVED */
//#define RESERVED (0x0002) /* RESERVED */
//#define RESERVED (0x0004) /* RESERVED */
#define DCO0_H (0x0001) /* DCO TAP Bit : 0 */
#define DCO1_H (0x0002) /* DCO TAP Bit : 1 */
#define DCO2_H (0x0004) /* DCO TAP Bit : 2 */
#define DCO3_H (0x0008) /* DCO TAP Bit : 3 */
#define DCO4_H (0x0010) /* DCO TAP Bit : 4 */
//#define RESERVED (0x2000) /* RESERVED */
//#define RESERVED (0x4000) /* RESERVED */
//#define RESERVED (0x8000) /* RESERVED */
/* UCSCTL1 Control Bits */
#define DISMOD (0x0001) /* Disable Modulation */
#define DCOR (0x0002) /* DCO External Resistor Select */
//#define RESERVED (0x0004) /* RESERVED */
//#define RESERVED (0x0008) /* RESERVED */
#define DCORSEL0 (0x0010) /* DCO Freq. Range Select Bit : 0 */
#define DCORSEL1 (0x0020) /* DCO Freq. Range Select Bit : 1 */
#define DCORSEL2 (0x0040) /* DCO Freq. Range Select Bit : 2 */
//#define RESERVED (0x0080) /* RESERVED */
//#define RESERVED (0x0100) /* RESERVED */
//#define RESERVED (0x0200) /* RESERVED */
//#define RESERVED (0x0400) /* RESERVED */
//#define RESERVED (0x0800) /* RESERVED */
//#define RESERVED (0x1000) /* RESERVED */
//#define RESERVED (0x2000) /* RESERVED */
//#define RESERVED (0x4000) /* RESERVED */
//#define RESERVED (0x8000) /* RESERVED */
/* UCSCTL1 Control Bits */
#define DISMOD_L (0x0001) /* Disable Modulation */
#define DCOR_L (0x0002) /* DCO External Resistor Select */
//#define RESERVED (0x0004) /* RESERVED */
//#define RESERVED (0x0008) /* RESERVED */
#define DCORSEL0_L (0x0010) /* DCO Freq. Range Select Bit : 0 */
#define DCORSEL1_L (0x0020) /* DCO Freq. Range Select Bit : 1 */
#define DCORSEL2_L (0x0040) /* DCO Freq. Range Select Bit : 2 */
//#define RESERVED (0x0080) /* RESERVED */
//#define RESERVED (0x0100) /* RESERVED */
//#define RESERVED (0x0200) /* RESERVED */
//#define RESERVED (0x0400) /* RESERVED */
//#define RESERVED (0x0800) /* RESERVED */
//#define RESERVED (0x1000) /* RESERVED */
//#define RESERVED (0x2000) /* RESERVED */
//#define RESERVED (0x4000) /* RESERVED */
//#define RESERVED (0x8000) /* RESERVED */
/* UCSCTL1 Control Bits */
//#define RESERVED (0x0004) /* RESERVED */
//#define RESERVED (0x0008) /* RESERVED */
//#define RESERVED (0x0080) /* RESERVED */
//#define RESERVED (0x0100) /* RESERVED */
//#define RESERVED (0x0200) /* RESERVED */
//#define RESERVED (0x0400) /* RESERVED */
//#define RESERVED (0x0800) /* RESERVED */
//#define RESERVED (0x1000) /* RESERVED */
//#define RESERVED (0x2000) /* RESERVED */
//#define RESERVED (0x4000) /* RESERVED */
//#define RESERVED (0x8000) /* RESERVED */
#define DCORSEL_0 (0x0000) /* DCO RSEL 0 */
#define DCORSEL_1 (0x0010) /* DCO RSEL 1 */
#define DCORSEL_2 (0x0020) /* DCO RSEL 2 */
#define DCORSEL_3 (0x0030) /* DCO RSEL 3 */
#define DCORSEL_4 (0x0040) /* DCO RSEL 4 */
#define DCORSEL_5 (0x0050) /* DCO RSEL 5 */
#define DCORSEL_6 (0x0060) /* DCO RSEL 6 */
#define DCORSEL_7 (0x0070) /* DCO RSEL 7 */
/* UCSCTL2 Control Bits */
#define FLLN0 (0x0001) /* FLL Multipier Bit : 0 */
#define FLLN1 (0x0002) /* FLL Multipier Bit : 1 */
#define FLLN2 (0x0004) /* FLL Multipier Bit : 2 */
#define FLLN3 (0x0008) /* FLL Multipier Bit : 3 */
#define FLLN4 (0x0010) /* FLL Multipier Bit : 4 */
#define FLLN5 (0x0020) /* FLL Multipier Bit : 5 */
#define FLLN6 (0x0040) /* FLL Multipier Bit : 6 */
#define FLLN7 (0x0080) /* FLL Multipier Bit : 7 */
#define FLLN8 (0x0100) /* FLL Multipier Bit : 8 */
#define FLLN9 (0x0200) /* FLL Multipier Bit : 9 */
//#define RESERVED (0x0400) /* RESERVED */
//#define RESERVED (0x0800) /* RESERVED */
#define FLLD0 (0x1000) /* Loop Divider Bit : 0 */
#define FLLD1 (0x2000) /* Loop Divider Bit : 1 */
#define FLLD2 (0x4000) /* Loop Divider Bit : 1 */
//#define RESERVED (0x8000) /* RESERVED */
/* UCSCTL2 Control Bits */
#define FLLN0_L (0x0001) /* FLL Multipier Bit : 0 */
#define FLLN1_L (0x0002) /* FLL Multipier Bit : 1 */
#define FLLN2_L (0x0004) /* FLL Multipier Bit : 2 */
#define FLLN3_L (0x0008) /* FLL Multipier Bit : 3 */
#define FLLN4_L (0x0010) /* FLL Multipier Bit : 4 */
#define FLLN5_L (0x0020) /* FLL Multipier Bit : 5 */
#define FLLN6_L (0x0040) /* FLL Multipier Bit : 6 */
#define FLLN7_L (0x0080) /* FLL Multipier Bit : 7 */
//#define RESERVED (0x0400) /* RESERVED */
//#define RESERVED (0x0800) /* RESERVED */
//#define RESERVED (0x8000) /* RESERVED */
/* UCSCTL2 Control Bits */
#define FLLN8_H (0x0001) /* FLL Multipier Bit : 8 */
#define FLLN9_H (0x0002) /* FLL Multipier Bit : 9 */
//#define RESERVED (0x0400) /* RESERVED */
//#define RESERVED (0x0800) /* RESERVED */
#define FLLD0_H (0x0010) /* Loop Divider Bit : 0 */
#define FLLD1_H (0x0020) /* Loop Divider Bit : 1 */
#define FLLD2_H (0x0040) /* Loop Divider Bit : 1 */
//#define RESERVED (0x8000) /* RESERVED */
#define FLLD_0 (0x0000) /* Multiply Selected Loop Freq. 1 */
#define FLLD_1 (0x1000) /* Multiply Selected Loop Freq. 2 */
#define FLLD_2 (0x2000) /* Multiply Selected Loop Freq. 4 */
#define FLLD_3 (0x3000) /* Multiply Selected Loop Freq. 8 */
#define FLLD_4 (0x4000) /* Multiply Selected Loop Freq. 16 */
#define FLLD_5 (0x5000) /* Multiply Selected Loop Freq. 32 */
#define FLLD_6 (0x6000) /* Multiply Selected Loop Freq. 32 */
#define FLLD_7 (0x7000) /* Multiply Selected Loop Freq. 32 */
#define FLLD__1 (0x0000) /* Multiply Selected Loop Freq. By 1 */
#define FLLD__2 (0x1000) /* Multiply Selected Loop Freq. By 2 */
#define FLLD__4 (0x2000) /* Multiply Selected Loop Freq. By 4 */
#define FLLD__8 (0x3000) /* Multiply Selected Loop Freq. By 8 */
#define FLLD__16 (0x4000) /* Multiply Selected Loop Freq. By 16 */
#define FLLD__32 (0x5000) /* Multiply Selected Loop Freq. By 32 */
/* UCSCTL3 Control Bits */
#define FLLREFDIV0 (0x0001) /* Reference Divider Bit : 0 */
#define FLLREFDIV1 (0x0002) /* Reference Divider Bit : 1 */
#define FLLREFDIV2 (0x0004) /* Reference Divider Bit : 2 */
//#define RESERVED (0x0008) /* RESERVED */
#define SELREF0 (0x0010) /* FLL Reference Clock Select Bit : 0 */
#define SELREF1 (0x0020) /* FLL Reference Clock Select Bit : 1 */
#define SELREF2 (0x0040) /* FLL Reference Clock Select Bit : 2 */
//#define RESERVED (0x0080) /* RESERVED */
//#define RESERVED (0x0100) /* RESERVED */
//#define RESERVED (0x0200) /* RESERVED */
//#define RESERVED (0x0400) /* RESERVED */
//#define RESERVED (0x0800) /* RESERVED */
//#define RESERVED (0x1000) /* RESERVED */
//#define RESERVED (0x2000) /* RESERVED */
//#define RESERVED (0x4000) /* RESERVED */
//#define RESERVED (0x8000) /* RESERVED */
/* UCSCTL3 Control Bits */
#define FLLREFDIV0_L (0x0001) /* Reference Divider Bit : 0 */
#define FLLREFDIV1_L (0x0002) /* Reference Divider Bit : 1 */
#define FLLREFDIV2_L (0x0004) /* Reference Divider Bit : 2 */
//#define RESERVED (0x0008) /* RESERVED */
#define SELREF0_L (0x0010) /* FLL Reference Clock Select Bit : 0 */
#define SELREF1_L (0x0020) /* FLL Reference Clock Select Bit : 1 */
#define SELREF2_L (0x0040) /* FLL Reference Clock Select Bit : 2 */
//#define RESERVED (0x0080) /* RESERVED */
//#define RESERVED (0x0100) /* RESERVED */
//#define RESERVED (0x0200) /* RESERVED */
//#define RESERVED (0x0400) /* RESERVED */
//#define RESERVED (0x0800) /* RESERVED */
//#define RESERVED (0x1000) /* RESERVED */
//#define RESERVED (0x2000) /* RESERVED */
//#define RESERVED (0x4000) /* RESERVED */
//#define RESERVED (0x8000) /* RESERVED */
/* UCSCTL3 Control Bits */
//#define RESERVED (0x0008) /* RESERVED */
//#define RESERVED (0x0080) /* RESERVED */
//#define RESERVED (0x0100) /* RESERVED */
//#define RESERVED (0x0200) /* RESERVED */
//#define RESERVED (0x0400) /* RESERVED */
//#define RESERVED (0x0800) /* RESERVED */
//#define RESERVED (0x1000) /* RESERVED */
//#define RESERVED (0x2000) /* RESERVED */
//#define RESERVED (0x4000) /* RESERVED */
//#define RESERVED (0x8000) /* RESERVED */
#define FLLREFDIV_0 (0x0000) /* Reference Divider: f(LFCLK)/1 */
#define FLLREFDIV_1 (0x0001) /* Reference Divider: f(LFCLK)/2 */
#define FLLREFDIV_2 (0x0002) /* Reference Divider: f(LFCLK)/4 */
#define FLLREFDIV_3 (0x0003) /* Reference Divider: f(LFCLK)/8 */
#define FLLREFDIV_4 (0x0004) /* Reference Divider: f(LFCLK)/12 */
#define FLLREFDIV_5 (0x0005) /* Reference Divider: f(LFCLK)/16 */
#define FLLREFDIV_6 (0x0006) /* Reference Divider: f(LFCLK)/16 */
#define FLLREFDIV_7 (0x0007) /* Reference Divider: f(LFCLK)/16 */
#define FLLREFDIV__1 (0x0000) /* Reference Divider: f(LFCLK)/1 */
#define FLLREFDIV__2 (0x0001) /* Reference Divider: f(LFCLK)/2 */
#define FLLREFDIV__4 (0x0002) /* Reference Divider: f(LFCLK)/4 */
#define FLLREFDIV__8 (0x0003) /* Reference Divider: f(LFCLK)/8 */
#define FLLREFDIV__12 (0x0004) /* Reference Divider: f(LFCLK)/12 */
#define FLLREFDIV__16 (0x0005) /* Reference Divider: f(LFCLK)/16 */
#define SELREF_0 (0x0000)