This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430FR6047: is this allowed?

Part Number: MSP430FR6047
Other Parts Discussed in Thread: THS3095, EVM430-FR6043

Hi, in the watersample, specificallly "FR6047_USSWLib_template_example" which I used to start from, in the file:

ussSWLib/source/ussSwLibMeasurement.c line 518 we find

#if (USS_SEQUENCE_SELECTION == USS_CAPTURE_SEQUENCE_SELECTION_CH0_CH1)
switchToChannel(channel);
if(config->measurementConfig->sequenceSelection == USS_CAPTURE_SEQUENCE_SELECTION_CH0_CH1)
{
code = USS_commonTriggerSingleCapture(config,USS_CAPTURE_SEQUENCE_SELECTION_CH0,config->measurementConfig->restartLowPowerCaptureCount);
if(code == USS_message_code_no_error)
{
switchReverseChannel(channel);
code = USS_commonTriggerSingleCapture(config,USS_CAPTURE_SEQUENCE_SELECTION_CH1,0);
}

// Update SAPH Configuration
GENERIC_SAPH_ASCTL1 = config->measurementConfig->eofSequenceState;
GENERIC_SAPH_ASCTL0 = TRIGSEL_1 + PNGCNT0;
}
#endif

The red/orange switch/switchReverse(channel) to UPS resp. DNS, for setting the OpAmps(Rx/Tx) from the same pair of transducers.

Or is the general idea meant to be done otherwise??

rgds,

Laurent

  • Hi Laurent,

    The intent is that with a single call to USS_startLowPowerUltrasonicCapture(), the measurement sequence first does the CH0 excitation (DNS) followed by the CH1 excitation (UPS). So the excitation is done first on the transducer connected to CH0 and next on the transducer connected to CH1.

    Laurent van Poppelen69 said:

    The red/orange switch/switchReverse(channel) to UPS resp. DNS, for setting the OpAmps(Rx/Tx) from the same pair of transducers.

    Or is the general idea meant to be done otherwise??

    I did not understand this query. Are you asking about the internal OpAmp on the RX path? If so, in the first excitation on the transducer on CH0, the OpAmp is in the path of the RX transducer connected to CH1. Subsequently, when the transducer connected to CH1 is excited, the OpAmp is in the path of the transducer connected to CH0. The connections are all set as part of USS_commonTriggerSingleCapture().

    Hope that clarifies.

    Srinivas

  • Hi Srinivas, thanks for reply.

    with OpAmp I ment our external amplifiers, conform the TIDAS-01486(THS3095)!

    No, I did notice the code for 'USSSWLIB_ENABLE_EXTERNAL_CIRCUITRY_CONTROL' in USS_Lib.c and, thats what my question was about. I guess I need to adapt this particular code. Changing the pin settings in 'USSLIB_HAL_configGPIOForCapture(USSLIB_HAL_capture_mode mode)'. My first guess is that I need to keep the code like in:

    With USSSWLIB_ENABLE_EXTERNAL_CIRCUITRY_CONTROL = false!

    function: USS_commonTriggerSingleCapture()

    // Configure SAPH for channel 0/1 single capture
    switch(captureChannel)
    {
    case USS_CAPTURE_SEQUENCE_SELECTION_CH0:
    #if(USSSWLIB_ENABLE_EXTERNAL_CIRCUITRY_CONTROL == false)
    GENERIC_SAPH_ASCTL0 = (TRIGSEL_1 | ASQTEN);
    GENERIC_SAPH_BCTL |= (CH0EBSW | PGABSW);
    GENERIC_SAPH_ICTL0 |= (MUXSEL_1);
    #endif

    and add:

    // Configure signal paths
    USSLIB_HAL_configGPIOForCapture(USSLIB_HAL_capture_mode_ups);

    as well as:

    // Configure signal paths
    USSLIB_HAL_configGPIOForCapture(USSLIB_HAL_capture_mode_dns);

    in the switch statement!

    Correct?

    rgds,

    Laurent

    rgds,

    Laurent

  • Hi Laurent,

    That portion of the code was developed with the EVM430-FR6043 (www.ti.com/.../EVM430-FR6043) in mind.

    You can see that in the #if (__EVM430_ID__ == 0x43) usage where it gets called.

    #if ((__EVM430_ID__ == 0x43) && (defined(__AFE_EXT_3v3__) || defined(__AFE_EXT_5v0__)))

    With that EVM, the receive is always on the same channel, CH0 for both UPS & DNS.

    But if you are reusing that concept in your solution, you should be able to reuse that portion of the code in that manner.

    Srinivas

**Attention** This is a public forum