Part Number: TMS320F28377D in function "GPIO_SetupPinMux", there are some lines of configuration for mux, gmux and csel, as shows below: *mux &= ~(0x3UL > 2) & 0x3UL) << (2*pin16); *mux |= (Uint32)(peripheral & 0x3UL) << (2*pin16); *csel &= ~(0x3L << (4*pin8)); *csel |= (Uint32)(cpu & 0x3L) << (4*pin8); my question is , why for mux and gmux, 0x3UL is used, but 0x3L is used for csel? e2e.ti.com/.../3426.F2837xS_5F00_Gpio.c
↧
Forum Post: TMS320F28377D: GPIO_SetupPinMux 0x3UL and 0x3L
↧
Forum Post: TMS570LS3137: Need TI FatFS library for TMS570LS3137WZT, Tried downloading the files already on the forums but access denied.
Part Number: TMS570LS3137 Hi, We are working on a project which requires us to use FatFS to write log files to an SD Card. Here are the articles and forums posts I've already been through: https://www.element14.com/community/people/jancumps/blog/2015/10/07/ti-hercules-launchpad-using-an-sd-card https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/425798/sd-card-read-write-for-tms570ls3137zwt-please-help Both the articles point to a project file which is not accessible by me. Need help regarding this. Thanks and Regards, Shadab
↧
↧
Forum Post: TMS320F28069M: How to Calculate Supply Current from InstaSpin FOC signals
Part Number: TMS320F28069M Hello, I am using TI InstaSpin FOC on the MCU TMS320F28069M to calculate the supply current. I followed this thread to calculate it: https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/556743/calculate-supply-current-from-instaspin-foc-signals Using the solution that it seems to work, // calculate inverter output power in kW gMotorVars.Power_coef = _IQmpy(_IQ(1.0*1.5/0.96), gMotorVars.VdcBus_kV); // _IQ(1.0*1.5/0.96) for MW16 gMotorVars.Power_kW = _IQmpy((_IQabs(_IQmpy(gMotorVars.Vd, gMotorVars.Id_A)) + _IQabs(_IQmpy(gMotorVars.Vq, gMotorVars.Iq_A))), gMotorVars.Power_coef); gMotorVars.Iin_A = _IQdiv(gMotorVars.Power_kW, gMotorVars.VdcBus_kV); I observed that the current is almost twice compared to the current read from a power supply. Why to convert gMotorVars.Vd and gMotorVars.Vq to real voltage value, it uses gMotorVars.VdcBus_kV and not USER_IQ_FULL_SCALE_VOLTAGE_V as it does with the current? I've implemented this option and the results are not the expected one too. Best Regards, Gorka
↧
Forum Post: MSP430F5529: With NSC Driver WV5 How to config LMP91300 with visual stdio
Part Number: MSP430F5529 I need some help about this ,firist i don't know how to get visual stido dll,second how to control it.
↧
Forum Post: RE: LAUNCHXL-F28379D: continuous transmissions of 3 data frames using 2 eCAN and 1 DCAN
Thank you for your reply! The MSGIDs and their selected setups are provided below. //Node 1 launchxlf28069 ECanaMboxes.MBOX3.MSGCTRL.bit.RTR = 1; //remote-transmission-request bit ECanaMboxes.MBOX4.MSGCTRL.bit.RTR = 1; //remote-transmission-request bit ECanaMboxes.MBOX3.MSGCTRL.bit.DLC = 8; ECanaMboxes.MBOX4.MSGCTRL.bit.DLC = 8; ECanaShadow.CANMD.bit.MD3 = 1; //configured as receive mailbox //corresponding remote reply data frame is received ECanaShadow.CANMD.bit.MD4 = 1; //in the same mailbox ECanaRegs.CANMD.all = ECanaShadow.CANMD.all; eCANaMboxes.MBOX3.MSGID.bit.STDMSGID = 50; eCANaMboxes.MBOX4.MSGID.bit.STDMSGID = 60; //Node 2 launchxlf28379d #define MSG_DATA_LENGTH 8 #define TX_MSG_OBJ_ID 1 CAN_setupMessageObject(CANB_BASE, TX_MSG_OBJ_ID, 50, CAN_MSG_FRAME_STD, CAN_MSG_OBJ_TYPE_RXTX_REMOTE, 0, CAN_MSG_OBJ_NO_FLAGS, 8); //Node 3 launchxlf28379d #define MSG_DATA_LENGTH 8 #define TX_MSG_OBJ_ID 1 CAN_setupMessageObject(CANB_BASE, TX_MSG_OBJ_ID, 60, CAN_MSG_FRAME_STD, CAN_MSG_OBJ_TYPE_RXTX_REMOTE, 0, CAN_MSG_OBJ_NO_FLAGS, 8); After some assessments, I found this following particular line of code (provided from the example) while(((HWREGH(CANB_BASE + CAN_O_ES) & CAN_ES_TXOK)) != CAN_ES_TXOK){} freezes the DSP with the lower priority MSGID (in this case MSGID=60, the 3rd node).
↧
↧
Forum Post: MSP430FR2355: TIDA 010056 Trapezoidal code
Part Number: MSP430FR2355 Why in TIDA Example Trapezoidal code Pin 1.0 which used as A0 for Speed Measure is not initialized as ADC functionality in init_IO() function? I am giving definition of this function below. There isn't configuration of P1.0 to set as ADC A0 pin functionality. void init_IO (void) { //Hall Sensor inputs P3SEL0 &= ~(BIT0+BIT1+BIT2); //GPIO - Hall sensors P3DIR &= ~(BIT0+BIT1+BIT2); //Inputs - Hall sensors //PWM outputs //GPIO-PWM P6DIR |= (BIT0+BIT1+BIT2+BIT3+BIT4+BIT5); //OutputPWM //Indications P2SEL0 &= ~ (BIT6); //GPIO-LED3 P2DIR |= (BIT6); //Output-LED3 //Direction Control P5SEL0 &= ~(BIT4); //GPIO - DIR P5DIR &= ~(BIT4); //Input - DIR //Enable Gate driver P4SEL0 &= ~(BIT1); //GPIO - DIR P4DIR |= (BIT1); //Input - DIR //Fault input P4SEL0 &= ~(BIT0); //GPIO - DIR P4DIR &= ~(BIT0); //Input - DIR //Enable edge interrupt for Hall sensor ports // P3IES |= ((BIT0)+(BIT1)+(BIT2)); // change the hall interrupt to falling edge to detect both the edges // P3IE |= (BIT0 | BIT1 | BIT2); PM5CTL0 &= ~LOCKLPM5; // P3IFG &= ~(BIT0| BIT1 | BIT2); __bis_SR_register(GIE); }
↧
Forum Post: TMS320F28035: Question about Daisy-chain in JTAG design
Part Number: TMS320F28035 Hi Team, we are using 2 pcs of F28035 in system design, 1 for ACDC and another for DCDC. and we are using daisy chain for communcaition. When there is no encryption, all functions are normal, but once encrypted, there is a phenomenon that a DSP can't run all the time. The U1 U2 JTAG part is designed as follows: The TDO of DSP1 is connected to the TDI of DSP2 through a 0Ω resistor (R120), this signal has a 10K pull-up resistor The rest of the design is in accordance with the conventional design DSP1 and DSP2 can operate normally when not encrypted at present DSP1 encryption can work normally After DSP2 is encrypted, it cannot run normally Found during testing. If DSP2 is connected to the emulator, it can run, but DSP1 will not run. Without the emulator, DSP1 can run, but DSP2 cannot run BR Brandon
↧
Forum Post: RE: TMS320F28069: Bootloader DFU on conltrolCARD F28069 : DFU_ERR_UNSUPPORTED (-5) erasing flash!
HI kevin, I connect manually the USB signal connections to the f28069; Using GPIO 26/27/25 25 : Vbus / 26 : USBDP / 27 : USBDM. and the GND. I used the code located at C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2806x\MWare\boot_loader to program the µC f28069. After I used dfuprog.exe as describe in F28069x USB bootloader User GUIDE. ( Chapter 1 introduction , page 6 Practical Use) Why should I use usb_bulk_example ? It's not the same as dfu ? USB_bulk_example is another way to use the bootloader right ? When I used usb_bulk_example i got : Alain.
↧
Forum Post: RE: LP-AM243: Is the any motor driver for AM243x MCU, like InstaSPIN-FOC?
Hi Ming Wei -san Thank you for the information. One questions how can I participate in MCU+Academy?
↧
↧
Forum Post: RE: MSP432E401Y: Flashing vie ethernet and the bsl scripter
Hello Gary, a good idea, the _c_int00 address is the point, where the application starts after a software reset (Control Shift R). But it does'nt work. Here is my .txt file: MODE E4xx Ethernet MAC=50:17:e9:10:00:fd IPClient=192.168.1.11 IPServer=192.168.1.20 SET_PC_32 0x2000184d RX_DATA_BLOCK_32 VO_SSM20_v10.3.3.txt BR Guenther
↧
Forum Post: RE: MSP430FR5043: No acknowledgement after slave address
Hello Bruce, [quote userid="47378" url="~/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1049434/msp430fr5043-no-acknowledgement-after-slave-address/3884201#3884201"]Is it possible /RESET (pin 2) is being held low?[/quote] I didn't understand the question. [quote userid="47378" url="~/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1049434/msp430fr5043-no-acknowledgement-after-slave-address/3884201#3884201"]Can you get to the other I2C devices on the bus?[/quote] I tried with another I2C slave device of hdc2022 still I'm not got the acknowledgement.
↧
Forum Post: RE: TMS320F28335: Reference design files
You have sent me the SPRC678.zip. I setup them on my computer. I think they are not about TMDSDCDC8KIT. Sorry, I don't understand !
↧
Forum Post: RE: MSP430F5529: With NSC Driver WV5 How to config LMP91300 with visual stdio
Hi Daohai, I don't get your requirements, could you share more details about your question? Thanks! Best Regards Johnson
↧
↧
Forum Post: TMS320F280039C: Compiler error when use F28003x_CLADATROM_Symbols_fpu32.lib
Part Number: TMS320F280039C Hi Expert, My customer are using F28003x_CLADATROM_Symbols_fpu32.lib, but there have compiler error below: They try modify the configuration for VCU support and VCU register save below, but did not work no matter what they modify, do you have any suggestion for this?
↧
Forum Post: RE: LAUNCHXL-F28379D: Need information regarding PWM pulse generation without using Epwm block
Pratyay, MathWork team is out of office due to Diwali week. They are back in office on next Monday. Apology for inconvenience.
↧
Forum Post: RE: TMS320F28388D: Flash programmer
Hi Vamsi, Thanks!. I'll check FlashPro with Elprotronic. Thanks and Best regards, Kuerbis
↧
Forum Post: RE: TM4C129ENCPDT: ndk 2.24.03.35 on TM4C129ENCPDT http server parallel chrome requests problem
Hello Charles, At the end it was an heap memory problem as you suggested but related to NDK Memory Manager Buffers. Increasing the number of pages solved the problem: Thank you for the support! Best Regards, Matteo
↧
↧
Forum Post: RE: TMDSECATCNCD379D: SPI peripheral interface data transmit and receive error
Hi, Veena: I wrote 0 to the master TX, but the master device could not receive the data sent by the TI slave device. I also checked the SPI section in TRM. Sinan.
↧
Forum Post: RE: TMS320F28027: UART BREAK problem
Hi Marlyn, Please be informed that I also received additional information from our customer in regards to your last response. Kindly see below: " Yes, similar frames are sent in both WAKE (addressed to this slave) and SLEEP (addressed to other slaves). There happened some other Rx error as well but we were in a big hurry to finalize the project so not sure what and when exactly. At the moment there is no hurry since I was forced to exclude SLEEP mode from operation. I can investigate the details later. Thank you for assistance." We will also wait for further update from you. Thank you again. Kind regards, Gerald
↧
Forum Post: RE: TMS570LS3137: We need MCAL for TMS5703137DPGEQQ1 and TMS5701224CPGEQQ1 .
↧