metaonly interface ti.catalog.msp430.peripherals.oa.IOA

MSP430 General Purpose Operational Amplifier

XDCspec summary sourced in ti/catalog/msp430/peripherals/oa/IOA.xdc
metaonly interface IOA {  ...
instance:  ...
XDCspec declarations sourced in ti/catalog/msp430/peripherals/oa/IOA.xdc
 
metaonly interface IOA inherits IPeripheral {
module-wide constants & types
    enum OAADC0_t//  {
        OAADC0_OFF,
        OAADC0
    };
    enum OAADC1_t//  {
        OAADC1_OFF,
        OAADC1
    };
        OAFBR_0,
        OAFBR_1,
        OAFBR_2,
        OAFBR_3,
        OAFBR_4,
        OAFBR_5,
        OAFBR_6,
        OAFBR_7
    };
        OAFC_0,
        OAFC_1,
        OAFC_2,
        OAFC_3,
        OAFC_4,
        OAFC_5,
        OAFC_6,
        OAFC_7
    };
    enum OANEXT_t//  {
        OANEXT_OFF,
        OANEXT
    };
        OAN_0// OAxI0,
        OAN_1// OAxI1,
    };
    };
        OAP_0// OAxI0,
        OAP_1// OAxI1,
    };
    enum OARRIP_t//  {
        OARRIP_OFF,
        OARRIP
    };
    typedef String StringArray// [];
        String register;
        Bool regForceSet;
    };
    };
    };
module-wide functions
 
instance:
per-instance config parameters
per-instance functions
}
enum IOA.OAADC0_t
XDCspec declarations sourced in ti/catalog/msp430/peripherals/oa/IOA.xdc
enum OAADC0_t {
    OAADC0_OFF,
    OAADC0
};
enum IOA.OAADC1_t
XDCspec declarations sourced in ti/catalog/msp430/peripherals/oa/IOA.xdc
enum OAADC1_t {
    OAADC1_OFF,
    OAADC1
};
enum IOA.OAFBR_t

OAx feedback resistor select

XDCspec declarations sourced in ti/catalog/msp430/peripherals/oa/IOA.xdc
enum OAFBR_t {
    OAFBR_0,
    OAFBR_1,
    OAFBR_2,
    OAFBR_3,
    OAFBR_4,
    OAFBR_5,
    OAFBR_6,
    OAFBR_7
};
enum IOA.OAFC_t

OAx function control

XDCspec declarations sourced in ti/catalog/msp430/peripherals/oa/IOA.xdc
enum OAFC_t {
    OAFC_0,
    OAFC_1,
    OAFC_2,
    OAFC_3,
    OAFC_4,
    OAFC_5,
    OAFC_6,
    OAFC_7
};
enum IOA.OANEXT_t
XDCspec declarations sourced in ti/catalog/msp430/peripherals/oa/IOA.xdc
enum OANEXT_t {
    OANEXT_OFF,
    OANEXT
};
enum IOA.OAN_t

Inverting input selection

XDCspec declarations sourced in ti/catalog/msp430/peripherals/oa/IOA.xdc
enum OAN_t {
    OAN_0,
    // OAxI0
    OAN_1,
    // OAxI1
    OAN_2,
    // OAxIA (see the device-specific data sheet for connected signal)
    OAN_3
    // OAxIB (see the device-specific data sheet for connected signal)
};
enum IOA.OAPM_t

Slew rate select

XDCspec declarations sourced in ti/catalog/msp430/peripherals/oa/IOA.xdc
enum OAPM_t {
    OAPM_0,
    // OAx Power mode select: Off, output high Z
    OAPM_1,
    // OAx Power mode select: Slow
    OAPM_2,
    // OAx Power mode select: Medium
    OAPM_3
    // OAx Power mode select: Fast
};
enum IOA.OAP_t

Non-inverting input selection

XDCspec declarations sourced in ti/catalog/msp430/peripherals/oa/IOA.xdc
enum OAP_t {
    OAP_0,
    // OAxI0
    OAP_1,
    // OAxI1
    OAP_2,
    // OAxIA (see the device-specific data sheet for connected signal)
    OAP_3
    // OAxIB (see the device-specific data sheet for connected signal)
};
enum IOA.OARRIP_t
XDCspec declarations sourced in ti/catalog/msp430/peripherals/oa/IOA.xdc
enum OARRIP_t {
    OARRIP_OFF,
    OARRIP
};
typedef IOA.IPeripheralArray
XDCspec declarations sourced in ti/catalog/msp430/peripherals/oa/IOA.xdc
typedef IPeripheral.Instance IPeripheralArray[];
typedef IOA.StringArray
XDCspec declarations sourced in ti/catalog/msp430/peripherals/oa/IOA.xdc
typedef String StringArray[];
struct IOA.ForceSetDefaultRegister_t

Force Set Default Register

XDCspec declarations sourced in ti/catalog/msp430/peripherals/oa/IOA.xdc
metaonly struct ForceSetDefaultRegister_t {
    String register;
    Bool regForceSet;
};
DETAILS
Type to store if each register needs to be forced initialized even if the register is in default state.
SEE
struct IOA.OAxCTL0_t

Opamp Control Register 0 Definition

XDCspec declarations sourced in ti/catalog/msp430/peripherals/oa/IOA.xdc
metaonly struct OAxCTL0_t {
    IOA.OAN_t OAN;
    // Inverting input select. These bits select the input signal for the OA inverting input. 00 OAxI0 01 OAxI1 10 OAxIA (see the device-specific data sheet for connected signal) 11 OAxIB (see the device-specific data sheet for connected signal)
    IOA.OAP_t OAP;
    // Non-inverting input select. These bits select the input signal for the OA non-inverting input. 00 OAxI0 01 OA0I1 10 OAxIA (see the device-specific data sheet for connected signal) 11 OAxIB (see the device-specific data sheet for connected signal)
    IOA.OAPM_t OAPM;
    // Slew rate select. These bits select the slew rate vs. current consumption for the OA. 00 Off, output high Z 01 Slow 10 Medium 11 Fast
    IOA.OAADC0_t OAADC0;
    // OA output select. These bits, together with the OAFCx bits, control the routing of the OAx output when OAPMx > 0. When OAFCx = 0: 00 OAxOUT connected to external pins and ADC input A1, A3, or A5 01 OAxOUT connected to external pins and ADC input A12, A13, or A14 10 OAxOUT connected to external pins and ADC input A1, A3, or A5 11 OAxOUT connected to external pins and ADC input A12, A13, or A14 When OAFCx > 0: 00 OAxOUT used for internal routing only 01 OAxOUT connected to external pins and ADC input A12, A13, or A14 10 OAxOUT connected to external pins and ADC input A1, A3, or A5 11 OAxOUT connected internally to ADC input A12, A13 , or A14. External A12, A13, or A14 pin connections are disconnected from the ADC
    IOA.OAADC1_t OAADC1;
    // OA output select. These bits, together with the OAFCx bits, control the routing of the OAx output when OAPMx > 0. When OAFCx = 0: 00 OAxOUT connected to external pins and ADC input A1, A3, or A5 01 OAxOUT connected to external pins and ADC input A12, A13, or A14 10 OAxOUT connected to external pins and ADC input A1, A3, or A5 11 OAxOUT connected to external pins and ADC input A12, A13, or A14 When OAFCx > 0: 00 OAxOUT used for internal routing only 01 OAxOUT connected to external pins and ADC input A12, A13, or A14 10 OAxOUT connected to external pins and ADC input A1, A3, or A5 11 OAxOUT connected internally to ADC input A12, A13 , or A14. External A12, A13, or A14 pin connections are disconnected from the ADC
};
SEE
struct IOA.OAxCTL1_t

Opamp Control Register 1 Definition

XDCspec declarations sourced in ti/catalog/msp430/peripherals/oa/IOA.xdc
metaonly struct OAxCTL1_t {
    IOA.OAFBR_t OAFBR;
    // OAx feedback resistor select 000 Tap 0 - 0R/16R 001 Tap 1 - 4R/12R 010 Tap 2 - 8R/8R 011 Tap 3 - 10R/6R 100 Tap 4 - 12R/4R 101 Tap 5 - 13R/3R 110 Tap 6 - 14R/2R 111 Tap 7 - 15R/1R
    IOA.OAFC_t OAFC;
    // OAx function control. This bit selects the function of OAx 000 General purpose opamp 001 Unity gain buffer for three-opamp differential amplifier 010 Unity gain buffer 011 Comparator 100 Non-inverting PGA amplifier 101 Cascaded non-inverting PGA amplifier 110 Inverting PGA amplifier 111 Differential amplifier
    IOA.OANEXT_t OANEXT;
    // OAx inverting input externally available. This bit, when set, connects the inverting OAx input to the external pin when the integrated resistor network is used. 0 OAx inverting input not externally available 1 OAx inverting input externally available
    IOA.OARRIP_t OARRIP;
    // OAx reverse resistor connection in comparator mode 0 RTOP is connected to AVSS and RBOTTOM is connected to AVCC when OAFCx = 3 1 RTOP is connected to AVCC and RBOTTOM is connected to AVSS when OAFCx = 3
};
SEE
IOA.addPeripheralsMap()  // module-wide

Create a map of all peripherals available on a device

XDCspec declarations sourced in ti/catalog/msp430/peripherals/oa/IOA.xdc
Void addPeripheralsMap(ICpuDataSheet.Instance cds);
ARGUMENTS
cds — an xdc.platform.ICpuDataSheet instance
DETAILS
The config parameter peripherals is by default undefined in an xdc.platform.ICpuDataSheet instance. This function gathers all instance configuration parameters that are of the type xdc.platform.IPeripheral into the map peripherals.
IOA.getAll()  // module-wide

Find all peripherals of a certain type

XDCspec declarations sourced in ti/catalog/msp430/peripherals/oa/IOA.xdc
DETAILS
The type of the peripherals returned is defined by the type of the caller.
RETURNS
Returns an array of IPeripheral instances
IOA.getRegisters()  // module-wide

Find all registers defined by the peripheral

XDCspec declarations sourced in ti/catalog/msp430/peripherals/oa/IOA.xdc
IPeripheral.StringArray getRegisters();
RETURNS
Returns an array of register names
config IOA.name  // instance

Specific peripheral name given by the device

XDCspec declarations sourced in ti/catalog/msp430/peripherals/oa/IOA.xdc
config String name;
DETAILS
Devices can have more than one peripheral of the same type. In such cases, device data sheets give different names to the instances of a same peripheral. For example, the name for a timer module could be TimerA3, and a device that has two such timers can name them TA0 and TA1.
config IOA.owner  // instance

String specifying the entity that manages the peripheral

XDCspec declarations sourced in ti/catalog/msp430/peripherals/oa/IOA.xdc
config String owner;
IOA.getNumberOfOA()  // instance

Returns the number of available OA

XDCspec declarations sourced in ti/catalog/msp430/peripherals/oa/IOA.xdc
UChar getNumberOfOA();
generated on Tue, 24 Aug 2010 15:40:47 GMT