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

MSP430FR2355: Why is my application restarting?

$
0
0

Part Number: MSP430FR2355

So I have the main body of my software running in a loop. The loop keeps going for awhile. For this conversation it is pretty much an infinite loop. 

before the loop occurs its really just setting up TimerB, RTC, and GPIO pins. 

Once we hit the loop this is the flow

if usb connected AND !burst_cycle
          Enter menu mode
else if !usb connected AND burst_cycle
          disable burst_cycle
else if !burst_cycle
          prep 4 LPM
          if !usb connected AND lpm time hasn't been met
                    enter LPM
                    exit LPM
                    calculate time in LPM and add to system time
          wake up
          if usb connected AND !burst_cycle
                     restart at beginning of loop
prep for scan
scan for predetermined period of time or until !usb connected
end scan functionatlity
start at beginning of loop

and here is the actual code of the loop itself. 

while (localrecord < 0xFFFF)  //FFFF is the last record possible on the disk
    {

        // checks to see if a USB cable is connected to the device, but not in terminal_debug.
        if ((P2IN & BIT4) && !BURST_CYCLE)
        {

            run_menu();

            continue;
        }
        else if( !(P2IN & BIT4) && BURST_CYCLE)
        {

            BURST_CYCLE = 0;
            continue;
        }
        // Normal operation when the USB cable is connected or disconnected, but has exited the main menu and not in terminal debug mode.
        else if (!BURST_CYCLE)
        {

            prep_4_sleep();

            while ( !(P2IN & BIT4) && (lpm_count < lpm_multiplier) )
            {

                enter_low_power_mode();
                calc_sys_time(lpm_period);
                lpm_count++;

            }

            lpm_count = 0;

            wake_up();

            delay_ms(500);

            if ((P2IN & BIT4) && !BURST_CYCLE)
                continue;

        }

        prep_scan();

        start_read = time2Sec();

        readFlag = 1;

        do
        {

            read_sensor();
            if( readFlag)
                readFlag = counter(start_read, READTIME);

            if( !(P2IN & BIT4) && (numOfComReads == 1) )
                break;

        }while (readFlag || (numOfComReads != 1) );

        end_scan();
    }

What I'm seeing is at random times the application itself is resetting. It will be running just fine and then it starts all over from the beginning of the Main method. 

Now I know that the software examples for LPM doesn't use a loop, rather it will enter LPM for the predetermined time, exit and the main menu restarts itself. It was predetermined, by someone not me, that they wanted to implement the software by utilizing a loop. Rather than the using the auto restart aspect of the chip. 

How do I keep the software from relaunching from the beginning of the main method? 

Keep in mind, I thought that it was exciting the while loop, so I threw a break point outside of the while loop and its never tripped. 

Now that I think of it, I'm pretty sure that its not restarting from the beginning of the Main Method rather reloading the entire software package. Am I correct on that?


SN74LS139A: Output States without Power

$
0
0

Part Number: SN74LS139A

Hello,

My customer is looking at the output of the SN54LS139A when there is no VCC (or VCC is below ON threshold) -

  1. Do the outputs operate as high impedance or do they tie to VCC or GND?
  2. Is there any measurable leakage current through the outputs to either VCC or GND?

Thanks!
Reed

BQ76200: can't turn on DSG output of bq76200

$
0
0

Part Number: BQ76200

Hi all,

I’m having issues with the bq76200 in my hardware. My minimal setup is:

Pins DSG and CHG are left open, not driving any MOSFET, to make debug easier.

PACK+ is 25VDC, and voltage reaches pin 11 fine

BATT+ is 36VDC, and voltage reaches pin 2 fine.

RC filters to BAT and PACK pins are as specified by datasheet, using X7R 50V ceramic caps.

CP_EN is 3V, and CP cap has a voltage of 10.3VDC when CHG_EN and DSG_EN are 0.

CP Cap is 2.2uF 35V ceramic, very close to pins 1 and 2.

With CHG_EN and DCHG_EN both in 0, CHG pin copies BAT, and DCHG pin copies PACK.

My first concern up to this point is, why would I have a CP voltage of only 10.3V (almost in the UV limit of 9V), and not something more similar to 12 or 14VDC?

For the test, PMON_EN and PCHG_EN are driven low.

When I drive high CHG_EN (with 3V), leaving DCHG_EN low, CHG pin goes almost to BAT + Cap CP voltage, and voltage across CP cap stays in 10.3V. I guess this is fine, as it’s more than enough to turn on my unconnected MOSFETs.

When I drive high DCHG_EN (with 3V, leaving CHG_EN low), voltage across CP cap drops to 9.5V, and the pin DSG goes to only 28VDC, 3V over PACK pin.

When I drive both pins CHG_EN and DCHG_EN high, CHG pin stays in BAT voltage and DCHG pin goes to PACK voltage + 1.5V, and CP cap voltage is at 9.5V

For my understanding of the datasheet, I’m having under-voltage detection reading over the CP cap voltage in the bq76200 when driving high DSG_EN pin, but i’m not sure. Even if this is happening, I don’t understand why, as the CP cap value is fine (pins are not driving anything), and it’s well positioned in the layout.

I changed the bq76200 just in case it was faulty, but the problem persists. I still read the 2.2uF across the cap, so the cap is not damaged.

Please, any help will be much appreciated.

Thanks very much,

Sebastian

TMS320F280049: Could OTP and flash contents be programmed togeter?

$
0
0

Part Number: TMS320F280049

Hi expert,

Could OTP and flash contents be programmed togeter througha single hex our binary file? Do we need any special procedure?

Thanks

Sheldon

CC2650: Data transfer between main CPU(ARM cortexM3) and RF cor(ARM cortexM0) in cc2650

$
0
0

Part Number: CC2650

Hi,

How can i blink LED in cc2650 (main CPU),when i receive particular command from BLE. Give some ideas data transfer between main cpu and RF core in cc2650.

ADS8688A: Large error exist in DC signal acquire, when connect the 2nd order filter of ADS8688A EVM before ADC input

$
0
0

Part Number: ADS8688A

Dear team,

I am testing our ADS8688A EVM and my input signal is a DC voltage from 0V to 5V.

Use the input range of 0~5.12V,

connect the OPA2209 filter between input DC signal and ADC input pin. then the ADC output error is extremely larger: 2V DC Vin, ADC output 1.698V, as shown in following picture.

Here is some test results during debug.

The voltage in A0+ of J25 is 2V DC, but voltage in J8 pin is 1.69V, so the ADC input pin voltage is 1.69V.

So I think this error between 2V and 1.69V ADC output is come from OPA2209 circuit, but this is only a 2nd order LPF.

Can you give me some help on this issue? Thank you!

Best regards

Yunjing

Large error exist in DC signal acquire, when connect the 2nd order filter of ADS8688A EVM before ADC input

$
0
0

Part Number: ADS8688A

yDear team,

I am testing our ADS8688A EVM and my input signal is a DC voltage from 0V to 5V.

Use the input range of 0~5.12V,

connect the OPA2209 filter between input DC signal and ADC input pin. then the ADC output error is extremely larger: 2V DC Vin, ADC output 1.698V, as shown in following picture.

Here is some test results during debug.

The voltage in A0+ of J25 is 2V DC, but voltage in J8 pin is 1.69V, so the ADC input pin voltage is 1.69V.

So I think this error between 2V and 1.69V ADC output is come from OPA2209 circuit, but this is only a 2nd order LPF.

Can you give me some help on this issue? Thank you!

Best regards

Yunjing

The PRU Linux loader source code and example codes (pru_sw) for OMAP-L138

$
0
0

HI,

I am looking for user space library (PRUSSDRV) for loading and interacting with PRU in user space for OMAP-L138.  I am also looking for examples of PRU assembly code and associated code to build, load, and test the PRU code for OMAP-L138. 

Thank you.


BQ35100: How does the BQ35100 measure the Li-SOCl2 primary battery's capacity

$
0
0

Part Number: BQ35100

Hi

BQ35100 datasheet shows it can provide gas gauging and  don't need forced discharge,I want know  How does the  BQ35100 measure the Li-SOCl2 primary battery's capacity.

DLP9500: How to set the fixed frequency for DMD to display patterns?

$
0
0

Part Number: DLP9500

Hi, I am wondering how to set the fixed frequency for the DMD to display the patterns, for example, 100 Hz, which is 100 images per second. And if it is achievable, how do we output the signal that the DMD modulation (the control signal with fixed frequency)? Thank you very much!

LMK04828: Fpd of PLL1 limit

$
0
0

Part Number: LMK04828

Hi All,

In the LMK04828 design, we tried to accommodate multiple input ref and feedback frequencies and had the Fpd of PLL1 set to 10KHz. But we're having trouble to get PLL1 in lock, the same loop filter setting can get PLL1 in lock if Fpd changed to ~1MHz.

The calculation of loop filter of PLL1 from "PLLatinum SIM" tool was attached, the TICO Pro file also attached.

Could you help to suggest a stable loop filter setting of our case? We need to make decision if the Fpd of PLL1 = 10KHz is doable.

Thanks,

Jin

TPS74801: TPS74801 Output too high

$
0
0

Part Number: TPS74801

Hi All,

I have designed a PCB using four TPS74801 regulators all running from a 5V input supply.  They produce four different output voltages: 1.2, 1.8, 2.5 and 3.3 using the recommended R1/R2 values and output filters shown in the data sheet.  Three of the regulator outputs are correct, e.g. within a few percent of their expected values.  The 1.8V output however is substantially too high sitting around 2.7V  I have measured two boards.  One board is 2.68 the other at 2.72 volts.  I have removed R1 and R2 from one of these regulator circuits and measured them to be the correct values:  3.57K and 2.87K.  The boards are properly cleaned, so flux leakage isn't the issue.

The 1.8V regulator powers a Cypress CX3 CPU, a FSA2466 multiplexer a S25FS128SA serial flash memory and an accelerometer MMA8652FC.  I don't see any reverse leakage paths that might be back-feeding the regulator.

Any thoughts most appreciated.

Thanks,

Scott

TPS65400: VDDD Regulator Current Capability

$
0
0

Part Number: TPS65400

Hello,

We are working on a design using the TPS65400.

Could you please let us know the current capability of VDDD 3.3V VDDD regulator?

Thank you, Keith

BQ24610EVM: BQ24610EVM MOS Q1 and Q2 are very hot

$
0
0

Part Number: BQ24610EVM

Hi

I use BQ24610EVM found :supply 12V DC,change the Charge current from 3A to 8A,the Voltage leave(PIN3 ---GND) is different ,and the MOS  Q1 and Q2 are very hot when  BQ24610EVM works at  the high Charge current condition,such as 8A. I want to know how to adjust the PIN3 voltage to make it lower to get the MOS  Q1 and Q2 fully  turn on.

LAUNCHXL-CC2640R2: ADCbuf not configuring with multiple tasks

$
0
0

Part Number: LAUNCHXL-CC2640R2

I'm working on a code that right now uses a GPTimer to select a mux channel and then reads the output from the selected channel over UART. I have based the code so far off of the GPTimer and ADCBufContinuous examples but when I put the two examples together in the same project the ADCbuf fails to initialize convertion. I have searched in all the project files and driver documentation and cannot figure out why the ADCBuf_convert function fails when I start the code.

I literally took the adcBufContinuousSampling.c file from the ADCbuf example and copied its parts into the appropriate sections in my main.c file. Was my approach too basic? Does this process miss some step/definition/file and I just didn't catch it?

 Below is my project file. Any help is appreciated.

(Please visit the site to view this file)


TIDA-01623: Simplify the design

$
0
0

Part Number: TIDA-01623

Hi,

I was wondering if there was a way to simplify the design for the TIDA-01623 reference design. I want to remove the USB component and have the power be directly connected to a gateway. How many of the components are only needed so the power can be properly converted to USB-C and can be removed since I do not want that functionality?

Thanks

BQ24070: BQ2407x device selection and battery selection

$
0
0

Part Number: BQ24070

Hello,

I would like to design a project with the BQ2407x. The problem is I have never done anything like it. 

My main question is, which of the devices do I choose and what battery can I use with it?

Are there any Reference designs or projects or literature?

My application is a MSP430 running in very low power. The system is usually supposed to run from a USB adapter and the BQ circuit should work as a sort of UPS which can run for several days (or years I guess).

Any tips for this?

Thank you!

Best regards

DSD1792A: DSD1792A Decoupling Cap

$
0
0

Part Number: DSD1792A

Hi Team,

The typical application of DSD1792A is shown below with two 47uF decoupling caps on the VcomL and VcomR lines. How was the value of 47uF calculated and what would be the effect if the value of these caps was drastically decreased to 0.47uF? Is there a part number for a suggested cap to be used here?

Are these caps used for supply decoupling or are they functioning like the input capacitor for a buck converter (Class D amp)?

Also do the left and right channels operate independently? What degree of isolation is there between the two channels?

Regards,


Garret

TPS7A83A: Difference between TPS7A83A and TPS7A8300

TAS2770: TAS2770 WAS ALWAYS SHUTDOWN MODE DUE TO TDM CLOCK ERROR

$
0
0

Part Number: TAS2770

Hi,

we have interfaced the tas2770 using eval kit with mtk processor.

we are changing the regs using i2c-tools

for dump:

i2cdump -f -y 2 0x41

for setting:

i2cset -f -y 2 0x41 0x00 0x00 (PAGE SET)

i2cset -f -y 2 0x41 0x02 0x0c (PWR_CTRL REG)

but if I read now the i2c dump values it is 0x02 reg is ox02 which is software shutdown

NOTE: the same thing is worked a few days back

OBSERVATIONS:

ALL the value are at reset state only except below

When we are setting the i2cset -f -y 2 0x41 0x00 0x00 then i observed that 0X24(INT_LTCH0) IS 0x04 which is --INT DUE TO TDM ERROR 

please, any idea why this happening ? and how to overcome it

Viewing all 262198 articles
Browse latest View live


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