|
![](static/image/common/ico_lz.png)
楼主 |
发表于 2013-7-2 11:15:44
|
显示全部楼层
430f5310.h中有如下定义:
/*************************************************************
* RAM Control Module
*************************************************************/
#define __MSP430_HAS_RC__ /* Definition to show that Module is available */
#define __MSP430_BASEADDRESS_RC__ 0x0158
#define RCCTL0_ (0x0158u) /* Ram Controller Control Register */
DEFCW( RCCTL0 , RCCTL0_)
/* RCCTL0 Control Bits */
#define RCRS0OFF (0x0001u) /* RAM Controller RAM Sector 0 Off */
#define RCRS1OFF (0x0002u) /* RAM Controller RAM Sector 1 Off */
#define RCRS2OFF (0x0004u) /* RAM Controller RAM Sector 2 Off */
#define RCRS3OFF (0x0008u) /* RAM Controller RAM Sector 3 Off */
#define RCRS7OFF (0x0080u) /* RAM Controller RAM Sector 7 (USB) Off */
/* RCCTL0 Control Bits */
#define RCRS0OFF_L (0x0001u) /* RAM Controller RAM Sector 0 Off */
#define RCRS1OFF_L (0x0002u) /* RAM Controller RAM Sector 1 Off */
#define RCRS2OFF_L (0x0004u) /* RAM Controller RAM Sector 2 Off */
#define RCRS3OFF_L (0x0008u) /* RAM Controller RAM Sector 3 Off */
#define RCRS7OFF_L (0x0080u) /* RAM Controller RAM Sector 7 (USB) Off */
/* RCCTL0 Control Bits */
#define RCKEY (0x5A00u)
直接用指针将数据放入指定地址或读出数据? |
|