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

BQ34Z100-G1: Power on only with Reset action can get SOC value

$
0
0

Part Number:BQ34Z100-G1

Hi Guys

our customer are using BQ34Z100G1 for Lead-acid batteries. The single lead-acid battery is 12V 23Ah, which has 6 cells, each cell voltage is 2V.

The system has a total of 6 batteries, 72V23Ah. Customer has programmed their file. But every time they power on this system(which means using their battery power on our IC), they are not able to read the SOC value. SOC=0%. And when they send Reset order, they will get the correct SOC value.  Please see below the schematic and their programme file.(Please visit the site to view this file)(Please visit the site to view this file)

Could you help us with this issue. is there any incorrect register define? How to reproduce this issue with our EVM? what register do we Need to change?

It is very urgent case, your feedback are very appreciated.

Thanks

-Pengfei


BQ24780S: BQ24780s Schematics review

$
0
0

Part Number:BQ24780S

Hi,

I am using BQ247080S for charging the Li-Ion smart battery. I have drawn schematics using the same.

Need your engineers review on the schematics if everything is fine.

As I could not post the schematics in the public forum, can you share your official mail id through which we can review our schematics ??

Need your suggestion at the earliest.

Regards,

Rajesh

TINA/Spice/UCC256301: calculate the parameters of UCC256301 simplis model

$
0
0

Part Number:UCC256301

Tool/software:TINA-TI or Spice Models

Hi:

I am building a LLC system model with UCC256301 simplis model, but the UCC256301 model on ti.com seems to be not completed with some missing function such as LL/SS pin. So I don't understand how to calculate the parameters for my circuit. These parameters are used to program the UCC256301 model, and thay are: LL   TD1   TD2   TMAX    VSS_init   Fault_reset   

Can I bother you to tell me how to calculate these parameters?

Thank you so much.

 

Best Regards,

Li, Gang

 

SN74LVC1G07: SN74LVC1G07DCKR undershoot spec

$
0
0

Part Number:SN74LVC1G07

Hi, 

the SN74LVC1G07DCKR undershoot is -0.5V show in datasheet, have any risk if the undershoot voltage lower than -0.5V? 

we observed -0.8V/5ns on customer design, that should be ok or not? 

thank you,

Mark Chen

RTOS/CC1310: CC1310 AES 128 ECB payload size limitation

$
0
0

Part Number:CC1310

Tool/software: TI-RTOS

Hey geeks 

                I'm using AES 128 Encryption api from the Crypto library with CC1310. The type of the encryption is ECB. I'm just sending the strings from the UART and getting output on terminal 

In my case encryption and decryption working great infarct I'm getting decrypted string at output but the problem is decryption is limited to 15 bytes only. If the payload size is more than 15 bytes then the encypted bytes is limited to 15 only 

Here is my code with TI rtos

/*
 *  ======== uartecho.c ========
 */
#include <stdint.h>
#include <stddef.h>

/* Driver Header files */
#include <ti/drivers/GPIO.h>
#include <ti/drivers/crypto/CryptoCC26XX.h>
#include <USB.h>
/* Example/Board Header files */
#include "Board.h"

/*
 *  ======== mainThread ========
 */

/*
 *
 * AES 128 CBC encryption test
 */

#define PAYLOAD_LEN    100

typedef struct
{
  uint8_t key[16];                      // Stores the Aes Key
  CryptoCC26XX_KeyLocation keyLocation; // Location in Key RAM
  uint8_t clearText[PAYLOAD_LEN];       // Input message - cleartext
  uint8_t msgOut[PAYLOAD_LEN];          // Output message
} AESECBExample;
// AES ECB example data


AESECBExample ecbExample =
{
  { 0x2B, 0x7E, 0x15, 0x16, 0x28, 0xAE, 0xD2, 0xA6,
  0xAB, 0xF7, 0x15, 0x88, 0x09, 0xCF, 0x4F, 0x3C },                                     //Key 128 bit
  CRYPTOCC26XX_KEY_0,                                                                   //Location
  {'t','h','i','s','i','s','a','p','l','a','i','n','t','e','x','t'},                    //text message
  { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 }    //Output message
};
// Declaration (typically done in a task)
CryptoCC26XX_Handle             handle;
int32_t                         keyIndex;
int32_t                         status;
CryptoCC26XX_AESECB_Transaction trans;


void *mainThread(void *arg0)
{
    char        input;
    const char  echoPrompt[] = "AES128 Encryption Example";
    const char  Prompt[]=  "Enterd data";
    const char  EncData[]= "Encrypted data";
    const char  Enter[]="\r\n";
    char RxBuff[50];
    uint8_t count=0;


    /* Call driver init functions */
    GPIO_init();
    USB_ON();

    /* Configure the LED pin */
    GPIO_setConfig(Board_GPIO_LED0, GPIO_CFG_OUT_STD | GPIO_CFG_OUT_LOW);

    /* Turn on user LED */
    GPIO_write(Board_GPIO_LED0, Board_GPIO_LED_ON);

    USB_println(echoPrompt);


    /* Loop forever echoing */
    while (1) {

        input=USB_read();
        if(input!=NULL){
           RxBuff[count]=input;
           if(RxBuff[count]=='\r'){
              RxBuff[count]=NULL;
              count=0;
              USB_printString("Enter Data: ");  USB_println(RxBuff);

              //--------------------------------Encryption-----------------------------------

                  CryptoCC26XX_init();
                  // Attempt to open CryptoCC26XX.
                  handle = CryptoCC26XX_open(Board_CRYPTO0, false, NULL);
                  if (!handle) {
                    USB_printString("Crypto module could not be opened.");
                  }
                  keyIndex = CryptoCC26XX_allocateKey(handle, ecbExample.keyLocation,
                                                     (const uint32_t *) ecbExample.key);
                  if (keyIndex == CRYPTOCC26XX_STATUS_ERROR) {
                      USB_printString("Key Location was not allocated.");
                  }
                  // Initialize transaction
                  CryptoCC26XX_Transac_init((CryptoCC26XX_Transaction *) &trans, CRYPTOCC26XX_OP_AES_ECB_ENCRYPT);
                  // Setup transaction
                  trans.keyIndex         = keyIndex;
                  trans.msgIn            = (uint32_t *) RxBuff;
                  trans.msgOut           = (uint32_t *) ecbExample.msgOut;
                  // Encrypt the plaintext with AES ECB
                  status = CryptoCC26XX_transact(handle, (CryptoCC26XX_Transaction *) &trans);
                  if(status != CRYPTOCC26XX_STATUS_SUCCESS){
                      USB_printString("Encryption failed.");
                  }



                  USB_printString("Encrypted Message: "); USB_println((uint32_t *)trans.msgOut);

                  // Initialize transaction
                  CryptoCC26XX_Transac_init((CryptoCC26XX_Transaction *) &trans, CRYPTOCC26XX_OP_AES_ECB_DECRYPT);
                  // Setup transaction
                  trans.keyIndex         = keyIndex;
                  trans.msgIn            = (uint32_t *) ecbExample.msgOut;
                  trans.msgOut           = (uint32_t *) ecbExample.clearText;
                  // Zero original clear text before decrypting the cypher text into the ecbExample.clearText array
                  memset(ecbExample.clearText, 0x0, PAYLOAD_LEN);
                  // Decrypt the plaintext with AES ECB
                  status = CryptoCC26XX_transact(handle, (CryptoCC26XX_Transaction *) &trans);
                  if(status != CRYPTOCC26XX_STATUS_SUCCESS){
                      USB_printString("Decryption failed.");
                  }
                  CryptoCC26XX_releaseKey(handle, &keyIndex);
                  USB_printString("Decrypted Message: "); USB_println((uint32_t *)ecbExample.clearText);

                  //----------------------------End encryption----------------------------
           }else{
               count++;
           }

        }
    }
}




Here is the screen shot of the terminal tool
is there anything else that I'm missing here ?
Thanks 

CCS/CC1310: SPI communication between CC1310 (master) and AFE4300 (slave)

$
0
0

Part Number:CC1310

Tool/software: Code Composer Studio

Hello,

I'm trying to make SPI communication work between CC1310 (as master) and an AFE4300 sensor (as slave). I'm using the CC1310 Launchpad and CCS 8.2.0.

My current code is (inside a thread, building on the empty project from the Resource Explorer):

    GPIO_init();
    SPI_init();

    SPI_Handle      spiHandle;
    SPI_Params      spiParams;
    SPI_Transaction transaction;

    uint8_t txBuf[3];
    uint8_t rxBuf[3];

    txBuf[0]=0b00100011;
    txBuf[1]=0b00000000;
    txBuf[2]=0b00000000;

    uint8_t         transmission[3];
    bool            transferOK = false;
    SPI_Status      transactionStatus;
    uint8_t         receiveBuf[3];

    /* RESET PROCEDURE FOR AFE4300 */

    usleep(100000);
    GPIO_write(Board_GPIO_AFE_RST,0);
    usleep(100000);
    GPIO_write(Board_GPIO_AFE_RST,1);
    usleep(100000);

     /* SPE pin of AFE4300 is permanently pulled down because we have only one master-slave SPI connection. We don't need to pull the SPE pin down in order to communicate. */

     /* INITIALIZATION OF SPI PARAMS */

     SPI_Params_init(&spiParams);
     spiParams.frameFormat = SPI_POL0_PHA1;                 // AFE4300 uses POL0_PHA1 as mode: idle state of SCLK is LOW, Data is changed on rising edge and sampled on falling edge
     spiParams.mode = SPI_MASTER;                           // CC1310 is transmitting as master
     spiParams.transferMode = SPI_MODE_BLOCKING;            // blocking mode: we only use one thread, so callback function would only cause unnecessary overhead
     spiParams.bitRate = 4000000;                           // supported bit rate by AFE4300: <= 4MHz
     spiParams.dataSize = 8;

     spiHandle = SPI_open(Board_SPI1, &spiParams);

     transaction.count = 3;
     transaction.txBuf = (void *) txBuf;
     transaction.rxBuf = (void *) rxBuf;

     transferOK = SPI_transfer(spiHandle, &transaction);

     transactionStatus = transaction.status;

     SPI_close(spiHandle);

Now this isn't working. When I run the program, it sets transferOK as true and transactionStatus as TRANSFER_COMPLETED, but the results in rxBuf are rubbish. Looking at the SPI lines, I see something like this:


Obviously, there's no real clock signal and the MOSI signal doesn't make sense either.

Weirdly, when I take a far too huge value for transaction.count, it suddenly produces something looking like a clock signal, though the width is off and the MOSI signal doesn't make sense at all either:



First I was using Board_SPI0, but after taking a deeper look into the Board.h files etc. I though it might cause problems because it's used for flashing. Also, the AFE4300 wants the CLK line to be low when idle and the CLK pin of SPI0 is configured to be high at default, so it stays high except when calling SPI_transfer(), which I thought might be causing problems. I then switched to Board_SPI1, by making the following changes to the code:

    - in CC1310_LAUNCHXL.h, I changed the pins to:
        #define CC1310_LAUNCHXL_SPI1_MISO             IOID_15         /* SPI for AFE */
        #define CC1310_LAUNCHXL_SPI1_MOSI             IOID_22
        #define CC1310_LAUNCHXL_SPI1_CLK              IOID_21
      those pins are currently not connected to the AFE4300, but that shouldn't alter the signals that can be measured via Logic Analyzer.
    - in CC1310_LAUNCHXL.c, I added the following lines to PIN-Config BoardGpioInitTable[] right before PIN_TERMINATE:
        CC1310_LAUNCHXL_SPI1_MOSI | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL | PIN_INPUT_DIS | PIN_DRVSTR_MED,                                      /* SPI master out - slave in */
        CC1310_LAUNCHXL_SPI1_MISO | PIN_INPUT_EN | PIN_PULLDOWN,                                      /* SPI master in - slave out */
        CC1310_LAUNCHXL_SPI1_CLK  | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL | PIN_INPUT_DIS | PIN_DRVSTR_MED,                                      /* SPI clock */

That didn't help though.

Right now I'm out of ideas how I might be using the SPI module wrong. Could you please help me?

Best regards, Alissa

PCM1807: Can PCM1807 be used to build a decibel meter?

$
0
0

Part Number:PCM1807

My customer has an analogue microphone,

and they need something from TI to build a deciber meter to monitor environmental noise and upload the data to their cloud.

Does TI has some scheme to build a decibel meter?

For example, can audico ADC PCM1807 be used to do it?

Or can we use the ordinary ADC and MCU to do it?

Wait for your reply, thank you!

Linux/TDA2: PCI configuration space access is not aligned

$
0
0

Part Number:TDA2

Tool/software: Linux

Hello, I have got an issue with Linux 4.4.84 from PSDK 3.03 running on TDA2xx EVA board.

I have noticed that the accesses to PCI configuration space registers are not aligned to 4B boundary which results in incorrect reading of the, for example, status register. Upon implementing the accesses using pci_bus_read_config_dword they are being read correctly.

Thinking that this is a problem related solely to the Linux version, I've had a look into the same code from more recent kernels and it is the same. However, on my PC where I run kernel 4.16.7 all my PCI devices' registers are correctly read using those non-aligned accesses.

What I would like to ask is if this problem is in any way related to the board itself and its A15 core. I'm seeing much more non-aligned accesses which probably need to be patched. Is this a known problem when it comes to TI boards? If yes, is there any official patch for this?

Thank you in advance.

Nick


RTOS/CC2650: Multiple Instances of Single shot clock.

$
0
0

Part Number:CC2650

Tool/software: TI-RTOS

Hi,

I have construct Single Shot Clock as follow:

Clock_Params_init(&clockparams);
clockparams.startFlag = FALSE;
clockparams.period = 0; // If this value is not specified it will not invoke clock_call function periodically */
/* Construct Periodic clock with first timeout specified. After this clock_call will get called depending on period setting */
Clock_construct(&clockstruct, (Clock_FuncPtr)clock_call, 10000, &clockparams ); // 10000 defines initial delay in starting clock

clkhandle = Clock_handle(&clockstruct);

Following is clock_call Function

void clock_call(UArg arg0){

}

I am starting clock using Clock_start(clkhandle), from some other function which is getting called once every 100 ms. I have put breakpoint inside clock_call function. But its not getting there. What am I doing wrong?

I have to call clock_start function to start clock because I have set start flag as false and its one shot because period is zero, correct?

CC3220: Receiving unknown/extra characters in CC3220 Http Handler

$
0
0

Part Number:CC3220

Hi, I am trying to send some data to my CC3220, by enabling in AP.

When ever I sent any data, few characters are adding at the first and last of each token value.

my Html page : (Please visit the site to view this file) 

I am trying to read the data here : 

void SimpleLinkHttpServerEventHandler(SlNetAppHttpServerEvent_t *pHttpEvent,
    SlNetAppHttpServerResponse_t *
    pHttpResponse)
{
    /* Unused in this application */
    UART_PRINT("[HTTP SERVER EVENT] Unexpected HTTP server event \n\r");

    UART_PRINT("HTTP server event = %d \n\r", pHttpEvent->Event);

    UART_PRINT("HTTP server Action Len = %d \n\r", pHttpEvent->EventData.HttpPostData.Action.Len);
    UART_PRINT("HTTP server Action = %s \n\r", pHttpEvent->EventData.HttpPostData.Action.pData);

    UART_PRINT("HTTP server TokenName Len = %d \n\r", pHttpEvent->EventData.HttpPostData.TokenName.Len);
    UART_PRINT("HTTP server TokenName = %s \n\r", pHttpEvent->EventData.HttpPostData.TokenName.pData);


    UART_PRINT("HTTP server TokenValue Len = %d \n\r", pHttpEvent->EventData.HttpPostData.TokenValue.Len);
    UART_PRINT("HTTP server TokenValue = %s \n\r", pHttpEvent->EventData.HttpPostData.TokenValue.pData);

}

I tried with settings.html page of OOB project also, here also characters are adding.

Thank you

TPS62162-Q1: The output state when EN pin input working in the range of 0.3V~0.9V

$
0
0

Part Number:TPS62162-Q1

Hi team,

I have a question about TPS62162 EN input. As the d/s write, when EN input<0.3V,it will not work, when EN input>0.9V,it will enable. I want to ask if we have done some test about the output state when EN input at the range of 0.3V~0.9V. (some test like when EN input=(0.3~0.9),how many times output high, how many times output low) .

Thank you in advance.

Best regards

Jessica

SN74AVC16T245: Could you kindly help to prove DGV's outline Package?

CC2530: ZSensorMonitor software

$
0
0

Part Number:CC2530

Hello 

I have the CC2530ZDK from TI, I want to run the application demo but I can't find the ZSensorMonitor software on the TI website.

is there any active link for the software?

Thank you.

ADS8688: ADC current signal input

$
0
0

Part Number:ADS8688

hello,

i am trying to use the ADS8688 to read analog current values from a current sensors of the following values (4 mA to 20 mA, and ±20 mA.)

in the datasheet it is mentioned that this device support current inputs without the need of an external circuit (section 9.2.2.1, page 55)

but after checking the boards (TIDA-00307 and TIDA-00493), i found that it has been used an external circuit (shunt resistor + OA)

so my question is. does the ADC actually support current inputs or not ?

Thanks in advance.

TDA3XEVM: Why is 12-bit linear mode selected for WDR sensor ?

$
0
0

Part Number:TDA3XEVM

My usecase is UC_iss_capture_isp_simcop_display.  My capture source is Leopard Imaging OV10640.  It is connected to CSI2 CAM LI port.

This image sensor is WDR.  Please see attached.

Then, why is 12-bit linear mode of operation chosen?  ISSM2MISP_LINK_OPMODE_12BIT_LINEAR

Why isn't one of WDR mode of operation chosen?

Regards,

Amer


MSP430F5659: How to connect 14-pin JTAG header to device for JTAG (not SBW) programming?

$
0
0

Part Number:MSP430F5659

Hi,

We currently use Spy-By-Wire programming for our MSP430. As such, we provide Vcc, RST_SBWTDIO (with 49.9k pull-up resistor and 1.5n capacitor to GND), TEST_SBWTCK (with 100k pull-down), and GND to the 14-pin JTAG connector. This results in a relatively slow programming time when debugging. I was wondering if it's possible to use the 4 additional JTAG pins (TDO, TCLK, TMS, TCK) to decrease the programming time.

If so, are there additional provisions (e.g. resistors/capacitors) to do than to connect the pins to the JTAG header? Should I leave some pins unconnected? I haven't found an app note about that.

Thank you,

Fred

CCS/MSP432P4111: MSP432P4111 + EnergyTrace error

$
0
0

Part Number:MSP432P4111

Tool/software: Code Composer Studio

Hello

I am doing SimpleLink academy lab "SimpleLink SDK - LaunchPad Power Measurements Using EnergyTrace™" on MSP432P4111 launchpad and at Task 5 I got problem. I run "powerdeepsleep" example with debugger, when red LED turned on I press S1 button, red LED turn off and I turn on EnergyTrace to measure current but when I press green button it says that maximum current limit is 75mA and stops working(EnergyTrace is configured as it is shown in Task 4). when I press green button again it runs and never stops (Timeout is set to 10 sec). I try to configure EnergyTrace for higher currents but everything is same. I have no idea what to do now. can anyone help me?

Thanks.

TPS62132: TPS62132

$
0
0

Part Number:TPS62132

Dear mr/mrs,

we have some technical questions about this switcher. In the past we contacted our local representative, but he has retired recently. During a phone call to TI Eindhoven, which ended op in germany, they told me I should ask for a representative via this forum.

We experience some fall out on these components, whereby the part doesn't start anymore. If we supply an external voltage to the SS pin the part starts up normally (after removing the voltage it stops again). Our circuit and all voltages seems to be within spec.

I hope you can bring us in contact with a technical support agent for The Netherlands and/or shed some light on this problem.

With kind regards.

CC3220MOD: FLASH_SPI PROBLEM

$
0
0

Part Number:CC3220MOD

Dear TI Experts,

I'd like to know if  I don't need to connect pin13/14/15/17 to a flash~ Can I use this four pins as general SPI that connected to MCU?

FLASH_SPI_MISO

FLASH_SPI_nCS_IN

FLASH_SPI_CLK

FLASH_SPI_MOS

DP83848I: Migrating from TLK110 to DP83822,

$
0
0

Part Number:DP83848I

Hi,

Currently we are using TLK110 for AM335x based Ethernet communication,
since this device is NRND, we are planning to migrate to DP83822.

Can we assume below E2E details would apply for DP83822 also?
e2e.ti.com/.../596589

We know these two devices are not pin compatible but we would like to know
if there is any difference with respect to software. We believe most of the registers
are same with these two devices.

Best Regards
paddu

Viewing all 262198 articles
Browse latest View live


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