Quantcast
Viewing all 262198 articles
Browse latest View live

CCS/TMS570LS1227: Reading TMP468 temperature sensor via I2C

Part Number:TMS570LS1227

Tool/software: Code Composer Studio

Hello,

I'm brand new to i2c and have an idea of what's required to read from a slave device using a master, however I am struggling to successfully code my pseudocode.

I'm wanting to read the local temperature sensor on the TI TMP468 using the TMS50ls1227PGE's i2c bus. I've enabled the i2c driver, pinmux, and enabled all of the i2c interrupts in HalCoGen

In CCS, I've typed the following code within a FreeRTOS task (I did i2cInit() in main): 

/* Set direction to receiver */
               i2cSetDirection(i2cREG1, I2C_TRANSMITTER);
               i2cSetMode(i2cREG1, I2C_MASTER);
               i2cSetSlaveAdd(i2cREG1, 0b1001000);

               i2cSetStart(i2cREG1); //start bit
               i2cSendByte(i2cREG1, 0b10010000); //write to address 1001000, the address of the temperature sensor
               i2cSendByte(i2cREG1, 0b00000000); //the internal temperature sensor is at register 0 

               i2cSetStart(i2cREG1); // resend the start bit
               i2cSendByte(i2cREG1, 0b10010001); //read from device 1001000

               while(i2cIsRxReady(i2cREG1)){}; //wait until clear 
               i2cSetDirection(i2cREG1, I2C_RECEIVER); //set i2c to receive data

               data = i2cReceiveByte(i2cREG1); //receive byte from register

               i2cSetStop(i2cREG1); //send stop bit

I'm not seeing any activity in my data variable and when I debug my code is always stuck inside of i2cSendByte at the "while ((i2c->STR & (uint32)I2C_TX_INT) == 0U)"

I'm not really sure where to go from here, any ideas or obvious mistakes?

Thank you!


CCS/MSP430FR5969: c_int00_noargs_noexit_mpu().

Part Number:MSP430FR5969

Tool/software: Code Composer Studio

Hello All,

                    can anyone help me by clarifying what is this   function  _c_int00_noargs_noexit_mpu().  

                      please expain  the reasons why it goes in it.

                     

Regards

sandhyarani yadav

DRV10983: DRV10983

Part Number:DRV10983

Hi Cole,

I am now trying to rotate ceiling fan with DRV10983 but the parameters differs with and without blades, and actually what happened was :

If there was no blades I measure Rm and Kt then enter all parameters then switch on and successfully motor spin.

If there was blades I measure Rm, Kt then enter all parameters but when power on this time motor rotate not complete cycle then stop.

So, if there is another parameters to be configured like Rm and Kt like Tcontrol how can I measure it or how can I calculate it?

If there is another settings for ceiling fan that I don't recognize it, please advice. 

Register readings:

RegisterValue
(0x10) Status Register0X0F
(0X11) Motor Speed 1 Register0x3F
(0x12) Motor Speed 2 Register0x00
(0x13) Motor Period 1 Register0x00
(0x14) Motor Period 2 Register0x00
(0x15) Motor Kt 1 Register0x00
(0x16) Motor Kt 2 Register0x00
(0x21) Motor Param 2 Register0x21
(0x1A) Supply voltage Register0xC4 = 22 Volt
(0x1B) SpeedCmd Register0x3B
(0x1C) SpeedCmdBuffer Register0x83
(0x1E) FaultCode Register0x00

These params I read it and I noticed red color registers with zero values.

I hope if you can support and advice.

thanks.

Ahmed.

--

TPA3138D2: TPA3138 PVDD Maximum supply voltage

RTOS/CC2538: Timer Problem

Part Number:CC2538

Tool/software: TI-RTOS

Hi,

I'm using Zstack-3.0 for ZigBee communication.

Here i'm facing froblem in osal_start_timerEx();

I'm using this function for periodic sending data for every 1 min by calling osal_start_timerEx();. But after every 5 min, 5th min data sending twice.

i.e. 5th min data send twice

10th min data twice

15th min data twice so on...


This osal_start_timerEx(); calling twice for every 5 min at a time.

the below code shows how I'm calling

if( events & PERIODIC_EVT )
{
    WatchdogClear();
   // periodic Activity if device is in network //
    if(bdb_isDeviceNonFactoryNew())
   {
      osal_start_timerEx( Kiko_Activity_TaskID, PERIODIC_EVT,20000 );
      do_Periodic_Report();
      return (events ^ PERIODIC_EVT);
   }

        }

TM4C129ENCPDT: Stabilizing Voltage capacitor

Part Number:TM4C129ENCPDT

Hi Charle sir,

I have doubt related to capacitor selection near the 5v input  power connector. I am designing a control card which has 5V input with 1A and also i am using voltage regulator from 5v to 3.3v.

We are using 5v with 40A SMPS. Then how to calculate the capacitor value near this 5v input power connector.

BQSTUDIO: Cannot find option 6: NMC or NCA for ChemType in BQStudio - GPC Packager for CEDV gauge

Part Number:BQSTUDIO

Hi,

I wanted to select the option 6 in Chemistry Type which is NMC or NCA in GPC Packager as mentioned in "Simple Guide to CEDV Data Collection for Gauging Parameter Calculator (GPC)" document (latest version in 2018).

I have downloaded the latest version of BQStudio 1.3.54.1 and even updated the chemistry file using the chemistry updater zip file (Rev EB).

Let me know what else will I have to update?

TIDA-00779: Boost Inductor value

Part Number:TIDA-00779

Hi,

I am trying to develop this 3.5kW pfc using TI reference 230-V, 3.5-kW PFC (TIDA-00779). 

Unfortunately, schematic and BOM indicate different values for L1. 

Is L1 180uH, 30A or 780uH, 30A?

Where can I buy evaluation module  TIDA-00779?

With regards,

Rupesh 

 

 


SN65HVD07: rs485 full dublex tranceiver and 5V biss position encoder

Part Number:SN65HVD07

1)      My encoder send differential data with 5 Volt to SN65HVD7X

2)      SN65HVD7X convert to differential data to single data also it decrease voltage to 3.3 V so that my controller are not damaged

3)      My microcontroller clock is 3.3 V go to SN65HVD7X (as single line)

4)      SN65HVD7X convert 3.3 V single clock (coming from microcontroller) to differential data but still 3.3 V NOT 5 Volt?

 My question is about (4. specification) Normally encoder MA+ and MA- should be work master CLOCK (5 Volt ) however it is 3.3 Volt

Can it be problem?

In other words, if I dont use level shifter (3.3 -5 V ) it is problem for my design?

Is there any chip used as both level shifter and tranciver?

Image may be NSFW.
Clik here to view.

CCS/TMS320F28377D: CLA FILTER WORKS IN RAM BUT IT DOESN'T WORK IN FLASH

Part Number:TMS320F28377D

Tool/software: Code Composer Studio

Hi.

I develop a filter that works in CLA when running in RAM debug configuration. Now, if I upload code in FLASH, it stops to function: I didn't see output by DAC; I see cla/cpu shared input var change in whatch window but output var is stuck to zero value. If I stop code with intrinsic __mdebugstop() and execute istruction step by step. I see good execution of math istruction (right value in MRx regs)  but assign to local vars doesn't occur (es. in 0x8904). Why does it happen in FLASH configuration ?

Finally, Linker didn't emit error when create .out program file in FLASH debug configuration.

Thanks for your help.

Diego

PS: Following I attach my linker cmd FLASH file

// The user must define CLA_C in the project linker settings if using the
// CLA C compiler
// Project Properties -> C2000 Linker -> Advanced Options -> Command File
// Preprocessing -> --define
#ifdef CLA_C
// Define a size for the CLA scratchpad area that will be used
// by the CLA compiler for local symbols and temps
// Also force references to the special symbols that mark the
// scratchpad are.
CLA_SCRATCHPAD_SIZE = 0x100;
--undef_sym=__cla_scratchpad_end
--undef_sym=__cla_scratchpad_start
#endif //CLA_C

MEMORY
{
   PAGE 0 :
   /* BEGIN is used for the "boot to SARAM" bootloader mode   */

   BEGIN           	: origin = 0x080000, length = 0x000002
   RAMM0           	: origin = 0x000122, length = 0x0002DE
   RAMD0           	: origin = 0x00B000, length = 0x000800
   RAMGS0           : origin = 0x00C000, length = 0x001000
   RAMGS1           : origin = 0x00D000, length = 0x001000
// RAMLS0          	: origin = 0x008000, length = 0x000800
// RAMLS1          	: origin = 0x008800, length = 0x000800
   RAMLS0_LS1     	: origin = 0x008000, length = 0x001000
   RAMLS4      	    : origin = 0x00A000, length = 0x000800
   RAMLS5           : origin = 0x00A800, length = 0x000800
// RAMLS4_LS5     	: origin = 0x00A000, length = 0x001000
   RAMGS14          : origin = 0x01A000, length = 0x001000     /* Only Available on F28379D, F28377D, F28375D devices. Remove line on other devices. */
   RAMGS15          : origin = 0x01B000, length = 0x001000     /* Only Available on F28379D, F28377D, F28375D devices. Remove line on other devices. */
   RESET           	: origin = 0x3FFFC0, length = 0x000002

   /* Flash sectors */
   FLASHA           : origin = 0x080002, length = 0x001FFE	/* on-chip Flash */
   FLASHB           : origin = 0x082000, length = 0x002000	/* on-chip Flash */
   FLASHC           : origin = 0x084000, length = 0x002000	/* on-chip Flash */
   FLASHD           : origin = 0x086000, length = 0x002000	/* on-chip Flash */
   FLASHE           : origin = 0x088000, length = 0x008000	/* on-chip Flash */
   FLASHF           : origin = 0x090000, length = 0x008000	/* on-chip Flash */
   FLASHG           : origin = 0x098000, length = 0x008000	/* on-chip Flash */
   FLASHH           : origin = 0x0A0000, length = 0x008000	/* on-chip Flash */
   FLASHI           : origin = 0x0A8000, length = 0x008000	/* on-chip Flash */
   FLASHJ           : origin = 0x0B0000, length = 0x008000	/* on-chip Flash */
   FLASHK           : origin = 0x0B8000, length = 0x002000	/* on-chip Flash */
   FLASHL           : origin = 0x0BA000, length = 0x002000	/* on-chip Flash */
   FLASHM           : origin = 0x0BC000, length = 0x002000	/* on-chip Flash */
   FLASHN           : origin = 0x0BE000, length = 0x002000	/* on-chip Flash */

PAGE 1 :

   BOOT_RSVD        : origin = 0x000002, length = 0x000120     /* Part of M0, BOOT rom will use this for stack */
   RAMM1            : origin = 0x000400, length = 0x000400     /* on-chip RAM block M1 */

// RAMLS0          	: origin = 0x008000, length = 0x000800
// RAMLS1          	: origin = 0x008800, length = 0x000800
// RAMLS0_LS1     	: origin = 0x008000, length = 0x001000
   RAMLS2      		: origin = 0x009000, length = 0x000800
   RAMLS3      		: origin = 0x009800, length = 0x000800

// RAMGS0           : origin = 0x00C000, length = 0x001000
// RAMGS1           : origin = 0x00D000, length = 0x001000
   RAMGS2           : origin = 0x00E000, length = 0x001000
   RAMGS3           : origin = 0x00F000, length = 0x001000
   RAMGS4           : origin = 0x010000, length = 0x001000
   RAMGS5           : origin = 0x011000, length = 0x001000
   RAMGS6           : origin = 0x012000, length = 0x001000
   RAMGS7           : origin = 0x013000, length = 0x001000
   RAMGS8           : origin = 0x014000, length = 0x001000
   RAMGS9           : origin = 0x015000, length = 0x001000
   RAMGS10          : origin = 0x016000, length = 0x001000
   RAMGS11          : origin = 0x017000, length = 0x001000
   RAMGS12          : origin = 0x018000, length = 0x001000     /* Only Available on F28379D, F28377D, F28375D devices. Remove line on other devices. */
   RAMGS13          : origin = 0x019000, length = 0x001000     /* Only Available on F28379D, F28377D, F28375D devices. Remove line on other devices. */
   RAMGS14          : origin = 0x01A000, length = 0x001000     /* Only Available on F28379D, F28377D, F28375D devices. Remove line on other devices. */
   RAMGS15          : origin = 0x01B000, length = 0x001000     /* Only Available on F28379D, F28377D, F28375D devices. Remove line on other devices. */

   CANA_MSG_RAM     : origin = 0x049000, length = 0x000800
   CANB_MSG_RAM     : origin = 0x04B000, length = 0x000800

   CLA1_MSGRAMLOW   : origin = 0x001480, length = 0x000080
   CLA1_MSGRAMHIGH  : origin = 0x001500, length = 0x000080
}


SECTIONS
{
   /* Allocate program areas: */
   .cinit           : > FLASHB      PAGE = 0, ALIGN(4)
   .pinit           : > FLASHB,     PAGE = 0, ALIGN(4)
// .text            : > FLASHB      PAGE = 0, ALIGN(4)
   .text            : >> FLASHB | FLASHC | FLASHD | FLASHE, PAGE = 0, ALIGN(4)
   codestart        : > BEGIN       PAGE = 0, ALIGN(4)

   /* Allocate uninitalized data sections: */
   .stack           : > RAMM1        PAGE = 1
   .ebss            : > RAMLS2       PAGE = 1
   .esysmem         : > RAMLS2       PAGE = 1

   /* Initalized sections go in Flash */
   .econst          : > FLASHB      PAGE = 0, ALIGN(4)
   .switch          : > FLASHB      PAGE = 0, ALIGN(4)

   .reset           : > RESET,     PAGE = 0, TYPE = DSECT /* not used, */

   Filter_RegsFile  : > RAMGS2,	   PAGE = 1

    /* CLA specific sections */
   Cla1Prog         : LOAD = FLASHD,
                      RUN = RAMLS4,
                      LOAD_START(_Cla1funcsLoadStart),
                      LOAD_END(_Cla1funcsLoadEnd),
                      RUN_START(_Cla1funcsRunStart),
                      LOAD_SIZE(_Cla1funcsLoadSize),
                      PAGE = 0, ALIGN(4)

   CLADataLS5		: > RAMLS5,    PAGE = 0
   CLA1mathTables	: > RAMLS5,	   PAGE = 0 		// Section Added at 04/2017

   Cla1ToCpuMsgRAM  : > CLA1_MSGRAMLOW,   PAGE = 1
   CpuToCla1MsgRAM  : > CLA1_MSGRAMHIGH,  PAGE = 1

   /* Allocate IQ math areas: */
   IQmath			: > RAMLS0_LS1, PAGE = 0        /* Math Code */
   IQmathTables		: > RAMLS0_LS1,	PAGE = 0

// SHARERAMGS0		: > RAMGS0,		PAGE = 0		// CPU1 PROGRAM AREA
// SHARERAMGS1		: > RAMGS1,		PAGE = 0		// CPU1 PROGRAM AREA
// SHARERAMGS2		: > RAMGS2,		PAGE = 1		// CPU1 PROGRAM AREA
// SHARERAMGS3		: > RAMGS3,		PAGE = 1		// CPU1 DATA AREA
// SHARERAMGS4		: > RAMGS4,		PAGE = 1
// SHARERAMGS5		: > RAMGS5,		PAGE = 1
// SHARERAMGS6		: > RAMGS6,		PAGE = 1
// SHARERAMGS7		: > RAMGS7,		PAGE = 1
// SHARERAMGS8		: > RAMGS8,		PAGE = 1
// SHARERAMGS9		: > RAMGS9,		PAGE = 1
// SHARERAMGS10		: > RAMGS10,	PAGE = 1
// SHARERAMGS11		: > RAMGS11,	PAGE = 1
// SHARERAMGS12		: > RAMGS12,	PAGE = 1     	/* Only Available on F28379D, F28377D, F28375D devices. Remove line on other devices. */
// SHARERAMGS13		: > RAMGS13,	PAGE = 1     	/* Only Available on F28379D, F28377D, F28375D devices. Remove line on other devices. */   // DATA EXCHANGE BETWEEN CPU
   SHARERAMGS14		: > RAMGS14,	PAGE = 1     	/* Only Available on F28379D, F28377D, F28375D devices. Remove line on other devices. */
   SHARERAMGS15		: > RAMGS15,	PAGE = 1     	/* Only Available on F28379D, F28377D, F28375D devices. Remove line on other devices. */

#ifdef __TI_COMPILER_VERSION__
   #if __TI_COMPILER_VERSION__ >= 15009000
    .TI.ramfunc : {} LOAD = FLASHD,
					 RUN = RAMLS0_LS1,
                     LOAD_START(_RamfuncsLoadStart),
                     LOAD_SIZE(_RamfuncsLoadSize),
                     LOAD_END(_RamfuncsLoadEnd),
                     RUN_START(_RamfuncsRunStart),
                     RUN_SIZE(_RamfuncsRunSize),
                     RUN_END(_RamfuncsRunEnd),
					 PAGE = 0, ALIGN(4)
   #else
   ramfuncs :		 LOAD = FLASHD,
                     RUN = RAMLS0_LS1,
                     LOAD_START(_RamfuncsLoadStart),
                     LOAD_SIZE(_RamfuncsLoadSize),
                     LOAD_END(_RamfuncsLoadEnd),
                     RUN_START(_RamfuncsRunStart),
                     RUN_SIZE(_RamfuncsRunSize),
                     RUN_END(_RamfuncsRunEnd),
                     PAGE = 0, ALIGN(4)
   #endif
#endif

   /* The following section definition are for SDFM examples */
   Filter1_RegsFile : > RAMGS3,	PAGE = 1, fill=0x1111
   Filter2_RegsFile : > RAMGS4,	PAGE = 1, fill=0x2222
   Filter3_RegsFile : > RAMGS5,	PAGE = 1, fill=0x3333
   Filter4_RegsFile : > RAMGS6,	PAGE = 1, fill=0x4444

#ifdef CLA_C
   /* CLA C compiler sections */
   //
   // Must be allocated to memory the CLA has write access to
   //
   CLAscratch       :
                     { *.obj(CLAscratch)
                     . += CLA_SCRATCHPAD_SIZE;
                     *.obj(CLAscratch_end) } >  RAMLS5,  PAGE = 0

   .scratchpad      : > RAMLS5,       PAGE = 0
   .bss_cla		    : > RAMLS5,       PAGE = 0
   .const_cla	    :  LOAD = FLASHB,
                       RUN = RAMLS5,
                       RUN_START(_Cla1ConstRunStart),
                       LOAD_START(_Cla1ConstLoadStart),
                       LOAD_SIZE(_Cla1ConstLoadSize),
                       PAGE = 0
#endif //CLA_C
}

/*
//===========================================================================
// End of file.
//===========================================================================
*/

// The user must define CLA_C in the project linker settings if using the
// CLA C compiler
// Project Properties -> C2000 Linker -> Advanced Options -> Command File
// Preprocessing -> --define
#ifdef CLA_C
// Define a size for the CLA scratchpad area that will be used
// by the CLA compiler for local symbols and temps
// Also force references to the special symbols that mark the
// scratchpad are.
CLA_SCRATCHPAD_SIZE = 0x100;
--undef_sym=__cla_scratchpad_end
--undef_sym=__cla_scratchpad_start
#endif //CLA_C

MEMORY
{
   PAGE 0 :
   /* BEGIN is used for the "boot to SARAM" bootloader mode   */

   BEGIN               : origin = 0x080000, length = 0x000002
   RAMM0               : origin = 0x000122, length = 0x0002DE
   RAMD0               : origin = 0x00B000, length = 0x000800
   RAMGS0           : origin = 0x00C000, length = 0x001000
   RAMGS1           : origin = 0x00D000, length = 0x001000
// RAMLS0              : origin = 0x008000, length = 0x000800
// RAMLS1              : origin = 0x008800, length = 0x000800
   RAMLS0_LS1         : origin = 0x008000, length = 0x001000
   RAMLS4              : origin = 0x00A000, length = 0x000800
   RAMLS5           : origin = 0x00A800, length = 0x000800
// RAMLS4_LS5         : origin = 0x00A000, length = 0x001000
   RAMGS14          : origin = 0x01A000, length = 0x001000     /* Only Available on F28379D, F28377D, F28375D devices. Remove line on other devices. */
   RAMGS15          : origin = 0x01B000, length = 0x001000     /* Only Available on F28379D, F28377D, F28375D devices. Remove line on other devices. */
   RESET               : origin = 0x3FFFC0, length = 0x000002

   /* Flash sectors */
   FLASHA           : origin = 0x080002, length = 0x001FFE    /* on-chip Flash */
   FLASHB           : origin = 0x082000, length = 0x002000    /* on-chip Flash */
   FLASHC           : origin = 0x084000, length = 0x002000    /* on-chip Flash */
   FLASHD           : origin = 0x086000, length = 0x002000    /* on-chip Flash */
   FLASHE           : origin = 0x088000, length = 0x008000    /* on-chip Flash */
   FLASHF           : origin = 0x090000, length = 0x008000    /* on-chip Flash */
   FLASHG           : origin = 0x098000, length = 0x008000    /* on-chip Flash */
   FLASHH           : origin = 0x0A0000, length = 0x008000    /* on-chip Flash */
   FLASHI           : origin = 0x0A8000, length = 0x008000    /* on-chip Flash */
   FLASHJ           : origin = 0x0B0000, length = 0x008000    /* on-chip Flash */
   FLASHK           : origin = 0x0B8000, length = 0x002000    /* on-chip Flash */
   FLASHL           : origin = 0x0BA000, length = 0x002000    /* on-chip Flash */
   FLASHM           : origin = 0x0BC000, length = 0x002000    /* on-chip Flash */
   FLASHN           : origin = 0x0BE000, length = 0x002000    /* on-chip Flash */

PAGE 1 :

   BOOT_RSVD        : origin = 0x000002, length = 0x000120     /* Part of M0, BOOT rom will use this for stack */
   RAMM1            : origin = 0x000400, length = 0x000400     /* on-chip RAM block M1 */

// RAMLS0              : origin = 0x008000, length = 0x000800
// RAMLS1              : origin = 0x008800, length = 0x000800
// RAMLS0_LS1         : origin = 0x008000, length = 0x001000
   RAMLS2              : origin = 0x009000, length = 0x000800
   RAMLS3              : origin = 0x009800, length = 0x000800

// RAMGS0           : origin = 0x00C000, length = 0x001000
// RAMGS1           : origin = 0x00D000, length = 0x001000
   RAMGS2           : origin = 0x00E000, length = 0x001000
   RAMGS3           : origin = 0x00F000, length = 0x001000
   RAMGS4           : origin = 0x010000, length = 0x001000
   RAMGS5           : origin = 0x011000, length = 0x001000
   RAMGS6           : origin = 0x012000, length = 0x001000
   RAMGS7           : origin = 0x013000, length = 0x001000
   RAMGS8           : origin = 0x014000, length = 0x001000
   RAMGS9           : origin = 0x015000, length = 0x001000
   RAMGS10          : origin = 0x016000, length = 0x001000
   RAMGS11          : origin = 0x017000, length = 0x001000
   RAMGS12          : origin = 0x018000, length = 0x001000     /* Only Available on F28379D, F28377D, F28375D devices. Remove line on other devices. */
   RAMGS13          : origin = 0x019000, length = 0x001000     /* Only Available on F28379D, F28377D, F28375D devices. Remove line on other devices. */
   RAMGS14          : origin = 0x01A000, length = 0x001000     /* Only Available on F28379D, F28377D, F28375D devices. Remove line on other devices. */
   RAMGS15          : origin = 0x01B000, length = 0x001000     /* Only Available on F28379D, F28377D, F28375D devices. Remove line on other devices. */

   CANA_MSG_RAM     : origin = 0x049000, length = 0x000800
   CANB_MSG_RAM     : origin = 0x04B000, length = 0x000800

   CLA1_MSGRAMLOW   : origin = 0x001480, length = 0x000080
   CLA1_MSGRAMHIGH  : origin = 0x001500, length = 0x000080
}


SECTIONS
{
   /* Allocate program areas: */
   .cinit           : > FLASHB      PAGE = 0, ALIGN(4)
   .pinit           : > FLASHB,     PAGE = 0, ALIGN(4)
// .text            : > FLASHB      PAGE = 0, ALIGN(4)
   .text            : >> FLASHB | FLASHC | FLASHD | FLASHE, PAGE = 0, ALIGN(4)
   codestart        : > BEGIN       PAGE = 0, ALIGN(4)

   /* Allocate uninitalized data sections: */
   .stack           : > RAMM1        PAGE = 1
   .ebss            : > RAMLS2       PAGE = 1
   .esysmem         : > RAMLS2       PAGE = 1

   /* Initalized sections go in Flash */
   .econst          : > FLASHB      PAGE = 0, ALIGN(4)
   .switch          : > FLASHB      PAGE = 0, ALIGN(4)

   .reset           : > RESET,     PAGE = 0, TYPE = DSECT /* not used, */

   Filter_RegsFile  : > RAMGS2,       PAGE = 1

    /* CLA specific sections */
   Cla1Prog         : LOAD = FLASHD,
                      RUN = RAMLS4,
                      LOAD_START(_Cla1funcsLoadStart),
                      LOAD_END(_Cla1funcsLoadEnd),
                      RUN_START(_Cla1funcsRunStart),
                      LOAD_SIZE(_Cla1funcsLoadSize),
                      PAGE = 0, ALIGN(4)

   CLADataLS5        : > RAMLS5,    PAGE = 0
   CLA1mathTables    : > RAMLS5,       PAGE = 0         // Section Added at 04/2017

   Cla1ToCpuMsgRAM  : > CLA1_MSGRAMLOW,   PAGE = 1
   CpuToCla1MsgRAM  : > CLA1_MSGRAMHIGH,  PAGE = 1

   /* Allocate IQ math areas: */
   IQmath            : > RAMLS0_LS1, PAGE = 0        /* Math Code */
   IQmathTables        : > RAMLS0_LS1,    PAGE = 0

// SHARERAMGS0        : > RAMGS0,        PAGE = 0        // CPU1 PROGRAM AREA
// SHARERAMGS1        : > RAMGS1,        PAGE = 0        // CPU1 PROGRAM AREA
// SHARERAMGS2        : > RAMGS2,        PAGE = 1        // CPU1 PROGRAM AREA
// SHARERAMGS3        : > RAMGS3,        PAGE = 1        // CPU1 DATA AREA
// SHARERAMGS4        : > RAMGS4,        PAGE = 1
// SHARERAMGS5        : > RAMGS5,        PAGE = 1
// SHARERAMGS6        : > RAMGS6,        PAGE = 1
// SHARERAMGS7        : > RAMGS7,        PAGE = 1
// SHARERAMGS8        : > RAMGS8,        PAGE = 1
// SHARERAMGS9        : > RAMGS9,        PAGE = 1
// SHARERAMGS10        : > RAMGS10,    PAGE = 1
// SHARERAMGS11        : > RAMGS11,    PAGE = 1
// SHARERAMGS12        : > RAMGS12,    PAGE = 1         /* Only Available on F28379D, F28377D, F28375D devices. Remove line on other devices. */
// SHARERAMGS13        : > RAMGS13,    PAGE = 1         /* Only Available on F28379D, F28377D, F28375D devices. Remove line on other devices. */   // DATA EXCHANGE BETWEEN CPU
   SHARERAMGS14        : > RAMGS14,    PAGE = 1         /* Only Available on F28379D, F28377D, F28375D devices. Remove line on other devices. */
   SHARERAMGS15        : > RAMGS15,    PAGE = 1         /* Only Available on F28379D, F28377D, F28375D devices. Remove line on other devices. */

#ifdef __TI_COMPILER_VERSION__
   #if __TI_COMPILER_VERSION__ >= 15009000
    .TI.ramfunc : {} LOAD = FLASHD,
                     RUN = RAMLS0_LS1,
                     LOAD_START(_RamfuncsLoadStart),
                     LOAD_SIZE(_RamfuncsLoadSize),
                     LOAD_END(_RamfuncsLoadEnd),
                     RUN_START(_RamfuncsRunStart),
                     RUN_SIZE(_RamfuncsRunSize),
                     RUN_END(_RamfuncsRunEnd),
                     PAGE = 0, ALIGN(4)
   #else
   ramfuncs :         LOAD = FLASHD,
                     RUN = RAMLS0_LS1,
                     LOAD_START(_RamfuncsLoadStart),
                     LOAD_SIZE(_RamfuncsLoadSize),
                     LOAD_END(_RamfuncsLoadEnd),
                     RUN_START(_RamfuncsRunStart),
                     RUN_SIZE(_RamfuncsRunSize),
                     RUN_END(_RamfuncsRunEnd),
                     PAGE = 0, ALIGN(4)
   #endif
#endif

   /* The following section definition are for SDFM examples */
   Filter1_RegsFile : > RAMGS3,    PAGE = 1, fill=0x1111
   Filter2_RegsFile : > RAMGS4,    PAGE = 1, fill=0x2222
   Filter3_RegsFile : > RAMGS5,    PAGE = 1, fill=0x3333
   Filter4_RegsFile : > RAMGS6,    PAGE = 1, fill=0x4444

#ifdef CLA_C
   /* CLA C compiler sections */
   //
   // Must be allocated to memory the CLA has write access to
   //
   CLAscratch       :
                     { *.obj(CLAscratch)
                     . += CLA_SCRATCHPAD_SIZE;
                     *.obj(CLAscratch_end) } >  RAMLS5,  PAGE = 0

   .scratchpad      : > RAMLS5,       PAGE = 0
   .bss_cla            : > RAMLS5,       PAGE = 0
   .const_cla        :  LOAD = FLASHB,
                       RUN = RAMLS5,
                       RUN_START(_Cla1ConstRunStart),
                       LOAD_START(_Cla1ConstLoadStart),
                       LOAD_SIZE(_Cla1ConstLoadSize),
                       PAGE = 0
#endif //CLA_C
}

/*
//===========================================================================
// End of file.
//===========================================================================
*/

CCS/MSP430F6459: Using INCLK (TAINCLK) on the MSP430F2274

Part Number:MSP430F6459

Tool/software: Code Composer Studio

Hi,

We want to measure the frequency of an external coming signal. So is it possible to give external signal to INCLK pin and TAxCLK pin? If its possible, we want to know if the frequency can be measured without using interrupt method. Kindly provide us an insight about this as soon as possible. 

Thanks & Regards

Linux/66AK2H12: SRIO on dsp core and data in linux

Part Number:66AK2H12

Tool/software: Linux

Hi. I used k2h evm and  Im new to linux.

i generated a code for SRIO running on dsp cores. i used mpmcl library for load and run .out file on dsp core in linux enviroment.

i need to access (draw a plot) processed SRIO data on ddr3 from linux.

what is the best way for communication between dsp and arm cores (IPC, OpenCL or...)?

Is it possible to use SRIO directIO Packet in linux environment?

CC2541: Internal temperature sensor and pins P0.0, P0.1

Part Number:CC2541

Hello

If the internal temperature sensor is enabled, the pins P0.0 and P0.1 do not become digital inputs / outputs and this can not be changed through the APCFG, P0SEL registers.
After turning off the temperature sensor, the pins can again be used as digital inputs / outputs.

; ==========
;At this point, the pins P0.0, P0.1 digital inputs/outputs

mov dptr, # TR0
mov a, # 1
movx @ dptr, a

mov dptr, # ATEST
mov a, # 1
movx @ dptr, a

;At this point, the pins are not digital inputs/outputs and are not available for configuration.

mov dptr, # ATEST
mov a, # 0
movx @ dptr, a

;Pins work again as digital inputs/outputs

In datasheet nothing is said about this. Perhaps you have some ideas?

www.ti.com/.../swru191f.pdf

Compiler/DLPDLCR2010EVM: Simple C++ to upload images and display

Part Number:DLPDLCR2010EVM

Tool/software: TI C/C++ Compiler

I have the 2010 DLP EVM and need to be able to control it from my own code.

I have the GUI but I cannot find an SDK (only the one for the 3000 up)

How do I build my own code to perform simple display tasks (create and upload images, display a particular image by index, and trigger cameras)? Is there any demo or support ?

Thanks

BQ24773: How to select switching Mosfet if I need 17A peak current for SYS and 8A and 1.5A average current for SYS and Charging?

Part Number:BQ24773

How to select switching Mosfet if I need 17A peak current for SYS and 8A and 1.5A average current for SYS and Charging?

By the way, it is applied 1.2Mhz for switching and 2.2uH inductor. 


TLC5949: minimal connections needed

Part Number:TLC5949

Hello @all,

i searched the TI led-drivers and forum and found TLC5949 -
if i have read the short overview and diagrams correct this normally needs 4 pins to be controlled.
i don't have full read & understand the datasheet yet -
i think the Auto Display Repeat and Auto Data Refresh bits could be used to get rid of the LAT signal.
is it possible to use the SCLK also for as the signal for the GSCLK?
with this i could get down to 2 pins / signals?!
i know that it will get confused if the clock signal gets interruppted or paused -
so then i would need to make sure that my driving microcontroller never stops the SPI-Clock.. (i have to read into this..)

thanks for any tips regadring this :-)

sunny greetings
stefan

TLC5951: anyone experiences? knows the minimal needed connections and/or example code for embedded linux or arduino??

Part Number:TLC5951

Hello @all,

i searched your led-drivers and forum and found TLC5951 -
if i have read the short overview correct this one can be switched between 12/10/8bit pwm-resolution. -
and also can be switch between normal PWM and ES-PWM
that sound really cool for my experimentation needs!
i don't have full read & understand the datasheet yet -
but it seems i would need a lot of connections to control it...
- at the first look it seems the GSCKR, GSCKG and GSCKB could be provided by only one source.
and also on an first scan through the document i saw section 9.4.5 that mentions that the control registers can also be written by the GSSIN and GSSCK pins.
and i actually hoped to only need 2 or 3 pins total - so i can use an SPI output from an embedded linux system
if its possible to use the GSSCK also as clock for GSCKR, GSCKG and GSCKB i think i could get away with 3 connections:

  • GSSIN
  • GSSCK
  • XBLNK


is this correct?
or what are the minimal connections needed to use it?
has someone experiences with this chip?
and / or knows an arduino or embedded linux sample code to drive it?

thanks for any tips regarding this :-)

sunny greetings
stefan

How to register TI's account

CCS/TMDX5535EZDSP: DMA problem after bootloader

Part Number:TMDX5535EZDSP

Tool/software: Code Composer Studio

Hello, I'm trying to copy one buffer to another using DMA. 
The program successfully works under the debugger, but after loading from micro SD the DMA does nothing.
I checked that after configuring DMA and performing DMA_start,
the DMA registers contain the correct values, but they do not change in the future.
Here is my code:

#include "csl_dma.h" #include "csl_gpio.h" #include "csl_sysctrl.h" #include <csl_general.h> #define SIZE 1024 #define CSL_RED_LED 16 extern void VECSTART(void); /* Declaration of the buffer */ Uint16 src[SIZE]; Uint16 dst[SIZE]; CSL_DMA_ChannelObj dmaObj; CSL_DMA_Handle hDMA; CSL_DMA_Config dmaConfig; CSL_GpioObj gpioObj; GPIO_Handle hGPIO; CSL_Status status; CSL_GpioPinConfig gpioConfig = { CSL_RED_LED, CSL_GPIO_DIR_OUTPUT, CSL_GPIO_TRIG_CLEAR_EDGE }; void main(void) { //-------------------------------------------------------- // System init //-------------------------------------------------------- IRQ_globalDisable(); // Disable interrupts CSL_SYSCTRL_REGS->PCGCR1 = 0; // Enable all pereferials CSL_SYSCTRL_REGS->PCGCR2 = 0; CSL_SYSCTRL_REGS->PSRCR = 0x0020; // Reset all pereferials CSL_SYSCTRL_REGS->PRCR = 0x00BF; while (CSL_SYSCTRL_REGS->PRCR != 0); //-------------------------------------------------------- // GPIO init //-------------------------------------------------------- // Pinmux for red LED SYS_setEBSR(CSL_EBSR_FIELD_PPMODE, CSL_EBSR_PPMODE_1); hGPIO = GPIO_open(&gpioObj, &status); // Init GPIO module GPIO_configBit(hGPIO, &gpioConfig); //-------------------------------------------------------- // DMA init //-------------------------------------------------------- dmaConfig.pingPongMode = CSL_DMA_PING_PONG_DISABLE; dmaConfig.autoMode = CSL_DMA_AUTORELOAD_DISABLE; dmaConfig.burstLen = CSL_DMA_TXBURST_8WORD; dmaConfig.trigger = CSL_DMA_SOFTWARE_TRIGGER; dmaConfig.dmaEvt = CSL_DMA_EVT_NONE; dmaConfig.dmaInt = CSL_DMA_INTERRUPT_DISABLE; dmaConfig.chanDir = CSL_DMA_READ; dmaConfig.trfType = CSL_DMA_TRANSFER_MEMORY; dmaConfig.dataLen = SIZE * 2; dmaConfig.srcAddr = (Uint32)src; dmaConfig.destAddr = (Uint32)dst; DMA_init(); hDMA = DMA_open(CSL_DMA_CHAN0, &dmaObj, &status); DMA_config(hDMA, &dmaConfig); //-------------------------------------------------------- // Algorithm //-------------------------------------------------------- DMA_start(hDMA); // Start transaction GPIO_write(hGPIO, CSL_RED_LED, 1); // led OFF while(DMA_getStatus (hDMA)) // Wait until transaction finished { } GPIO_write(hGPIO, CSL_RED_LED, 0); // led ON while(1); // Sleep }
Can someone point out an error or show a working example with DMA?

BQ25120A: Battery Charge Time.

Part Number:BQ25120A

Hello, development is complete and functional verification is in progress.

But there are some issues.




When applying BQ25120A, the charge time (until the charge completion bit is turned on) is always 2 hours even if the charge current or the termination current is changed several times.

The battery is using 160mAh and the charge must be completed within 1.5 hours of the design requirement,

If I change the charge condition several times, it takes about 2 hours to complete the charge. Is there no way to reduce the charging time to 1.5 hours?


The current applied resistance is

 ISET = 1.5Kohms,  (130mA)

 ILIM = 499ohms, (400mA)

 IPRETERM = 5.1Kohms (4.99Kohms),  (10% (=13mA))


Naturally, I set the same value through I2C.

Since the battery is 160mAh and the charging current is ISET = 130mA, it will be charged within about 1 hour and 30 minutes.
However, it takes about 2 hours to complete the charge test.

What settings do I need to complete charging within 1.5 hours?

Thanks,

Sunbae Yim.

Viewing all 262198 articles
Browse latest View live


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