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

MSP432E401Y: Is there a way to tweak the clock rate?

$
0
0

Part Number:MSP432E401Y

I would like to vary the clock rate, perhaps as much as +/- 2%, so that its rate can track an NTP server.  I'm also using TI-RTOS.  Is there a way to tweak the rate by small increments to track an NTP server?


CC2640R2F: Issues with Bluetooth Connection

$
0
0

Part Number:CC2640R2F

Hi Team,

I am looking for some feedback on some issues we are experiencing:

"We are currently having problems with BLE connections on some hardware. The board advertises, we can look at advertised data, but we cannot connect to the hardware.  We have used both our own code with custom board files and the sdk simple peripheral project without our board files, neither of which work. To me, that eliminates a software issue. 

Using LightBlue app on my phone, it gives me a connection timeout message.  Using TI SensorTag app, Service Explorer shows no data (message is “SCANNING SERVICE 0 of 0”), Advertisement data shos me the local name – Gregs SNACK TAG, service uuid’s - fff0,, tx power level – 0dBm, and a connectable - yes.

When I run the exact same code on the 2640 dev kit, everything is the same except the Service Explorer on the TI SensorTag app now shows 2 services.  LightBlue app shows all the advertisement data, states the device is connected, etc.

Any suggestions on where/what to look hardware wise that might be preventing a connection?"

Regards,
Ramon

TIDA-01606: Weight

Linux/WL1837MOD: Hostapd ACS not working R8.7_SP3

$
0
0

Part Number:WL1837MOD

Tool/software: Linux

Hi We're using R8.7_SP3 version of hostapd and can't seem to get it working. Tried configuration with both channel=0 and channel=acs_survey. It looks like hostapd tries to start a scan but the driver doesn't pass back the survey results?

wlan0: Event SCAN_RESULTS (3) received
ACS: Using survey based algorithm (acs_num_scans=5)
nl80211: Fetch survey data
wlan0: Event SURVEY (46) received
No survey data received
ACS: Trying survey-based ACS
ACS: Unable to collect survey data
ACS: All study options have failed
Interface initialization failed
wlan0: interface state ACS->DISABLED
wlan0: AP-DISABLED
ACS: Possibly channel configuration is invalid, please report this along with your config file.
ACS: Failed to start

Configuration File:

# THIS FILE IS AUTOMATICALLY
# DO NOT EDIT MANUALLY
# the interface used by the AP
interface=wlan0
# g simply means 2.4GHz band
hw_mode=g
# the channel to use
channel=0
# limit the frequencies used to those allowed in the country
ieee80211d=1
# the country code
country_code=GB
# 802.11n support
ieee80211n=1
# QoS support
wmm_enabled=1

# the name of the AP
ssid=<retracted>
# 1=wpa, 2=wep, 3=both
auth_algs=1
# WPA2 only
wpa=2
wpa_key_mgmt=WPA-PSK
rsn_pairwise=CCMP
wpa_passphrase=<retracted>

Full hostapd log file attached (with -dd option)

Thanks,

Rowan(Please visit the site to view this file)

CCS/F28M35H52C: Can we flash F28M35H52C1 over JTAG connector (J2) on the Dock Station using Spectrum Digital XDS100 probe?

$
0
0

Part Number:F28M35H52C

Tool/software: Code Composer Studio

Hi,

Can we flash F28M35H52C1 over JTAG connector (J2) on the Dock Station using Spectrum Digital XDS100 probe?

How do we create TargetConfiguration file with correct JTAG "connection settings" ?

(We could try using UniFlash v4.6 to write/read out files....)

Thanks,

Tim

CC1310: CC1310 WMBUS 434 MHz

$
0
0

Part Number:CC1310

Hello,

I need to test the CC1310 RX perfomance in my wmbus application. My goal is to be able to read the packets coming from my endpoints with the CC1310. Due to regulation, the wmbus in my country operates in 434.475 MHz.

The main problem is that the  wmbus stack for the CC1310 doesnt have any kind of example for this particular frequency, only for 868 MHz. I didnt find any kind of documentation of how to change this.

I really dont want to port all the endpoint wmbus code that  I made for another transceiver  to CC1310 just to measure its performance....

Is there any simple RX wmbus T1/T2 example for CC1310 without using this stack from stackforce ?

Thanks !!

BQ40Z80EVM-020: BQ40Z80EVM-020 unable to read cell voltages

$
0
0

Part Number:BQ40Z80EVM-020

Hello,

I am working on getting a valid configuration file together using the BQ40Z80EVM-020 PCB. I have removed D3 and R7 per SLUUBZ5. Unfortunately, I am having some problems getting valid cell voltages. I am using 7 1kΩ resistors in series to simulate the cells, and I do not have anything connected to J1. My pin configuration settings are shown below:

My cell configuration settings are:

For reference, a picture of the jumpers on my EVM are shown below.

When I am looking at the registers for the various voltages, I can see that the BATTERY and PACK voltages appear to be updating. When the PACK pin voltage becomes >35000, I am pressing the WAKE switch.

Any thoughts as to what may be causing this?

Thanks,

Adam Drewery

TDC7200EVM: Trying to set up connection between TDC7200EVM and MCU

$
0
0

Part Number:TDC7200EVM

Hi everyone,

I am trying to set up connection between TDC7200EVM and a small MCU called Pocket Beagle Bone.

I already connect the MISO, MOSI, CLK, CS, 3.3v Power Supply and Ground. Do I still need to connect Enable port and Init port? And which port on the MCU I should choose?

Right now, there is no response when I try to write data into the configure register. Here is the code I am using (python):

from spidev import SpiDev

con = SpiDev(1,0)   #open the bus. The bus port is correct

con.mode = 1          #set mode. If it is not mode 1, please tell me the right answer.

con.max_speed_hz = 2000000      #set the max speed

con.xfer2([0x40 | (0x0F & 0x00)] + [0x10])   #try to write data into config register 1.

Thanks a lot,


BOOSTXL-CC2650MA: How to configure CC2650 to use Bluetooth classic

$
0
0

Part Number:BOOSTXL-CC2650MA

Hello!

I recently bought a MSP432P401R launchpad and a CC2650 boosterpack to get started with some bluetooth development. The project that I want to integrate my bluetooth sollution into is using bluetooth classic configured as SPP. Can anyone please tell me how to configure the CC2650 to work that way? If anyone has some sample code that would be a bless!

//Björn

BQ40Z80EVM-020: Communications failures

$
0
0

Part Number:BQ40Z80EVM-020

Hello,

I am having some apparent communications failures while using the BQ40Z80EVM-020 and bqStudio. I am using bqStudio 1.3.86. I am having problems just attaching my data flash settings, but I am more than happy to email them. I just posted a different question concerning cell voltages, and I am curious as if the two may be related.

I am able to reliably update configuration settings, but I continually get 'Packet checksum mismatch' errors. I have attempted several times to unseal the device (as seen at bottom right).

I also have Chemistry programming failures, Error code = 1470. I updated the chemistry files yesterday with 'sluc564ex.zip'.

Any ideas would be appreciated.

Thanks,

Adam Drewery

AM26LS33AM: MTTF Data AM26LS33AM

$
0
0

Part Number:AM26LS33AM

Is there an Arrhenius plot of MTTF (hours) vs junction temperature available for this die?

Reference Example:


Thanks,
-Jonathan

TPS3813K33-EP: RESET! Window exceeds spec value at cold temperatures.

$
0
0

Part Number:TPS3813K33-EP

PN TPS3813K33MDBVREP is used in an application where it is tested at -55C.  Some parts are causing failures, where the processor is not receiving a RESET! signal after the TDI signal goes silent for over 300ms.  Troubleshooting data indicates the RESET! pulse window grows approx 35ms between ambient temperature and -55C.  This appears to be enough of a change to push the RESET! signal out of spec. 

TPS54060: Relaible

$
0
0

Part Number:TPS54060

Hi ,

I want to use PN TPS54060 grade automotiv and it is first time i use it ,before i use TPS54560 and it was ok.

Do you have any exprince with this PN TPS54060DQGR?

Thank you.

Ilan Mazuz.

TPS54060: Relaible

$
0
0

Part Number:TPS54060

Hi ,

I want to use PN TPS54060 grade automotiv and this my first time i use it. i use before TPS54560 and it was ok.

I need this chip for super reliable design power buck converter PLS advise what is the other coustmer said or do you have exprince with PN TPS54060 grade automotiv?

I read the MTBF DOC at this IC PN TPS54060 and it is ok.but i need more information.

Thank you.

Ilan M. 

Compiler/LAUNCHXL-CC2650: Example project for Light sensor and Accelerometer sensor

$
0
0

Part Number:LAUNCHXL-CC2650

Tool/software: TI C/C++ Compiler

Hello,

Can you suggest me a good example project for Light sensor and Accelerometer sensor compatible with cc2650 Launchpad. I don't see anything related to these two, in C:\ti\simplelink\ble_sdk_2_02_02_25\examples\cc2650lp\sensortag. 

Is there a good place to start with?

Thanks,

Rathna


BQ76200: Charge Pump not working on power-up

$
0
0

Part Number:BQ76200

The charge pump operation is intermittent. This is related to power-up (connecting battery or bench supply to the BAT side of the circuit). Once connected and functional it appears to run with no problems. The intermittent refers to the initial connection. If I cycle power on the BAT a few time and get it to come up, it works and continues working.

Cap at VDDCP is 2.2uF/25V to provide sufficient capacity for 8ea CSD19536KTT FET's. Filter is 100ohm/.01uF. 75V Zener to protect part.

Battery operates 45-60V, testing at ~52V as described below.

I reproduce the problem as follows:

Connect BAT (with all BQ76200 signals low). Pull CPEN high, monitor VDDCP, leave all other control signals low.

- Sometimes the charge pump generates ~1V (so VBAT + 1V). In this mode it is a steady 1V, no charge pump waveform. Enabling CHG or DCHG makes no difference.

- Sometimes the charge pump generates 10V (so VBAT + 10V). In this mode the charge pump sawtooth waveform rides on top of the 10V. Enabling CHG or DCHG works as expected (FET gates rise ~10V above VBAT).(Please visit the site to view this file)

I'm attaching a word doc with the schematic snippets (hope it shows).

CCS / CC2650STK: C2650 STK ---- microphone

$
0
0

Part Number:CC2650STK

Tool/software: Code Composer Studio

Hi,

I want to work on C2650STK. My project now is to collect the voice from the microphone and get it on my computer. 

I see in the RESOURCE EXPLORER in CCS, there is the project of PDM steam.
So, can the C2650STK read the onboard PDM microphone and convert it in PCM and send it by air by this code? Or I see in another post, someone said to use the sensortag_audio. 

And for C2650 it uses CCS to import the program?

Do I need other hardware?

UC2625-EP: UC2625-EP General Questions, 2nd attempt to post

$
0
0

Part Number:UC2625-EP

UC2625-EP

1) Would like to verify, the RC Oscillator 1-2 cycle dead time is only applied at HALL SENSORS transitions

2) Configured for four quadrant PWM , voltage control scheme, EA unity configured, EA+ control voltage with current sense PWM termination (Isense tied to PWM IN)

2-1) If current sense does not terminate PWM cycle what is the maximum duty cycle?

2-2) Is there any dead time between PWM cycles

3) Response time of internal fault over-current comparator to disable bottom side drivers?

CC3220SF-LAUNCHXL: Serial Wifi demo not working- Don't get the header display when Reset button is pressed

$
0
0

Part Number:CC3220SF-LAUNCHXL

 I created a project using CC 7.4 with projectspecs file in the demo directory and built a .bin file. Then using Uniflash 4.3, generated .sli file and used program image command to download.

The following are screen shots of my Uniflash Project:

Compiler/BQ27441-G1: Default value of design capacity in BQ27441-G1B

$
0
0

Part Number:BQ27441-G1

Tool/software: TI C/C++ Compiler

Dear Forum, 

I am using a BQ27441 G1B, I have connected it to a microcontroller board (Tiva TM4C123G) using I2C. To initialize the BQ27441 we need to follow 14 steps indicated in the technical reference, sec - 3.1, pg 14, but, I'm still having trouble making these steps work. In step 8, I indicated the value of design capacity that we should expect for type G1B, but not for type G1A. In the code, we set this value to 0xAC to force the if operation, but during the code the read values do not match the one shown in the reference manual and so I can not read the main battery characteristics.

#include <stdbool.h>
#include <stdint.h>
#include "inc/hw_memmap.h"
#include "inc/hw_i2c.h"
#include "inc/uartstdio.h"
#include "inc/hw_types.h"
#include "driverlib/debug.h"
#include "driverlib/i2c.h"
#include "driverlib/sysctl.h"
#include "driverlib/rom_map.h"
#include "driverlib/gpio.h"
#include "driverlib/pin_map.h"
#include "driverlib/uart.h"

#define BQ27441_ADDR 0x55

#define CHECK_BIT(var,pos) ((var) & (1<<(pos)))

#define I2C_MODE Master
#define I2C0SDA
#define I2C0SCL
#ifdef DEBUG
void
__error__(char *pcFilename, uint32_t ui32Line)
{
}
#endif

void InitI2C0(void);
void UART_Init();
void I2CSendString(uint32_t slave_addr, char array[]);
uint32_t I2CReceive(uint32_t slave_addr, uint8_t reg);
void bq27441_init();

int main(void)
{

    SysCtlClockSet(
        SYSCTL_USE_PLL    // Use interpnal PLL (internal PLL will multiply frequency to reach 400 MHz according to datasheet)
      | SYSCTL_XTAL_16MHZ // Configure PLL to use a source frequency of 16 MHz
      | SYSCTL_SYSDIV_2_5 // Divide PLL output frequency by 5 to reach 80 MHz final frequency
      | SYSCTL_OSC_MAIN   // Tell microcontroller to use main (external) crystal oscillator
    );

    UART_Init();

    SysCtlDelay(20000000);


    while(1)
    {
        bq27441_init();

    }

}

//initialize I2C module 0
void InitI2C0(void){

    SysCtlPeripheralEnable(SYSCTL_PERIPH_I2C0);

    //reset module
    SysCtlPeripheralReset(SYSCTL_PERIPH_I2C0);

    SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOB);

    // Configure the pin muxing for I2C0 functions on port B2 and B3.
    GPIOPinConfigure(GPIO_PB2_I2C0SCL);
    GPIOPinConfigure(GPIO_PB3_I2C0SDA);

    GPIOPinTypeI2CSCL(GPIO_PORTB_BASE, GPIO_PIN_2);
    GPIOPinTypeI2C(GPIO_PORTB_BASE, GPIO_PIN_3);

   I2CMasterInitExpClk(I2C0_BASE, SysCtlClockGet(), false);

   
    HWREG(I2C0_BASE + I2C_O_FIFOCTL) = 80008000;
}

void UART_Init()
{
    //Baud Rate: 9600

    SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOA);

    GPIOPinConfigure(GPIO_PA0_U0RX);
    GPIOPinTypeUART(GPIO_PORTA_BASE, GPIO_PIN_0);

    GPIOPinConfigure(GPIO_PA1_U0TX);
    GPIOPinTypeUART(GPIO_PORTA_BASE, GPIO_PIN_1);

    SysCtlPeripheralEnable(SYSCTL_PERIPH_UART0);

    while(!SysCtlPeripheralReady(SYSCTL_PERIPH_UART0));

    SysCtlPeripheralEnable(SYSCTL_PERIPH_UART0);

    while(!SysCtlPeripheralReady(SYSCTL_PERIPH_UART0));

    GPIOPinTypeUART(GPIO_PORTA_BASE, GPIO_PIN_0 | GPIO_PIN_1);
    UARTClockSourceSet(UART0_BASE, UART_CLOCK_PIOSC);
    UARTStdioConfig(0, 9600, SysCtlClockGet()/5);
}


void I2CSendString(uint32_t slave_addr, char array[])
{

    I2CMasterSlaveAddrSet(I2C0_BASE, slave_addr, false);
    I2CMasterDataPut(I2C0_BASE, array[0]);

    //0x81, apenas para finalizar o array
    if(array[1] == 0x81)
    {
        I2CMasterControl(I2C0_BASE, I2C_MASTER_CMD_SINGLE_SEND);

        while(I2CMasterBusy(I2C0_BASE));
    }
    else
    {
        I2CMasterControl(I2C0_BASE, I2C_MASTER_CMD_BURST_SEND_START);

        while(I2CMasterBusy(I2C0_BASE));

        uint8_t i = 1;

        while(array[i + 1] != 0x81)
        {
            I2CMasterDataPut(I2C0_BASE, array[i++]);

            I2CMasterControl(I2C0_BASE, I2C_MASTER_CMD_BURST_SEND_CONT);

            while(I2CMasterBusy(I2C0_BASE));

        }

        I2CMasterDataPut(I2C0_BASE, array[i]);

        I2CMasterControl(I2C0_BASE, I2C_MASTER_CMD_BURST_SEND_FINISH);

        while(I2CMasterBusy(I2C0_BASE));
    }
}

//read specified register on slave device
uint32_t I2CReceive(uint32_t slave_addr, uint8_t reg)
{
    //specify that we are writing (a register address) to the
    //slave device
    I2CMasterSlaveAddrSet(I2C0_BASE, slave_addr, false); 

    //specify register to be read
    I2CMasterDataPut(I2C0_BASE, reg); 

    //send control byte and register address byte to slave device
    I2CMasterControl(I2C0_BASE, I2C_MASTER_CMD_BURST_SEND_START); 

    //wait for MCU to finish transaction
    while(I2CMasterBusy(I2C0_BASE));

    //specify that we are going to read from slave device
    I2CMasterSlaveAddrSet(I2C0_BASE, slave_addr, true); 

    //send control byte and read from the register we
    //specified
    I2CMasterControl(I2C0_BASE, I2C_MASTER_CMD_SINGLE_RECEIVE); 

    //wait for MCU to finish transaction
    while(I2CMasterBusy(I2C0_BASE));

    //return data pulled from the specified register
    return I2CMasterDataGet(I2C0_BASE); 
}

void bq27441_init()
{

    uint8_t flag_out[10], block_data_checksum_data[10], data[100], design_capacity_data[10];
    uint16_t design_capacity;

    float voltage = 0.0, remaining_batt_cap = 0.0, full_charge_cap = 0.0, soc = 0.0, temp = 0.0, current = 0.0;

    InitI2C0();

    char writeData[3] = {0x00, 0x04, 0x81};
    char unseal_data[4] = {0x00, 0x00, 0x80, 0x81};
    char cfgupdate_data[4] = {0x00, 0x13, 0x00, 0x81};
    char flag_data[2] = {0x06, 0x81};
    char block_data_control[3] = {0x61, 0x00, 0x81};
    char data_block_class[3] = {0x3E, 0x52, 0x81};
    char data_block[3] = {0x3F, 0x00, 0x81};
    char block_data_checksum[2] = {0x60, 0x81};
    char design_capacity_loc[2] = { 0x4A,/*  0x4B,*/ 0x81};
    char soft_reset[4] = {0x00, 0x42, 0x00, 0x81};
    char seal_data[3] = {0x00, 0x20, 0x00, 0x81};

    //Step 1
    I2CSendString(BQ27441_ADDR, unseal_data);
    I2CSendString(BQ27441_ADDR, unseal_data);
    SysCtlDelay(133333);
    UARTprintf("The gauge seems to be unsealed. \n");

    //Step 2
    I2CSendString(BQ27441_ADDR, cfgupdate_data);
    SysCtlDelay(133333);

    //Step 3
    flag_out[0] = I2CReceive(BQ27441_ADDR, flag_data[0]);
    UARTprintf("The _out is: %x \n", flag_out[0]);  

    if (CHECK_BIT(flag_out[0], 4)) {
        UARTprintf("The gauge is ready to be configured \n");

        //Step 4
        I2CSendString(BQ27441_ADDR, block_data_control);
        SysCtlDelay(133333);

        //Step 5
        I2CSendString(BQ27441_ADDR, data_block_class);
        SysCtlDelay(133333);

        //Step 6
        I2CSendString(BQ27441_ADDR, data_block);
        SysCtlDelay(133333);

       //Step 7
        block_data_checksum_data[0] = I2CReceive(BQ27441_ADDR, block_data_checksum[0]);
        UARTprintf("The checksum_data: %x \n", block_data_checksum_data[0]);

        if (block_data_checksum_data[0] == 0xAC) {

            UARTprintf("The checksum is as expected. Config will proceed. \n");

            //Step 8
            design_capacity_data[0] = I2CReceive(BQ27441_ADDR, design_capacity_loc[0]);
            UARTprintf("The design capacity data is: %d mAh \n", design_capacity_data[0]);

            /*
            design_capacity = design_capacity_data[0]*16*16 + design_capacity_data[1]; //two values?
            SysCtlDelay(133333);
            UARTprintf("The current design capacity is: %d mAh \n", design_capacity);
            */

            //Step 12
            I2CSendString(BQ27441_ADDR, soft_reset);
            SysCtlDelay(1000);


            //Step 13
            flag_out[0] = I2CReceive(BQ27441_ADDR, flag_data[0]);
            UARTprintf("The _out is: %x \n", flag_out[0]);

            //Step 14
            if(!CHECK_BIT(flag_out[0], 4)) {
                UARTprintf("CFGUPDTE has been exited, configuration done. \n");
                I2CSendString(BQ27441_ADDR, seal_data);
                SysCtlDelay(5);
                UARTprintf("Gauge has been sealed and is ready for operation \n");
            }
        }
    }

    
    while(true){

        int t;
        for (t=0;t<100;t++){

            //Leitura dos registros do dispositivo
            I2CSendString(BQ27441_ADDR, writeData);
            I2CReceive(BQ27441_ADDR, data[t]);
        }
    }

    voltage = data[4]*16*16 + data[3];
    remaining_batt_cap = data[12]*16*16 + data[11];
    full_charge_cap = data[14]*16*16 + data[13];
    soc = (remaining_batt_cap/full_charge_cap)*100;
    temp = (data[2]*16*16 + data[1])/10.0 - 273.0;
    current = data[16]*16*16 + data[15];


    UARTprintf("Voltage: %d  mV\n", voltage);
    UARTprintf("Current: %f  mA\n", current);
    UARTprintf("Remaining Battery Capacity: %f  mAh\n", remaining_batt_cap);
    UARTprintf("Full Charge Capacity: %f mAh\n", full_charge_cap);
    UARTprintf("State of Charge: %f p.c. \n", soc);
    UARTprintf("Temperature: %f  Deg C\n", temp);   

}

Viewing all 262198 articles
Browse latest View live


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