msp430g2553头文件

上传人:第*** 文档编号:31079342 上传时间:2018-02-04 格式:DOCX 页数:22 大小:30.71KB
返回 下载 相关 举报
msp430g2553头文件_第1页
第1页 / 共22页
msp430g2553头文件_第2页
第2页 / 共22页
msp430g2553头文件_第3页
第3页 / 共22页
msp430g2553头文件_第4页
第4页 / 共22页
msp430g2553头文件_第5页
第5页 / 共22页
点击查看更多>>
资源描述

《msp430g2553头文件》由会员分享,可在线阅读,更多相关《msp430g2553头文件(22页珍藏版)》请在金锄头文库上搜索。

1、/* = */* Copyright (c) 2014, Texas Instruments Incorporated */* All rights reserved. */* */* Redistribution and use in source and binary forms, with or without */* modification, are permitted provided that the following conditions */* are met: */* */* * Redistributions of source code must retain the

2、 above copyright */* notice, this list of conditions and the following disclaimer. */* */* * Redistributions in binary form must reproduce the above copyright */* notice, this list of conditions and the following disclaimer in the */* documentation and/or other materials provided with the distributi

3、on. */* */* * Neither the name of Texas Instruments Incorporated nor the names of */* its contributors may be used to endorse or promote products derived */* from this software without specific prior written permission. */* */* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS I

4、S */* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, */* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR */* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR */* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, */* EX

5、EMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, */* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; */* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, */* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR *

6、/* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, */* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */* = */* Standard register and bit definitions for the Texas Instruments* MSP430 microcontroller.* This file supports assembler and C development for* MSP430G2553 devices.* Texas

7、 Instruments, Version 1.1* Rev. 1.0, Setup* Rev. 1.1, added additional Cal Data Labels*/#ifndef _MSP430G2553#define _MSP430G2553#define _MSP430_HEADER_VERSION_ 1127#ifdef _cplusplusextern C #endif/*-*/* PERIPHERAL FILE MAP */*-*/* External references resolved by a device-specific linker command file

8、 */#define SFR_8BIT(address) extern volatile unsigned char address#define SFR_16BIT(address) extern volatile unsigned int address#define SFR_32BIT(address) extern volatile unsigned long address/* STANDARD BITS*/#define BIT0 (0x0001)#define BIT1 (0x0002)#define BIT2 (0x0004)#define BIT3 (0x0008)#defi

9、ne 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

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 办公文档 > 解决方案

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号