Hi Nima, Managed to reach pulse width of 8 microseconds in 1 Hz PWM by using up-down mode. Can I use hardware resolution to generate even smaller pulse width? Thanks and Regards, Ankit
↧
Forum Post: RE: TMS320F28377S: Generating a high frequency square wave
↧
Forum Post: RE: MSP430FR2311: RTC Interval Incorrect
I believe that line of code tells it to use ACLK instead of SMCLK. I'm assuming this based on Figure 6-1 www.ti.com/.../msp430fr2311.pdf So by the figure I'm assuming with SYSCFG2 RTCCKSEL set, it overrides to use ACLK where I tell it to use SMCLK in the initRTC() function
↧
↧
Forum Post: RE: MSP-EXP432P401R: [MSP432][MSP432P401R] - UART using pins 3.2 and 3.3 - Not receiving anything in the receive buffer
Hi Manu, there is really something strange. it looks like that P3.2 does not work The expected result would be Without the jumper dir=0x04, out=0x04 -> p3in = 0x04 dir=0x08, out=0x08 -> p3in = 0x08 Without the jumper dir=0x04, out=0x04 -> p3in = 0x0C dir=0x08, out=0x08 -> p3in = 0x0C Can you check this on another board? Regards, Stefan
↧
Forum Post: RE: CCS/MSP430FR5739: After CCS update long running project cannot load with MSP-FET emulator "Error connecting to the target. Unknown device."
Hi Samuel, happy to hear the migration to CCS9 solved the problem. The CCS environment is a complex system consisting of many components, not really visible to you as a user. We try to maintain the compatibility when updating those components, but especially with older versions it gets more and more difficult. If everything works as intended, there should be nothing to change. The update procedure in CCS is from top level point of view as follows: If you have a CCSx version installed, you get all the updates for this CCSx, like in you case with CCS6.x. You got all the updates from CCS6.0 to whatever the highest version of CCS6.x was. But e.g. the migration from CCS6.x to CCS7.x does not happen by updates. You need to install another instance of CCS. On your side with the CCS6.x updates some of the components related to your original project got into a version mismatch probably. That's the most probable root cause for such issues. To explore a bit more in detail on the "image" topic, no matter how you create your code, whether it is assembler, C-Code, C++ etc. in the end the IDE creates the necessary machine code, which is programmed into the device, as this is the only code the microcontroller understands. Usually, when working with an IDE like the CCS, you do not look into this code and do not generate the so called image file, which is the reflection of this machine code. But if you want you can see it, e.g. by opening the pull-down menu "View>>Disassembly". There you can see, e.g. in case you have written the code in C, the C instructions, the translation to assembler, and the final machine code. The image file is sort of just the machine code, including some other instructions, or markers, dependent on the format, where accross the industry some different standards have been established, like Intel HEX, TI .txt and others. This is about how the machine code information is stored in the respective file, including information about the code placement in the program memory of the MCU. This image file is not generated by default, as not needed by the IDE, which uses it's own format. To enable the creation of such an image file, one has to go to the project properties >> MSP430 HEX Utility >> enable MSP430 Hex Utility >> Output Format Options >> click on the Output Format selection on the right >> select desired format e.g. TI-TXT. The advantage of such a file is, it does not change anymore with IDE or Compiler updates. The disadvantage is, in case you want to change some values, like in your case IDs, you would need to know the location of the IDs and change the file manually, which is pretty risky, as if you make a mistake, there is no compile check or anything that would tell you. The other option would be using this image file in combination with a professional production programmer, like our MSP-GANG , which supports features like serialization, means updating some IDs with each and every programming cycle to support recognition of the devices by a unique ID. If you want to learn more about this, please visit the landing page of our Gang programmer www.ti.com/.../msp-gang and the related User's Guide. Best regards Peter
↧
Forum Post: RE: MSP430FR6047: flow meter using TM12864H6CCGWA graphical lcd
Hello Kaushal, you're welcome. Best regards Peter
↧
↧
Forum Post: RE: Linux/MSP430FR2512: EVM430 Capmini -demo current consumption drops by 2mA about 3 minutes after power on
Hi Yiding, Thanks. Power consumption become a critical issue now. What is the expected active consumption and low power mode for 3 sensors? As far as I know , it shoud be uA level in wake on touch, as described in: www.ti.com/.../msp430fr2512.pdf Regards, Walter
↧
Forum Post: TMS320F28069M: How to Clear capture event status Flag in MATLAB.
Part Number: TMS320F28069M I am working on motor control and i am able to read the speed from the Hall sensor using the Capture module in Matlab-Simulink, But when I give stop command to the motor, the last capture value is passed on for my speed calculation. and hence giving a false reading. For this, I am thinking to use either capture interrupt flag or capture event status register, But I adon't know how to make this value zero so that I can differentiate between fresh capture status. Hope Somebody can help.
↧
Forum Post: CCS/MSP430F5419A: XT1 current in LMP4
Part Number: MSP430F5419A Tool/software: Code Composer Studio Hi, I have a board which has an external 16Mhz crystal on XT1. I have code which runs this board either from the internal DCO @ 16Mhz or using the external xtal. When configured for the external oscillator i'm getting about 350uA more current when in LMP4 mode than with the internal DCO. Is there something I should be doing to turn off the XT1 before going into LMP4? void InitXTAL(void) { //Set Up Vcore Voltage Level 2 up to 20Mhz PMM_setVCore(PMM_CORE_LEVEL_2); #ifdef INT_XTAL //Configure XTAL IO GPIOConfigOutputLow(IO_XTAL_XT1_XIN); //XT1 Output Low GPIOConfigOutputLow(IO_XTAL_XT1_XOUT); //XT1 Output Low UCSCTL3 = SELREF__REFOCLK; // FLL: REFO UCSCTL4 = SELA__REFOCLK | SELS__DCOCLK | SELM__DCOCLK; //ACLK: REFO, SMCLK: DCO, MCLK: DCO UCSCTL5 = DIVS__2; //SMCLK: /2 UCSCTL6 = XT1OFF | XT2OFF; // turn off XT1 and XT2 // Initialize DCO to 16.00MHz __bis_SR_register(SCG0); // Disable the FLL control loop UCSCTL0 = 0x0000u; // Set lowest possible DCOx, MODx UCSCTL1 = DCORSEL_7; // Set RSELx for DCO = 50 MHz UCSCTL2 = 488u; // Set DCO Multiplier for 16MHz // (N + 1) * FLLRef = Fdco // (488 + 1) * 32768 = 16MHz __bic_SR_register(SCG0); // Enable the FLL control loop // Worst-case settling time for the DCO when the DCO range bits have been // changed is n x 32 x 32 x f_MCLK / f_FLL_reference. See UCS chapter in 5xx // UG for optimization. // 32*32*16MHz/32768Hz = 500000 = MCLK cycles for DCO to settle __delay_cycles(500000u); #else //Ext XTAL //Config XTAL IO GPIODirInput(IO_XTAL_XT1_XIN); //Input GPIODirOutput(IO_XTAL_XT1_XOUT); //Output GPIOPeripheralEnable(IO_XTAL_XT1_XIN); //Set XIN as peripheral function which is XT1 GPIOPeripheralEnable(IO_XTAL_XT1_XOUT); //Set XOUT as peripheral function which is XT1 //Enable XT1 with mid drive strength UCSCTL6 = XTS | XT1DRIVE_1 | XT2OFF; //XTAL = 16MHz - MCLK 16MHz - SMCLK 8MHz UCSCTL4 = SELA__REFOCLK | SELS__XT1CLK | SELM__XT1CLK; //ACLK: REFO, SMCLK: XT1, MCLK: XT1 UCSCTL5 = DIVS__2; //SMCLK: /2 #endif //Make sure ACLK stays on all the time BitSet(UCSCTL8, ACLKREQEN); /* Loop until XT1,XT2 & DCO fault flag is cleared */ do { // Clear XT2,XT1,DCO fault flags (Reset if still in fault) BitClear(UCSCTL7, (XT2OFFG + XT1LFOFFG + XT1HFOFFG + DCOFFG)); // Clear Oscillator fault flags BitClear(SFRIFG1, OFIFG); } while (BitTest(SFRIFG1,OFIFG)); //Test oscillator fault flag }
↧
Forum Post: CCS/LAUNCHXL-F28379D: problem running the eQEP C2000ware example
Part Number: LAUNCHXL-F28379D Tool/software: Code Composer Studio I tried the "eqep_pos_speed" example on C2000ware few days ago and everything was working fine. I wanted to try it again and suddenly the variable "SpeedRpm_fr" is not giving any value anymore. it's always 0. On the other hand the other value "SpeedRpm_pr" for low speed measurement is working perfectly. I starting to think that the problem is from my card (maybe heating ?). I just unpluged my card for like 30 minutes and plug it again and it's given me the value I want. And after little bit it gives me 0 again. I hope someone can help me identifying the source of problem.
↧
↧
Forum Post: TMS320F280045: Problem about the SDFM-1 Clock Input of 64 pin TMS320F280045
Part Number: TMS320F280045 In the datasheet, it is said there are 3 SDFM channels, but only two GPIO can be defined as SDFM Clock Input (SD1_C1 and SD1_C3). So if we want to use the third SDFM channel, how to define SD1_C2 or SD1_C4? There is no Pin defined in the datasheet.
↧
Forum Post: TMS320F28377S: SPI FIFO fill to CLK out delay
Part Number: TMS320F28377S Hi, There's a doubt about SPI timing. After filling the FIFO (for example, one word) to initiate a transmit, when can SPI CLK have the first pulse output? We found that, it was different in different baud rate. The SPI is used to connect a slave device, which has strict delay request. Thanks a lot. Br, Jordan
↧
Forum Post: RM48L952: RM48L952
Part Number: RM48L952 Hi sir/madam, In your project, we are using Ethernet interface to download the data. We are using DP83848 PHY IC and LWIP stack design for TCP/IP protocol . But we are facing issue that, our code is working fine with Qualcomm Atheros AR8171/8175 PCI-E (NDIS 6.30) , Intel(R) and Marvel Gigabit Ethernet Controller. Our code is not working fine with Realtek PCIe GBE Family Controller. Can you suggest idea. we are waiting for your reply, Thanks in advance
↧
Forum Post: TMDSHVMTRPFCKIT: Sensor speed used in the TI code for AC control motor.
Part Number: TMDSHVMTRPFCKIT Hi all, We are working on the Scalar and Sensorless motor control of the Asynchronous machine, We have the TMDSHVMTRPFCKIT development kit and we want to run the TI code to control the AC machine, My question is about the speed sensor used in AC projects, I want to know please, the speed sensor name already used in the TI code, how I could connect it to the TMDSHVMTRPFCKIT , datasheet, information may help to prevent damaging the speed sensor ? Thanks in advance for help, S.Tarik,
↧
↧
Forum Post: TMS320F28375D: XDS200 vs XDS510
Part Number: TMS320F28375D I am not able to program the referenced device when using the XDS200 emulator but can when using the XDS510. The problem seems to be the XDS200 cannot pull the TRST line low enough to reset the device prior to programming. A check of the waveform on TRST shows the XDS200 only pulls the signal to ~1.7Vdc where the XDS510 pulls the signal to ~1.3Vdc. My design has a CPLD on the TRST line as well that provides a +3.3V logic level.
↧
Forum Post: CCS/TMS320F28374D: CLA & C28x variables in L2 : compiler issue , wrong data passing --> quite likely data pager issue
Part Number: TMS320F28374D Tool/software: Code Composer Studio HI everybody , I m on F28374D , using CCS8.1 and compiler 18.x LTS . basically I use an area in L2 memory , CLA writes data and C28x reads the same variables ( read and write properties are fixed ) . now if I declare CLA variables in .cla file , issue is clear : C28x gets wrong values . if I declare CLA variable (Please visit the site to view this file) in a separate file .c like globalvariables.c , C28x reads data correctly. in attach you get screenshots and more details . could you confirm me what I found and proper way to declare Struct used in L2 by CLA ( write ) and C28x (read ) regards Carlo
↧
Forum Post: TMS320F28377S: Fapi_issueProgrammingCommand program one word at the time
Part Number: TMS320F28377S I'm trying to program flash. one word at the time and it doesn't work. I tied this: oReturnCheck = Fapi_issueProgrammingCommand((uint32_t *)(address+i),(data+i), 1,0,0, Fapi_AutoEccGeneration); Only this result in parts that are programmed and parts that are not. Is it possible to program 1 word at the time and if so how? Thanks! note oReturnCheck is alway Fapi_Status_Success
↧
Forum Post: CCS/MSP430F2274: donot interface i2c with adxl345 in msp430f2274
Part Number: MSP430F2274 Tool/software: Code Composer Studio hi friends, i tired to write program for adxl345 of i2c interface with msp430f 2274 by using code composer studiov5 version. but right now, i won't get interface the adxl345 with msp430 . any one can please help me to right way of the output. so this is my kit results.(Please visit the site to view this file)
↧
↧
Forum Post: RM46L852: Using Floating Point Unit in SIL 3 relevant Safety Code?
Part Number: RM46L852 Dear all, Can the FPU be used in a SIL 3 relevant application and/or are there any specifics to be take care? Thanks, BR, Matthias
↧
Forum Post: CCS/LAUNCHXL-F28379D: LAUNCHXL-F28379D DRV8305 PMSM
Part Number: LAUNCHXL-F28379D Tool/software: Code Composer Studio Hi All, I am trying to drive the PMSM LVSERVOMTR motor by using LAUNCHXL-F28379D . I have refer the LAUNCHXL-F28377S Code and make it working for F28379D. BUILDLEVEL 1 is working fine , But I have facing some issue on BUILDLEVEL 2 , While doing LEVEL2 it is stuck on TripFlagDMC and i am not getting QEP ElecTheta data. Can you suggest where i went wrong. Thank You.
↧
Forum Post: MSP432P401R: MSP432 I2C Address Byte for the HELLOALL Command
Part Number: MSP432P401R Hi Team, Do you know if there is any function(MSP432 works as i2c master) can support ONLY send the slave address BUT without sending any data? Something like below. Thanks.
↧