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

TIDA-01513: TIDA-01513

$
0
0

Part Number: TIDA-01513

Hi Rama,

we are working on EV-BUS battery pack which is 800V system . My vehicle OEM is asking me to disconnect the chassis connection i am using to monitor isolation. i have Connected 2M OHM resistor to Chassis from HV+ and HV-. i have 2 questions ??

1.Is it not suffiecient safe to have 2M-OHM resistor from Chassis to HV+ and Chassis to HV- ??

2. can you please suggest me how to measure Isolation resistance without connecting to chassis. all my internal electronics are running on Chassis ground again. if i disconnect chassis i will not be able to detect wire shorts i.e isolation breakdown

3. whats standard telling about the HV+, HV- connection to chassis?? as per standard are we allowed to connect to chassis with High res in series ?? 

further communications we can have privately , as the info here is confidential for me to share


THVD1450: Please help to review the schematic

$
0
0

Part Number: THVD1450

Dear E2E,

Please help to review the schematic below.

(Please visit the site to view this file)

BR,

Jason

UCC28740: May we have "Vi: 36~72Vdc Vo: 24V/5A Isolation" reference design?

$
0
0

Part Number: UCC28740

Hi Sir 

May we have  "Vi: 36~72Vdc      Vo: 24V/5A     Isolation" reference design?

and which part is most popular part?

                                                   Bogey

Compiler/CC2530: CC2530 I2C interface with htu21D (temperature + humidity) sensor code

$
0
0

Part Number: CC2530

Tool/software: TI C/C++ Compiler

Hello,

         I want to interface CC2530 with htu21D which is based on I2C,i have implement it using software I2C code becoz cc2530 don't have I2c pins.

my problem is I always received 0xFF(for 2 days......too much time waste and so many different way tried) when I want to read "user register" of htu21d,same thing i have check with ardino i received 0x02 which is correct byte.

my configuration pin for i2c is P0.6 for CLK and P0.7 for SDA. below my code is given,if anything is wrong then please help me.I have checked my hardware connection its look fine.

if anyone have  I2c code of cc2530 with htu21d then please send me.(email:hitesh.mathukiya@gmail.com)

code is here.......

void temperature_data(){         ///the main function for read user register

// HTU21D_I2C_ADDRESS 0x40
//#define TRIGGER_TEMP_MEASURE 0xE3
//#define TRIGGER_HUMD_MEASURE 0xE5

char rx[5]; char temp_buff[5]; char i;


I2C_Start();
I2C_Write(0x80); //?I2C????     ////write 
I2C_WaitAck();
I2C_Write(0xFC); //?I2C????    //for software reset
I2C_WaitAck();
I2C_Stop();
milliSecondDelay(100);


I2C_Start();
I2C_Write(0x80); //?I2C????    //0x80 to write
I2C_WaitAck();
I2C_Write(0xE7); //?I2C????    //0xE7 for user read adress
I2C_WaitAck();
I2C_Write(0x81); //?I2C????       //to read 0x81
I2C_WaitAck();
rx[0] = I2C_Read(1);      ///here it should be read 0x02 but always read 0xFF        
I2C_Stop();
milliSecondDelay(1000);

buff[0]=rx[0];
HalUARTWrite(HAL_UART_PORT_0, buff,1); //send data to uart          ////always getting 0xFF on UART
}

void SPIKEHalKeyInit( void )
{
P0SEL &= 0x00; //Set all pins as input inorder to power saving
P0DIR &= 0x00;
P1SEL &= 0x00;
P1DIR &= 0x00;
P2SEL &= 0xF8;
P2DIR &= 0xF0;

/*All the ports are pulled down*/
//P2INP |= (0xE0);

/*LED pin tri-state mode*/
//P2INP |= BV(0);
P0SEL &= ~BV(1);
P0DIR |= BV(1);
LED = 0;

P1INP |= BV(0);
P1SEL &= ~BV(0);
P1DIR |= BV(0);
P1_0 = 1;
milliSecondDelay(100);
SPIKE_UART_Init();
// I2C_Init();

I2C_Init(); ///hitesh

}

void I2C_Init(void)
{

//---------- hitesh--------------------------------------
P0SEL &= ~BV(6); ///SCL_PIN
P0DIR |= BV(6);

P0SEL &= ~BV(7); //SDA_PIN
P0DIR |= BV(7);

//------------------------------------------------------------
SDA_PIN=1;
SCL_PIN=1;
}

void I2C_Stop(void)
{
SCL_PIN = 0; // Pull SCL low
// microSecondDelay(4);
SDA_PIN = 0; // Pull SDA low
microSecondDelay(5);
SCL_PIN = 1; // Pull SCL High
microSecondDelay(5);
SDA_PIN = 1; // Now Pull SDA High, to generate the Stop Condition
microSecondDelay(5);

}

void I2C_Write(uint8 v_i2cData_u8)
{
uint8 i;

/* for(i=0;i<8;i++) // loop 8 times to send 1-byte of data
{
SDA_PIN = v_i2cData_u8 & 0x80; // Send Bit by Bit on SDA line
i2c_Clock(); // Generate Clock at SCL
v_i2cData_u8 = v_i2cData_u8<<1;// Bring the next bit to be transmitted to MSB position
}

i2c_Clock();*/

//SCL_PIN=0;
for(i=0; i<8; i++){
SCL_PIN=0;
microSecondDelay(5);
if(v_i2cData_u8&0x80)
{
SDA_PIN=1;
}
else
{
SDA_PIN=0;
}
v_i2cData_u8 = v_i2cData_u8 << 1;
microSecondDelay(5);
SCL_PIN=1;
microSecondDelay(5);

}
SCL_PIN=0;
microSecondDelay(10);

}

void I2C_Start(void)
{

SCL_PIN = 1;
microSecondDelay(5);
SDA_PIN = 1; // Pull SCL low
microSecondDelay(5);
SDA_PIN = 0; //Pull SCL high
microSecondDelay(5);
SCL_PIN = 0; //Now Pull SDA LOW, to generate the Start Condition
microSecondDelay(5);

}

uint8 I2C_Read(uint8 v_ackOption_u8)
{
uint8 i, inByte;

/* SDA_PIN =1; //Make SDA as I/P
for(i=0;i<8;i++) // loop 8times read 1-byte of data
{
microSecondDelay(10);
SCL_PIN = 1; // Pull SCL High
microSecondDelay(10);

v_i2cData_u8 = v_i2cData_u8<<1; //v_i2cData_u8 is Shifted each time and
v_i2cData_u8 = v_i2cData_u8 | SDA_PIN; //ORed with the received bit to pack into byte

SCL_PIN = 0; // Clear SCL to complete the Clock
}
if(v_ackOption_u8==1) /*Send the Ack/NoAck depending on the user option*/
// {
/* i2c_Ack();
}
else
{
i2c_NoAck();
}

return v_i2cData_u8; // Finally return the received Byte* */

//unsigned char inByte, n;
//SDA_PIN =1; \

SCL_PIN =0;

microSecondDelay(5);

SDA_PIN =1;

P0SEL &= ~BV(7); //SDA_PIN as input
P0DIR &= ~ BV(7);

for (i=0; i<8; i++){
SCL_PIN=1;
microSecondDelay(5);
// inByte <<= 1;
if(SDA_PIN)
inByte = (inByte << 1) | 0x01; // msbit first
else
inByte = inByte << 1;
SCL_PIN=0;
microSecondDelay(5);
}

P0SEL &= ~BV(7); //SDA_PIN output
P0DIR |= BV(7);
return inByte;

}

static void i2c_Ack(void)
{
/*SDA_PIN = 0; //Pull SDA low to indicate Positive ACK
i2c_Clock(); //Generate the Clock
SDA_PIN = 1; // Pull SDA back to High(IDLE state) */

SDA_PIN=0;
SCL_PIN=1;
SCL_PIN=0;
SDA_PIN=1;
SCL_PIN=1;
}


static void i2c_NoAck(void)
{
/* SDA_PIN = 1; //Pull SDA high to indicate Negative/NO ACK
i2c_Clock(); // Generate the Clock
SCL_PIN = 1; // Set SCL */

SDA_PIN=1;
SCL_PIN=1;
SCL_PIN=0;
}

uint8 I2C_WaitAck(void)
{
uint8 ack;

SDA_PIN=1;
microSecondDelay(5);
SCL_PIN=1; //?????????
microSecondDelay(5);

if(SDA_PIN)
ack = 1;
else
ack = 0;

SCL_PIN=0;
microSecondDelay(5);

return ack;
}

TLV316: tlv316 as comparator

$
0
0

Part Number: TLV316

Good morning,

i would like to use TLV316 opamp as comparator instead of finding for a comparator with push-pull output. My supply voltage is 5V, my input common mode voltage range is between 0V and 4V and the required output is about 5V or 0V depending on the comparison between the two inputs.

Are there some precautions or critical issue for this component if I will configure it in this way?

Thank you.

DAC8740H: Can the DAC8740H FF/PA model design complete schematic diagram be provided?

$
0
0

Part Number: DAC8740H

Can the DAC8740H FF/PA model design complete schematic diagram be provided?

ADS131E04: 5V single supply and negative input voltage?

$
0
0

Part Number: ADS131E04

Hi there,

we are plannng to use the ADS131E0x or A0x.

We have a single ended signal between -4V to +4V to convert.

To bring this signal to fully-differential adc-input, we will use a difference amplifier (please send me your suggestions).

This difference amplifier should the -4V signal to -4V@INxP & 4V@INxN; and the +4V signal to 4V@INxP & -4V@INxN.

Is that possible with the following configuration?:

AVDD = 5V (single supply)
AVSS = 0V (GND)
internal Reference works @ 4V

This it possible (with single supply) that the analog inputs become negative voltage?

Thanks for your help.

Regards, Maik

CCS/TMS570LC4357: Error #128 expected a statement

$
0
0

Part Number: TMS570LC4357

Tool/software: Code Composer Studio

Hi there,

I am learning coding ARM with CCS, trying to follow the training "How to Tutorial: turning on the LEDs" https://training.ti.com/hercules-how-tutorial-turning-leds?cu=1136292.

Codes in the HL_sys_main.c is attached, (Please visit the site to view this file)then I encountered some errors that I can not solve.

Could someone give me some basic lessons on this goal ?

thanks a lot.


LMZM33603: About Inverting circuit

$
0
0

Part Number: LMZM33603

Hi,

Customer wants to use LMZM33603 under the following conditions:
・Vin=24V (AC adapter 24V±10%)
・Vout=-12V
・Iout≒0.5A

I have two questions.
1.Customers want to use ACadapter with 10% accuracy.
  Therefore, customers want to allow an input voltage of 26.4V.
  Is this usage condition acceptable?
  And Is it acceptable depending on the load current?
       
       

2.About Switching Frequency vs Output Voltage 
  Customers want a table of Inverting circuit versions.
  Can you provide that information?

       

Best Regards,
Yusuke

DRV2667: Question of Software Behavior of the DRV2667 EVM

$
0
0

Part Number: DRV2667

Hi Sirs,

We found the MCU software of the DRV2667 EVM reads bit 0 of 0x02 register after vibration trigger events. 
(we converted the I2C analyzer's data format to PPC3's format) 

w b2 03 02
w b2 p4 00
w b2 02 01
r b2 02 01 -> returns 01
r b2 02 01 -> returns 01
r b2 02 01 -> returns 01
r b2 02 01 -> returns 01
r b2 02 01 -> returns 01
r b2 02 01 -> returns 00

is the 0x02 read back mandatory. Is there any impact if we ignore this step?
 


Thank you and Best regards,

Wayne Chen
08/30/2019

MSP430FR6989: Can't set chip select pin for SPI transmission

$
0
0

Part Number: MSP430FR6989

Hello,

I try to set my chip select pin LOW for a SPI transmission. Some how it gets HIGH after a few µs.

This is my code:

GPIO_setOutputLowOnPin(GPIO_PORT_P3, GPIO_PIN6); //pin for chip select
EUSCI_B_SPI_transmitData(EUSCI_B0_BASE, data); // Start transmission: after this transmission, a interrupt flag is set, and the interrupt service routine starts

The outputs look like this:

BQ25703A: BQ25703A How to get Device Power when Battery mode ??

$
0
0

Part Number: BQ25703A

Hi 

Our customer has some question for BQ25703A.

[ Question ] 

  How to get  Device Power   when Battery mode  with  BQ25703A  ?

   *  If device disconnect  AC Adapter power and Battery only connect . 

  Which Pin or  other ??

Thanks  and Regard

March Jasper  (  Disty  Sugimoto ) 

  

BQ40Z50-R1: Chem ID accuracy

$
0
0

Part Number: BQ40Z50-R1

Hi,

I performed the cycle to obtain the chem ID of my battery.I have a deviation of 8.44%.the app note SLVA 725 recommends less than 3%.

I would like to know if a deviation of 8.44% will create a large measurement errors during the life of the battery?

Does the learning cycle also helps to improve the accuracy of the gas gauge too?

Regards,

Clement

(Please visit the site to view this file)

DRV8873HEVM: Issue

$
0
0

Part Number: DRV8873HEVM

Hi,

The DRV8873 EVM software was configured as shown in the attachment (evk gui.png).
Without load (with open output), the signal on the OUT1 looked good- see "without load.png".
With a 5 ohm resistance between VM and OUT1, the signal on the OUT1 looked also good- see "with 5ohm resisor between out1 and vm.png".
However, if I want to usea load between GND and OUT1, the duty cycle suddenly drops to 10% for no apparent reason - see "with 5ohm resisor between out1 and gnd.png".
From 0-10%, the duty cycle remains adjustable, but it can not be set higher than 10%.
Is this behavior so intentional? Do I overlook anything? Or is this a malfunction?

Best regards,

Alen

CCS/AM5728: am572x use PCIe reading so slow

$
0
0

Part Number: AM5728

Tool/software: Code Composer Studio

1、 Test :

(1)PCIE gen1:SPEED –> 2.5Gb/S、LANE WIDTH -> X2;

 

 A15@1GHz  -- linux

 DSP@500MHz --TI-RTOS,config PCIE driver,run as RC

 FPGA   run as EP

program use《C:\ti\pdk_am57xx_1_0_4\packages\ti\drv\pcie\example\sample》,not change any driver/bar config

2、 DSP continuity write BAR window:

test like: *(int *)0x21000100=0x1234;

                 *(int *)0x21000104=0x4567;

 

TLP time :

M_axis_rx_xxx are DSP send TLP signal,S_axis_tx_xxx are FPGA reply TLP signal. From above,2 write TLP use 9  CLK time(9*8ns=72ns);

3、DSP continuity read BAR window:

test like : int A=*(int *)0x21000100;

                  int B=*(int *)0x21000104;

 

TLP time:

M_axis_rx_xxx are DSP send TLP signal,S_axis_tx_xxx are FPGA reply  TLP signal,Red number 1,3,5 are DSP continuity read 3 times BAR window send TLP timestamp,Red number 2,4,6 are FPGA reply DSP TLP timestamp;

From abve,1st DSP read,FPGA reply in  19-2=17 CLK(17*8=136ns),but between 2 DSP reading TLP the time used(Red number 1,3)202-2=200 clk,that's 1.6us

And I test:  

T1=TSCL;

int A=*(int *)0x21000100;

T2=TSCL;

time used:T2-T1=1.6us  is the same as above.


CCS/CC1310: How to add the node to the network after some delay

$
0
0

Part Number: CC1310

Tool/software: Code Composer Studio

Hello,

I have made use of the example codes collector and sensor to build a customized star network. Accordingly, I have been trying to re-join the node/sensor which was powered off and restarted to the network after the timer has timed out, which I'am not able to do. Is there a possibility that I can rejoin the node after the timer has timed out while keeping the other tasks running?

Thanks in advance.

CC1310: rfListenBeforeTalk sample's LBT functionality doesn't work in conjunction with the 'Bit Repeat' patch.

$
0
0

Part Number: CC1310

Dear Sir/Madam,
The rfListenBeforeTalk sample works well on the CC1310 when used with the normal 'genfsk' patch.  When used in conjunction with the 'brepeat' patch, the LBT functionality does not detect the presence of a jamming signal.  I need to use the bit repeat patch in order to support a legacy wireless protocol.  Are there any settings, patches or work-arounds available to get LBT working in conjunction with the bit repeat patch?
If it is not possible to perform automatic LBT when using the bit repeat patch, is there any alternative method that could be used to achieve the same result?

I have pasted the two configurations below, the rest of the code is the standard rfListenBeforeTalk sample.

Best regards,
Tony Bland.

//////////////////
// LBT Works well
//////////////////
RF_Mode RF_prop =
{
    .rfMode = RF_MODE_PROPRIETARY_SUB_1,
    .cpePatchFxn = &rf_patch_cpe_genfsk,
    .mcePatchFxn = 0,
    .rfePatchFxn = &rf_patch_rfe_genfsk,
};

// Overrides for CMD_PROP_RADIO_DIV_SETUP
static uint32_t pOverrides[] =
{
    // PHY: Use MCE ROM bank 4, RFE RAM patch
    MCE_RFE_OVERRIDE(0,4,0,1,0,0),

//////////////////// // LBT Doesn't Work //////////////////// RF_Mode RF_prop = { .rfMode = RF_MODE_PROPRIETARY_SUB_1, .cpePatchFxn = &rf_patch_cpe_brepeat, .mcePatchFxn = &rf_patch_mce_brepeat, .rfePatchFxn = &rf_patch_rfe_genfsk, }; // Overrides for CMD_PROP_RADIO_DIV_SETUP static uint32_t pOverrides[] = { MCE_RFE_OVERRIDE(1,0,0,1,0,0),

TDA2E: usecase lvds_vip_multi_cam_view_sgx_display is blocked when any one camera is taken off

$
0
0

Part Number: TDA2E

Hi,

It was found that lvds_vip_multi_cam_view_sgx_display chain is blocked when any one camera is taken off.

However, i need the chain to stay non-blocking.

Is there a parameter in capture link or sync link allow me to change the behave of lvds_vip_multi_cam_view_sgx_display in the above situation by modifying it?

Thank you!

TPS40090: how to use TPS40090 for 45A current source?

$
0
0

Part Number: TPS40090

Customer has the below applcation:

12V input, <= 3V output, with 45A constant  output current.

Could you help suggest how to use TPS40090 together with external current loop to deal with this? TPS40090 is a 4-Channel MultiPhase controller, but I think 2 phase is enough for this current, do you have any other better suggested part? Thank you.

LAUNCHXL-F28379D: Not able to get correct HR phase offset value for ePWM configured in up-down count mode

$
0
0

Part Number: LAUNCHXL-F28379D

HI,

I am facing issue setting the phase offset value for decimal values in HRPWM in up-down  count mode. I have updated the example epwm_up_aq_cpu01 to perform the following settings.

1) Generate ePWM1 syncout to ePWM2

2) update phase value to TBPHS and TBPHSR register for every sync event.

3) Use auto conversion to update mep_scale factor.

4) Use count up as the direction after phase update.

I have configured both ePWMs for 500KHz frequency and 50% duty cycle. I have attached the oscilloscope screenshots for 3 cases of phase values

Case 1: Phase offset - 7 clock cycles, expected value of phase delay - 50 ns, Actual phase delay - 50 ns (red), ePWM2(green) lags in phase compared to ePWM1(yellow)

Case 2: Phase offset - 8 clock cycles, expected value of phase delay - 60 ns, Actual phase delay - 60 ns, ePWM2 lags in phase compared to ePWM1

Case 3: Phase offset - 7.6 clock cycles, expected value of phase delay - 56 ns, Actual phase delay - 44 ns, ePWM2 lags in phase compared to ePWM1

I can see similar behavior for up count mode as well. Can you let us know if anything is missing here.

Attaching the source code

(Please visit the site to view this file)

Thanks,

Aditya

Viewing all 262198 articles
Browse latest View live


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