Quantcast
Channel: Forums - Recent Threads
Viewing all 262198 articles
Browse latest View live

ADS1248: k-type thermocouple programming/parameter

$
0
0

Part Number:ADS1248

Hello,

we are working on an application given the following design:

The general spi communication is working (verified with oscilloscope). We can write/read registers and get data results via RDATA command.

We need support for

a) finding the correct register settings given the attached schematics

b) converting the digital result back to thermocouple voltage.

To a) Currently we tried the following register settings for reading the first channel

            SetRegisterValue(MUX0, MUX_SP2_AIN0 | MUX_SN2_AIN1);    // channel 1
            SetRegisterValue(MUX1, REFSELT1_ON| VREFCON1_ON);        // ADS Reference on Intern, Internal Reference on
            SetRegisterValue(IDAC0, IMAG2_1000);                    // IDCA0 = 1000µA
            SetRegisterValue(IDAC1, I1DIR_AIN1);                    // IDAC1 = AIN1
            SetRegisterValue(VBIAS, VBIAS_RESET);                   // no bias
            SetRegisterValue(SYS0, PGA2_32);                        // pga 32 default sps 5

To b) From data sheet topic 9.5.2 Data Format 1 LSB = (2 × VREF / Gain) / 2^24 = +FS / 2^23 Is the following equation the correct way to get the thermocouple voltage?

raw_value = RDATA_RESULT();

lsb = (2 * 2.048 / 32) / 16777216;

voltage =  raw_value * lsb

Thank you for any help on this.

Greetings,

Daniel


DRV8320: Using the DRV8320 for a four a BLDC four quadrant control

$
0
0

Part Number:DRV8320

Hello All

I currently use an Allegro A4935 for a low voltage four quadrant control by using the same PWM signal for the PWMH and the PWML pins. This works well, however I now need to put a design together for a four quadrant control that works up to 54.6V (48V lithium battery). Does anyone have any idea;s how I can get the four quadrant working on the DRV8320 or similar that has a higher Vm?

Thanks

CCS/TMS320F28335: How can load a program into the flash of "TMS320F28335'' to make it work standalone?

$
0
0

Part Number:TMS320F28335

Tool/software: Code Composer Studio

Hello,

I am working with  the example project "Example_2833xAdcSoc" for the dsp ''TMS320F28335'' .  I need to load the program into the flash so that it can work standalone. How can I do that?

Mohammad Arifur Rahman 

CC2640R2F: GPIO Pin Capacitance

$
0
0

Part Number:CC2640R2F

Hi Team,

I cannot seem to locate a specification in the datasheet of the CC2640R2F for the GPIO pin capacitance.

Do we have a spec for this?

Regards,

Andy

BQ34Z100-G1: Windows XP error loading BQ Studio

$
0
0

Part Number:BQ34Z100-G1

Hello,

I am loading BQ Studio 1.3.54.1 (sluc525u) onto a Windows XP PC.  I'm getting a Windows error during software installation.  The PC is running XP with SP 2.  I've attached a picture of the Windows error.

Thanks,

...kevin

EK-TM4C1294XL: EK-TM4C1294XL

$
0
0

Part Number:EK-TM4C1294XL

I ran the hibernate example on the EK-TM4C1294XL board. I also configure all the pins to avoid any leakage current. I got ~350uA when I measure the current on JP2. When I reviewed the processor data sheet, it said the hibernation current can be as low as 8uA with the RTC ON. Is there any other things that I need to do to achieve the 8uA hibernation current.

Thanks

TM4C USB Device - Read and Write data to host

$
0
0

Hello! 

I have modified the usb_dev_bulk example a bit, I can read the data which is coming from the host (PC) but I can't send my "status codes" back. Only the very firs letter which is '1' goes back to the host.

static uint32_t
EchoNewDataToHost(tUSBDBulkDevice *psDevice, uint8_t *pui8Data,
                  uint32_t ui32NumBytes)
{
    uint32_t ui32Loop, ui32Space, ui32Count;
    uint32_t ui32ReadIndex;
    uint32_t ui32WriteIndex;
    uint32_t valueL;
    uint32_t valueR;
    uint32_t valueC;
    tUSBRingBufObject sTxRing;

    //
    // Get the current buffer information to allow us to write directly to
    // the transmit buffer (we already have enough information from the
    // parameters to access the receive buffer directly).
    //
    USBBufferInfoGet(&g_sTxBuffer, &sTxRing);

    //
    // How much space is there in the transmit buffer?
    //
    ui32Space = USBBufferSpaceAvailable(&g_sTxBuffer);

    //
    // How many characters can we process this time round?
    //
    ui32Loop = (ui32Space < ui32NumBytes) ? ui32Space : ui32NumBytes;
    ui32Count = ui32Loop;

    //
    // Update our receive counter.
    //
    g_ui32RxCount += ui32NumBytes;

    //
    // Dump a debug message.
    //
    DEBUG_PRINT("Received %d bytes\n", ui32NumBytes);

    //
    // Set up to process the characters by directly accessing the USB buffers.
    //
    ui32ReadIndex = (uint32_t)(pui8Data - g_pui8USBRxBuffer);
    ui32WriteIndex = sTxRing.ui32WriteIndex;

    while(ui32Loop)
    {
    	UARTprintf("\n" );

        //
        // LEFT SIDE USB MSG
        //
        if((g_pui8USBRxBuffer[ui32ReadIndex] == 'L'))
        {
            ui32ReadIndex++;
            ui32ReadIndex = (ui32ReadIndex == BULK_BUFFER_SIZE) ?
                            0 : ui32ReadIndex;
            GPIOPinWrite(GPIO_PORTF_BASE, GPIO_PIN_3, GPIO_PIN_3);
            UARTprintf("LEFT" );
            char buffer[3];
            uint32_t i;
            for(i = 0; i<3; i++){
            	buffer[i] = g_pui8USBRxBuffer[ui32ReadIndex];
                ui32ReadIndex++;
                ui32ReadIndex = (ui32ReadIndex == BULK_BUFFER_SIZE) ?
                                0 : ui32ReadIndex;
            }
            valueL = atoi((char *)buffer);
            UARTprintf("\n %i", valueL);
            sprintf(g_pui8USBTxBuffer, "100");



        }

        //
        // RGITH SIDE USB MSG
        //
        else if((g_pui8USBRxBuffer[ui32ReadIndex] == 'R'))
        {
            ui32ReadIndex++;
            ui32ReadIndex = (ui32ReadIndex == BULK_BUFFER_SIZE) ?
                            0 : ui32ReadIndex;
            UARTprintf(" RIGHT " );
            char buffer[3];
            uint32_t i;
            for(i = 0; i<3; i++){
            	buffer[i] = g_pui8USBRxBuffer[ui32ReadIndex];
                ui32ReadIndex++;
                ui32ReadIndex = (ui32ReadIndex == BULK_BUFFER_SIZE) ?
                                0 : ui32ReadIndex;
            }
            valueR = atoi((char *)buffer);
            UARTprintf("\n %i", valueR);
    		sprintf(g_pui8USBTxBuffer, "100");

        }



        ui32Loop--;
    }


    //
    // We've processed the data in place so now send the processed data
    // back to the host.
    //
    USBBufferDataWritten(&g_sTxBuffer, sizeof(g_pui8USBTxBuffer[BULK_BUFFER_SIZE]));

    DEBUG_PRINT("Wrote %d bytes\n", ui32Count);

    //
    // We processed as much data as we can directly from the receive buffer so
    // we need to return the number of bytes to allow the lower layer to
    // update its read pointer appropriately.
    //
    return(ui32Count);
}

I you could tell me what's wrong that would be really nice, I have never used USB communication before, I have always used UART. So in the next step I would like to get help with creating a function like "UARTPrintln" which can be called with a simple parameter which would be the message itself.  

CCS/MSP430F5529: Output .DLL file from .C file - CCS 7.1.0.

$
0
0

Part Number:MSP430F5529

Tool/software: Code Composer Studio

Howdy,

I am currently trying to output a dynamic library (.dll) from a .c file in CCS 7.1.0. I am using a wiki article as a reference to do this but I'm a bit confused on some of the steps. Specifically in the "Building a Dynamic Library" and "A Simple Example - hello.dll":

 The part I am confused about is circled below. I have added the __declspec(dllexport) <function> line into my .c file but I am not sure where or how to do this. In the section before "A Simple Example..." it says to do this in "the linker command line (or in a linker command file)" but I am not sure where that is.

Thanks,

Kevin


TMS3705: mechanical differences between DDRQ1 and A1DRG4 variants

$
0
0

Part Number:TMS3705

Hi team,

I have a customer who is using the TMS3705A1DRG4 today in a high temp application, and they are looking to requalify their design with the TMS3705DDRQ1. 

Can you guys provide any info about functional and mechanical differences between the parts? Feel free to email me. 

Thanks,

Brian

CCS/TM4C123GH6PM: TM4C Pimux Tool

$
0
0

Part Number:TM4C123GH6PM

Tool/software: Code Composer Studio

Is there any way to get the cloud pinmux tool, or the newer versions of the downloadable pinmux tool to show an output like the Tiva Pinmux Tool v1?  V1 of the tool had that spreadsheet like way to show all the pins with all their possible mux modes. It was perfect for planning out a project on the TM4C, as you had all the information you needed right there. The new display format for the pinmux tool is probably better for doing board layouts. The older format was better for planning a project, or even determining if that particular package was going to work for a particular project. It would be nice to be able to have either view. 

CCS/MSP430F2618: Debugging with MSP-FET Flash Emulator gives "Error initializing emulator: No USB FET was found" on CCSv5. Flash Emulator works fine with CCSv7, Same project.

$
0
0

Part Number:MSP430F2618

Tool/software: Code Composer Studio

Hi,

Target: MSP430F2618

OS: Windows10

Debugger: MSP-FET Flash Emulator

CCS version 5

I am trying to debug my project on CCSv5 and it returns MSP430: Error initilizing emulator: No USB FET was found error. 

After reading some threads on TI forum I tried debugging the same project on CCSv7 and Flash Emulator runs fine and I am able to debug the project. Also it updated the Flash Emulator Firmware before running with CCSv7.

Out of the need, i must make this project work on CCSv5 and it keeps giving me this error.

Below are the few debugging steps i went through in order to make my Emulator work with CCSv5. 

1) Uninstall and auto-install Device drivers.

2) Went through MSP-FET Flash Emulator debugging steps found in some document

3) Checked for the loose daughter board connection with the target board.

4) I also see MSP Application UART1 and MSP Debug Interface in my device manager and the COM Ports are not being shared with any other device.

etc etc.

I also read in one of the similar problem with MSP430UIF is there are different DLL versions for CCSv4 and CCSv5. and they dont work with any other CCS other than their respective CCS Versions. I also tried to look if I could downgrade the firmware for my Emulator device but no luck. I could only find steps to downgrade MSP430UIF from V3 to v2.

Can anyone please help me resolve this issue.

Thanks

Rishit

Linux/TMP108: TMP108/TMP112 Linux Drivers

LM1117: output capacitor type

$
0
0

Part Number:LM1117

Hello team,

LM1117 and some of other LDOs is recommending non-ceramic capacitor as output capacitor. Is it only due to circuit stability? If we place dummy resistor, can we use ceramic capacitor without any problem?

Best regards,
Taketo Sato

CC1310: Whitelist and callbacks

$
0
0

Part Number:CC1310

I'm using the 15.4 Collector and Sensor example (simplelink_cc13x0_sdk_1_40_00_10).

I have multiple Sensors with with the same PAN_ID.  I would like the collector to check the MAC address and only allow the ones on a whitelist to join the network.

I want to pass the MAC with a whitelist during configuration.  I need this on the Collector code.

TINA/Spice/TPS40210-Q1: SEPIC Simulation

$
0
0

Part Number:TPS40210-Q1

Tool/software:TINA-TI or Spice Models

Hi Team,

I am trying to simulate the TPS40210-Q1 in a SEPIC topology, however, even when running a simple DC analysis, it comes back with "Operating Point not found"

(Please visit the site to view this file)

I built this circuit by closely following this SEPIC design: 

For the FET and diode, I created my own symbols using these macros:

(Please visit the site to view this file)

(Please visit the site to view this file)

Please let me know if there is anyway to get the circuit working.

Thank you,

Jared


LMK04828: ADC14x250EVM

$
0
0

Part Number:LMK04828

I am working with the ADC14x250 and associated configuration GUI tool (TSW16DX370EVM GUI) to study the configuration, operation and performance of the LMK04828 JESD204B clock conditioner. The GUI allows me to select one of 3 pre-defined configurations to load into the LMK04828. My  question pertains to "configuration 2" which is denoted "DEFAULT" on the soft button appearing in the MACRO CONFIG tab of the LMK04828 pane. I made all hardware modifications required as per the instructions in Users Guide (SLAU625) paragraph 5.1.1)  . I observed (with an o'scope) a 245.76 Mhz signal being present at the ADC regardless of the presence of an external clock connected to J7! (I.e. turning the signal generator on or off had no effect on the clock going to the ADC) I would not expect this to occur, I would expect that, given the description of "configuration 2"  the ADC clock to have some dependency on the external reference, and should go away or otherwise show signs of degradation when the ext ref is altered or removed.  There are no oscillators onboard my EVM, all three Y1,2,and Y3 did not come installed.  Please help me understand why this is occurring, I spent a lot of time using all tools available (including codeloader) but still don't understand why this is happening.

Thank you!

John

TPS54618: VSENSE VOLTAGE MEASURES .91 VOLTS

$
0
0

Part Number:TPS54618

Powering up a new CCA our 3.3 volt output is measuring 3.51vdc. We proceeded to measure the Vsense and it was .91vdc, it should be .799vdc.

Design parameters Vin 5vdc, Vout 3.3 at 2 amps

 What would be causing this problem?

CC3100: SPI Flash Production Programming

$
0
0

Part Number:CC3100

Please advise on customer question regarding CC3100 SPI flash production programming.

Could someone help me figure out some final pre-production steps to get a new product ready with regards to the SPI flash used for the CC3100?

I’ve found http://processors.wiki.ti.com/index.php/CC3100_Production_Line_Guide#Programming_the_CC3100_QFN_in_the_Production_Line which refers to making a Gang Image for the SPI flash which the CC3100 will translate into a “normal” image upon first power up.  That seems like my best case that is documented.  I don’t want to use the Boosterpack as a factory tool.

All we actually need on the SPI flash is a service pack.  The only function for the CC3100 in the product is to passively listen for SSID beacons, record their signal strength, and then use that in our system to aim our antenna in the best orientation.  Hence, we aren’t serving any web pages or doing any fancy configurations, and we don’t even need a unique MAC because we’ll never transmit.

Therefore, could I just program one SPI flash with Uniflash, and then clone that one SPI flash image for all other devices?  As-is, each time I format and apply a service pack to a chip, it is encrypted differently, so I can’t verify that I have a “stable” image.  I also don’t know where the decryption key is stored, so how does it decrypt?  If the key is also on the SPI flash, what good is that?

I could in theory use the Gang Image, but despite having the opportunity to do so in a test fixture, I don’t like the variability of the CC3100 having to reorganize memory upon first startup – I’d like it to just “be ready”.  I’ve also seen the resulting data in the memory be different from chip-to-chip after using the same Gang Image, so again, I can’t verify that I have a “stable” image.

Thanks,
Mark

CCS/MSP-EXP430F5529LP: CCS/MSP-EXP430F5529LP

$
0
0

Part Number:MSP-EXP430F5529LP

Tool/software: Code Composer Studio

I received the Launchpad mentioned above. I'm using CCS ver6.2. I used TI Resource Explorer to load and compile a few of the Example Programs. Everything worked well. Then I wanted to load back the original code that came preloaded in the board. I used Resource Explorer Classic (previously had been using Resource Explorer) and I tried to load and compile OutOf Box_EmulStorageKeyboard or OutOf Box_EmulStorageKeyboard_16K. None of the programs compiled successfuly. Other than loading the examples, I did not introduce any change. I followed the 4 steps suggested by the tool.  How can I get the original code back into the board?

Regards

AMC1200: with Breakout board, RC filter for DC operations, Humidity and related questions

$
0
0

Part Number:AMC1200

Hello,

I am building a digital current sensing solution, for which i am using AMC1200 for amplification of low voltages of kelvin shunt resistor and reading them via MSP430FR5994 differential ADC. Below is my current schematic around AMC1200.

Please note that, all components of this schematic are surface mount, soldered on breakout board. Since rest of my design is through hole, i have converted this design to through hole with the use of DIP breakout board.

I have few questions regarding this design.

1. Is it safe to use the breakout board approach? Will it affect the accuracy or performance of AMC1200? I am placing capacitors and resistors as close to AMC1200 as possible.

2. Since operation of system is purely DC, i plan to use 15Ohm and 10uF input RC filter, so that i get approx 1KHz cutoff frequency. ( fc = 1/(2*pi*R*C) ). Are my calculations correct for filtering AC noise?

3. I have not used RC filter on output side. But datasheet example designs (page # 15,16) have output RC filters also.

Is it necessary to use output RC filter? My microcontroller is less than 80 mm far from AMC1200 breakout board. If yes, then what values of output filter, and how close to microcontroller?

4. I had bought this AMC1200 from mouser.com, and its casing had some info written over it, such as number of hours before which IC should be soldered after opening the case. And some information related to humidity restrictions also. I have opened the case around 4 months back. Does that render my IC useless, as the case mentioned soldering IC within a week. ?

5. I am using same +5V source for high side and low side (converted to +3.3V via AMS1117) supplies, and GND1, GND2 are also taken from same ground plane. Is it okay to do that? I don't need isolation as my load (high power LEDs) and other circuit probably won't generate fluctuations.

Thank you for your time and help in answering my questions.

Regards,
Hard Patel

Viewing all 262198 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>