Texas Instruments MSP430 manual FN0024/ AccessSFR

Page 34

PRGS430.DLL—Description

DEVICE_MEMDEF(0x07)

Fills the definition of a memory definition (index passed by InfoIdx) into lpBuf.

DEVICE_MEMPROTECT_COUNT(0x08)

GetDeviceCfgInfo() returns the number of memory-protection definitions for the selected device; lpBuf and InfoIdx are ignored.

DEVICE_MEMPROTECT (0x09)

Fills the definition of a memory protection definition (index passed by InfoIdx) into lpBuf.

DEVICE_VCC(0x0A)

GetDeviceCfgInfo() returns the Vcc setting for selected device in mV; lpBuf and InfoIdx are ignored.

DEVICE_VPP(0x0B)

GetDeviceCfgInfo() returns the Vpp setting for selected device in mV; lpBuf and InfoIdx are ignored.

DEVICE_VFUSE(0x0C)

GetDeviceCfgInfo() returns the blow-fuse setting for the selected device; lpBuf and InfoIdx are ignored.

/FN0024/ AccessSFR

long int AccessSFR(LONG wAddr, void *IpData, LONG iFlags);

This function writes or reads data into the special function registers of the MSP430 device. (implemented in PRGS320.dll versions 1.05 and higher).

wAddr: SFR address that should be accessed. Allowed values: 0x0000−0x1FE (see the memory map of the corresponding device)

IpData: Pointer to the data to be written, or buffer which should receive the read data

Flags: The bits in Flags control the operation of AccessSFR()

iFlags:

SFR_READ (0x00)

SFR_Write (0x01)

Example: IFuncReturn = AccessSFR(long:0x0020, &IpData, 0)

2-22

Image 34
Contents User’s Guide Evaluation BOARD/KIT Important Notice EVM Warnings and Restrictions Page Read This First About This ManualFCC Warning Contents Figures TablesInstallation and Setup Installing the Software −1. ADT430 Program IconsInstalling the Hardware MSP−PRGS430Page Operation Software/Hardware Layers of the PRGS430 Environment Basic Procedure Programming MSP430 Devices With the GUIDescription of the MSP-PRGS430 GUI −1. MSP430 Function Buttons and DescriptionsOperation2-5 Error Messages −2. Communication Error Box−5. Data Error −2. Error Messages Content of PRGS430.ini File Use of a Project.ini FileCommand Line Options General DefinitionsExample Return Values/Error Codes in .ini File FN0002/ ReleaseCom PRGS430.DLL-DescriptionFN0001/ InitCom FN0003/ SetDeviceTypeFN0005/ ReleaseTarget FN0004/ InitTargetFN0006/ Erase FN0007/ EraseFile FN0008/ EraseCheckFN00010/ PatternCheck FN0009/ EraseCheckFileFN00011/ VerifyData FN00013/ VerifyFileRange FN00012/ VerifyFileFN0014/ ProgramData FN0015/ ProgramFile PgmwitherasecheckFN0017/ SetVcc FN0016/ BlowFuseFN0018/ ReadOutData FN0020/ Reset FN0019/ ReadOutFileFN0022/ SetNotificationWnd FN0023/ GetDeviceCfgInfoFN0024/ AccessSFR Return Values/Error Codes From PRGS430.DLL Status Return Value CommentPage Hardware Specifications Basic HintsProgramming Adapter Target Connector Signals −1 -Pin Sub-D at Programming Adapter−2. Target Connector Signal Functions MSP-PRGS430 Circuit Diagrams Location of Components − MSP-PRGS430Interconnection of MSP-PRGS430 to OTP/EPROM-Based Interconnection of MSP−PRGS430 to Flash-Based MSP430 Devices Page Hex Object Format Intel-Hex Object Format Figure A−1. Intel-Hex Object FormatTI-TXT File Format Page Schematics Page Schematics B-3 Page Important Notice
Related manuals
Manual 138 pages 30.24 Kb