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

CCS/CC2650: after adding ADC_convert(), the device can't be found

$
0
0

Part Number:CC2650

Tool/software: Code Composer Studio

Hi, this is Edward.

I want to use the ADC function in cc2650 series. However, I got some problem when I use ADC_convert().

I'm sure that all the other code is correct because when I commit  ADC_convert(), my device can be found(scanned).

But once I add ADC_convert(), I even can't find it anymore.

Except for ADC_convert(), ADC_open( CC2650_LAUNCHXL_ADC0, &params) and ADC_Params_init(&params) are working properly.

 I have no idea why it can't work, can anyone help, appreciated.


CCS/TMS320F28335: How to calculate code execution time by CCS3.3

$
0
0

Part Number:TMS320F28335

Tool/software: Code Composer Studio

Hi,

My customer want to calculate code execution time by CCS3.3.  Not only in debug mode, but also in non-debug mode. 

Is there any material on this? Thanks a lot.

MSP430FR6047: Measure battery voltage using internal Vref and AVCC

$
0
0

Part Number:MSP430FR6047

Hi,

Would this procedure be a good way of measuring the battery voltage connected directly to a MSP430?

By setting AVCC as the measurement reference, and Vref as the measurment *target*, one can measure the input voltage (aka, battery voltage) with no additional parts and with very low energy cost. If STMs and even AVRs (ww1.microchip.com/.../00002447A.pdf) can do it, so should the MSP430? Most design I have seen so far uses a voltage divider with two resistors and an ADC port.

NOTE:
This will only work if the MSP430 is powered directly from the battery, since the AVCC pin will be (indirectly) measured, and it cannot differ from the DVCC voltage by more than 0.3V!

Thanks in advance!

CC2564C: 26M crystal recommend

$
0
0

Part Number:CC2564C

Hi,

(Please visit the site to view this file)

Attach 26MHz crystal datasheet. The frequency tolerance (±25ppm) is slightly over the datasheet required(20ppm). 

Due to my customer has produced PCB board, is there any other parts recommended with same package? Thanks a lot.

ADS8638EVM-PDK: schematics required

$
0
0

Part Number:ADS8638EVM-PDK

Hello, I have recently purchased a ADS8638EVM-PDK but the documentation does not include schematics (despite saying that it does!)

Please can someone send me the schematics for this board, and also for the baseboard that it plugs into (MMB0)?

thanks and regards, Nick

SN65DSI83-Q1: Device for MIPI to RGB bridge

$
0
0

Part Number:SN65DSI83-Q1

Hi Champs,

My customer needs device which translate MIPI signals to RGB666 (< 66MHz) format.

I would recommend SN65DSI83-Q1 + SN65VDS86A-Q1.

Could you provide alternative if there are single chip solution?

Best regards,

CCS/TDA2: Create an RTSC project in ccs, where the cfg file calls other .cfg files. How do you do this?

$
0
0

Part Number:TDA2

Tool/software: Code Composer Studio

Create an RTSC project in ccs, where the cfg file calls other .cfg files, how to do this. For example, there is xdc.loadCapsule("bspCommonBIOS.cfg") in captureVip.cfg; I put both cfg files in the project directory at the same time, or how do I need to deal with them?

INA213-Q1: Location of filter in INA213-Q1 to reduce noise

$
0
0

Part Number:INA213-Q1

Dear team,

My name is Oliver Kim, field application engineer who works for Hyundai in Korea.

My customer is now using INA213-Q1 to measure amount of current.

They want to increase the Rs (See the figure) value more than 10 ohm because of the noise problem, but you know, it's not recommended because of the sensing accuracy problem.

Speaking of my opinion, how about moving the filter location to the output of INA213-Q1 and increase RC value to reduce noise?

I know this will increase INA213-Q1 output impedance but they use OPA340NA to drive voltage to ADC input.

I believe OPA340NA solves INA213-Q1 high output impedance issue even if the filter is located in the back side. What do you think about this?


RTOS/TMS570LC4357: TMS570LC4357

$
0
0

Part Number:TMS570LC4357

Tool/software: TI-RTOS

Hello,

I have been into this problem for two weeks. Please I need help.

I want to run an encryption algorithm on TMS570LC. I generated code by Halcogen, I use CCS8.3 and XDC Tools.

The program is as follow:

#include "api.h"
#include <stdio.h>
#include <stdint.h>
#include <string.h>

#define MLEN 59

static unsigned long long overflowcnt = 0;





int main(void)
{
  unsigned char sk[CRYPTO_SECRETKEYBYTES];//CRYPTO_SECRETKEYBYTES = 2500
  unsigned char pk[CRYPTO_PUBLICKEYBYTES]; // CRYPTO_PUBLICKEYBYTES =4500
  unsigned char sm[MLEN+CRYPTO_BYTES];
  unsigned long long smlen;
  unsigned int t0, t1;


  // Key-pair generation

  crypto_sign_keypair(pk, sk);

The problem is that the program shows no results. When I suspend the execution I found the prog stack here in B DataEntry in the file HL_Sysintvec.asm which is generated by HalcoGen.

;-------------------------------------------------------------------------------
; interrupt vectors

resetEntry
        b   _c_int00
undefEntry
        b   undefEntry
svcEntry
        b   svcEntry
prefetchEntry
        b   prefetchEntry
dataEntry
        b   dataEntry
        b   phantomInterrupt
        ldr pc,[pc,#-0x1b0]
        ldr pc,[pc,#-0x1b0]

    
;-------------------------------------------------------------------------------

I increased the Heap to 20000. But the problem persists. Also the memory allocation shows : 

My program is a very ordinary program that is executed on computer before. That means it does need to access any special memory location on the chip. I just want to take the measurement of performance on the chip. 

I am beginner in this domain. Please, I need your help 

How can I solve this problem. 

Bes,

Soundes.

WEBENCH® Tools/UCC28C42: Calculations for Design Generated by Webench

$
0
0

Part Number:UCC28C42

Tool/software: WEBENCH® Design Tools

Hi,

I have designed a power supply for below specifications.

AC_DC

Vin (Min) (V): 165
Vin (Max) (V): 260

frequency: 50hz

Vout (Nom) (V): 12
Iout (Max) (A): 5
Output Power (W): 60

DC_DC

Vin (Min) (V): 44
Vin (Max) (V): 55.2
Vout (Nom) (V): 12
Iout (Max) (A): 5
Output Power (W): 60
Isolated/Non-Isolated: Isolated

Now when I match this design with the calculations given in datasheet they don't match. I want the calculations done by webench for each and every component to get the desired output results. As I have to give the TOT for my design and can't say I have used webench.

please find the publik link for my design below

ac-dc

dc-dc

WEBENCH® Tools/UCC2803: UCC2803/Flyback Reference design

$
0
0

Part Number:UCC2803

Tool/software: WEBENCH® Design Tools

Hi Team,

Requirement:
  1. I/P voltage = 9V to 32V
  2. O/P Voltage =15 V
  3. O/P Current = 2A Nominal
  4. O/P Regulation = ±1%
  5. Isolated Power Supply

With respect to the above specifications, I have used "UCC2803".

Could you please share the reference design for that meeting all requirements.

Also, please share the design calculation sheet for the same part.

Waiting for your quick reply!

Thanks,

BR, 

Mukesh Kesarwani

LAUNCHXL-CC26X2R1: Zigbee Parent losing trigger TI's PIR motion sensor

$
0
0

Part Number:LAUNCHXL-CC26X2R1

Hi TI team,

I used our PCB(not reference board), the SDK of V2.30 ,example code of zed_switch to be a End-Device and example code of zc_right to be a Coordinator.

I only added the TI's PIR sensor and its source code. PIR sensor could work.

But I found a issue is that when parent losing in my End-Device, the PIR sensor in my End-Device would be triggered continually(it means it periodically enter the interrupt function [pirHwiFxn] of PIR). 

I do not think the behavior is correct. Could you help me to check this issue?

Thanks

Here is my code of PIR.

//board_pir.h
#include "Board.h"
#include <stdint.h>

extern uint8_t pir_quiet_time; //seconds
extern bool changePIRflag;

typedef void (*Board_Pir_motionCB_t)(bool pirMotion);

void Board_Pir_initialize(Board_Pir_motionCB_t appKeyCB1);

//board_pir.c
/******************************************************************************
 Includes
 *****************************************************************************/

#include <stdbool.h>
#include <chipinfo.h>
#include "util_timer.h"
//#include "board_key.h"
#include "board_pir.h"
//#include "zcl_port.h"

/******************************************************************************
 Local Variables
 *****************************************************************************/

/* Key debounce clock */
static Clock_Struct keyChangeClock1;
static Clock_Handle keyChangeClkHandle1;

/* Pointer to application callback */
static Board_Pir_motionCB_t appMotionChangeHandler = NULL;


/*
 Create the MSA KEY pin table. This will override the key attributes in
 BoardGpioInitTable[].
 */
static PIN_Config keyPinTable[] = {
       Board_DIO0 | PIN_INPUT_EN | PIN_NOPULL | PIN_HYSTERESIS |PIN_IRQ_POSEDGE,
       Board_DIO1_RFSW | PIN_INPUT_EN | PIN_NOPULL | PIN_HYSTERESIS |PIN_IRQ_POSEDGE,
       PIN_TERMINATE /* Terminate list */
};

static bool pirMotion = false;

/* KEY pin state */
static PIN_State keyPinState;

/* KEY Pin Handle */
static PIN_Handle keyPinHandle1;

static PIN_Id PIR_Out_Hi;
static PIN_Id PIR_Out_Lo;

uint8_t pir_quiet_time;
static uint32_t pir_quiet_time_ms=5000;

bool changePIRflag = false;
uint8_t temp_value_pirqt;

/*
static Clock_Struct tenClock;
static Clock_Handle tenClkHandle;
static bool tenflag = false;
*/

/******************************************************************************
 Local Functions
 *****************************************************************************/
static void pirClockCallback(UArg a0);
static void pirHwiFxn(PIN_Handle keyPinHandle, PIN_Id keyPinId);

/*
static void tenClockCallback(UArg a0);
*/

void Board_Pir_initialize(Board_Pir_motionCB_t appKeyCB1)
{
    PIR_Out_Hi = Board_DIO0;
    PIR_Out_Lo = Board_DIO1_RFSW;
    keyPinHandle1 = PIN_open(&keyPinState, keyPinTable);

    /* Register Callbacks */
       PIN_registerIntCb(keyPinHandle1, pirHwiFxn);

       /* Setup keycallback for keys */
       keyChangeClkHandle1=Timer_construct(&keyChangeClock1, pirClockCallback, 0, 0, false, 0);

       /* Set the application callback */
       appMotionChangeHandler = appKeyCB1;

       

}

static void pirHwiFxn(PIN_Handle keyPinHandle, PIN_Id keyPinId)
{

    if (!pirMotion)
    {
        if (appMotionChangeHandler != NULL)
        {
            pirMotion = true;
            /* Notify the application */
            (*appMotionChangeHandler)(pirMotion);
        }
   }

    Timer_stop(&keyChangeClock1);
    Timer_setTimeout(keyChangeClkHandle1, pir_quiet_time_ms);
    Timer_start(&keyChangeClock1);

}

static void pirClockCallback(UArg a0)
{
    while(PIN_getInputValue(PIR_Out_Hi) || PIN_getInputValue(PIR_Out_Lo));
    pirMotion = false;
    if (appMotionChangeHandler != NULL)
    {
        /* Notify the application */
        (*appMotionChangeHandler)(pirMotion);
    }

}

//zcl_samplesw.c

#define SENSOR_MOTION_DETECT_EVT 0x0002
#define SENSOR_MOTION_CLEAR_EVT 0x0004

static void zclSampleSw_process_loop(void)
{
  /* Forever loop */
    for(;;)
    {
 //motion
            if(events & SENSOR_MOTION_DETECT_EVT)
            {
                 zclSampleSw_Motion();
                 events &= ~SENSOR_MOTION_DETECT_EVT;
            }

            //no motion
            if(events & SENSOR_MOTION_CLEAR_EVT)
            {
                 zclSampleSw_NoMotion();
                 events &= ~SENSOR_MOTION_CLEAR_EVT;
            }

    }
}

void processMotionChangeCallback(bool pirMotion)
{
    if(pirMotion){
        events |= SENSOR_MOTION_DETECT_EVT;
        //Util_setEvent(&Sensor_events,SENSOR_MOTION_DETECT_EVT);
    } else {
        events |= SENSOR_MOTION_CLEAR_EVT;
        //Util_setEvent(&Sensor_events,SENSOR_MOTION_CLEAR_EVT);
    }
    Semaphore_post(sem);
}


static void zclSampleSw_Motion()
{
    printf("Motion\n");
       fflush(stdout);
}

static void zclSampleSw_NoMotion()
{
    printf("No Motion\n");
    fflush(stdout);
}

MSP430FR2422: RST/NMI/SBWTDIO - RC recommendation

$
0
0

Part Number:MSP430FR2422

Hello,

After studying the MSP430FR2422 datasheet and the family datasheet I'm still in doubt how to interpret the RC recommendation for the RST/NMI/SBWTDIO pin. It's mandatory for me to fully understand what( and why) the requirements for this pin are, this to save parts/costs and board space. Even if only to save ONE resistor or ONE capacitor.

Conditions:

- SBW programming interface will be used. This to save I/O pins.

- NMI functionality will not be used.

Datasheet RC recommendation for this pin:

- Pull-up resistance 47k

- Pull-down capacitance 10nF.

When using the SBW programming interface the maximum value for this capacitance is: 1.1nF (otherwise programming tools are not able to drive this 10nF).

1) So why is it allowed to use a smaller capacitance when using SBW programming? contradicts with the 10nF recommendation.

2) Is it important that this pin has a specific Reset timing (minimum RC time)? I was not able to find something about this in the datasheet.

3) Or is this RC combination only used to filter EMI on this pin. Meaning that the RC value's are actually more based on: trace length, nearby switching signals, shielding, ground return path etc.

4) It seems beneficial to me to use the internal RST pull-up resistor (costs). Are there any drawbacks when using this resistor. For sure the tolerance of this internal resistor is big compared to an external pull-up resistor.

Thanks for your help,

Patrick

CC2541: Bluetooth Declaration ID and QDID

$
0
0

Part Number:CC2541

Hi,

Can someone tell me what's the Bluetooth Declaration ID and QDID for component CC2541 please?

Thx

(Please visit the site to view this file)

CC2640: CC2640 PIN mapping error

$
0
0

Part Number:CC2640

I use CC2640's IO2 and IO3 pins for UART testing,the chip is packaged in 7x7.

1\ Using IO2 as UART-RX and IO3 as UART_TX, the UART  transceiver and receiver work normally;

2\Using IO2 as UART-TX and IO3 as UART_RX, the UART  transceivers and receivers are abnormal.In debug mode, it can be observed that IO3 can receive data normally. However, IO2 cannot send normally.What is the reason for this?

When using IO4 and IO5 to do the same test above, it can send and receive normally.Is this because IO2 and IO3 are special reasons for being BootLoader pins or what?

Here is my code:

1、Pin definition:

2、Clock initialization

3、UART initialization

4、main


LMR62014: About temperature protection of LMR62014

$
0
0

Part Number:LMR62014

Hi,

I made a circuit board using the LMR62014 device.
I am checking the circuit board operation, but I have something I want to ask you.
Attach the circuit diagram and waveform. Waveform is measurement data of environmental temperature 50 degrees.

The left side of the waveform is normal operation. The case temperature of the device will be 90°C.
The right side of the waveform is abnormal operation. Sometimes this state.
In this state the case temperature will be 120°C and the temperature protection will operate. However, even if it returns from temperature protection, this abnormal operation does not return.
(Question)
1. How often does temperature protection work? Is it 120℃?
2. It does not return to normal operation even if it recovers from temperature protection. Turning off the power will result in normal operation. Is this a state in which the device is in thermal runaway?

(specification)
VIN: 5 V
VOUT: 18 V
IOUT: 150 mA
Best regards,

TS3L501E: SPDT Application

$
0
0

Part Number:TS3L501E

Hi E2E,

IS Bx NC and Cx NO?

If no input voltage, A - B is connect or not?

CCS/MSP430FR6047: Understanding the program flow of MSP430FR6047.

$
0
0

Part Number:MSP430FR6047

Tool/software: Code Composer Studio

Hello Members,

I would like to know is there a document where I can find a program flowchart to understand the complete measurement cycle of MSP430FR6047 apart from the sw library.

Regards,

Mr. Jadhav

CC2538: When the coordinator sets "ZDSECMGR_TC_DEVICE_MAX" to 100, the "rejoin response" status of the enddevice is "PAN Access Denied".

$
0
0

Part Number:CC2538

Protocol stack: Z-Stack 3.0.2
Coordinator processor: CC2538
Enddevice processor: CC2530
1、Problem Description:
When the coordinator sets "ZDSECMGR_TC_DEVICE_MAX" to 100, and then reset the coordinator, the Enddevice that has already entered the network rejoins the network, and its "rejoin response" command has the status "PAN Access Denied".
However, When the coordinator sets "ZDSECMGR_TC_DEVICE_MAX" to 100, and then reset the coordinator, the Enddevice that has already entered the network rejoins the network, and its "rejoin response" command has the status "SUCCESS".
2、I would like to know:
(1)Can "ZDSECMGR_TC_DEVICE_MAX" be set to ‭238‬ at the most?
(2)“ZDSECMGR_TC_DEVICE_MAX” is the maximum number of Zigbee 3.0 devices that can be added to the Zigbee network?
(3)Why does the "rejoin response" command return a status of "PAN Access Denied"?
Ubilogix Capture File("ZDSECMGR_TC_DEVICE_MAX" =100):nwk key:D5 3A 1C B3 C9 D5 15 5F 0C 98 85 CA 20 57 98 9E
(Please visit the site to view this file)
Ubilogix Capture File("ZDSECMGR_TC_DEVICE_MAX" =40):nwk key:0C 40 05 50 00 3C C0 B1 50 74 7C 27 A1 1A 3B 0B
(Please visit the site to view this file)

Buck conver with smaller cap

$
0
0

Hello

My customer is looking for a buck converter which operates smaller IN/OUT caps for below condition. I think higher SW frequency can acheive smaller caps and LMR23625 is good candidate. Do you have any other idea?

Vin :24V

Vout : 5V

Iout :2A

Best regards,

Tetsuro

Viewing all 262198 articles
Browse latest View live


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