Quantcast
Channel: Microcontrollers
Viewing all 232395 articles
Browse latest View live

Forum Post: TMS320F280049: Can MPC values be read in CLA?

$
0
0
Part Number: TMS320F280049 Dear team: Can MPC values be read in CLA? How to operate it? I'm writing programs with CLA assembly instructions, and I want to read CLA MPC values in real time.

Forum Post: Compiler/TMS320F280049: Why the execution time is different if select different Floating Point mode

$
0
0
Part Number: TMS320F280049 Tool/software: TI C/C++ Compiler Hi team, Customer found that CCS need different time to execute a “ sinf ” function when they select different Floating Point mode. For example, selecting " relaxed " mode, just use 10 cycles to calculate "sinf", while selecting " strict " mode, it will need 100 cycles . Customer wonder why there is big difference between these two mode. Thanks for your help! -Rayna

Forum Post: TM4C1294NCZAD: lifetime of the device

$
0
0
Part Number: TM4C1294NCZAD Hello team, one of my customers is already using this device and plans to use it in a new project as a Medical application. Since the project still has to start and the qualification phase will be long, the device will need to have a very long lifetime, moreover in the medical applications they need quite a long lifetime. Now the question is, I do see the device as Active but do you have any info on future changes, maybe a newer device on the roadmap will replace it? Please let me know what to suggest to the customer. You can reach out to me also through private email. Thank you and best regards, Adrian

Forum Post: ADC_SOC conversion example not working properly

$
0
0
Hi all, I am trying to run the example program of ADC_SOC of TI28027. However, the values shown in the watch register is showing no correlation with the input signals to ADC. I am attaching the example programme used.(Please visit the site to view this file)

Forum Post: Reversing the run time requires Rs to be large

$
0
0
Evaluation board: drv8301-hc-evm revd Lab 10a Overmodulation The motor has a speed of 300rpm, forward running and output torque of 60mNm. At this time, Rs=0.185 is required. The motor is running at a speed of 300rpm, reversing operation and output torque of 60mNm. At this time, Rs=0.191 is required. Regardless of whether the motor is forward or reverse, all procedures are the same, but reverse requires Rs to be large, Low Starting Torque of Motor in Reverse Operation.How to solve this problem?

Forum Post: Reversing the run time requires Rs to be large

$
0
0
Evaluation board: drv8301-hc-evm revd Lab 10a Overmodulation The motor has a speed of 300rpm, forward running and output torque of 60mNm. At this time, Rs=0.185 is required. The motor is running at a speed of 300rpm, reversing operation and output torque of 60mNm. At this time, Rs=0.191 is required. Regardless of whether the motor is forward or reverse, all procedures are the same, but reverse requires Rs to be large, Low Starting Torque of Motor in Reverse Operation.I want the same Rs for motor forward and reverse. How to solve this problem?

Forum Post: RE: F28M36P63C2: UniFlash programming

$
0
0
Regis, To clarify, you are loading a binary file (.bin) to the M3 core? (versus hex or .out files) And you are able to load it correctly if you load your baseline binary file, but if you change a byte in your baseline file from 0xE5 to 0x66, it stops loading correctly and instead the flash is empty after loading? If you are loading binary files, please make sure the start address is the same when you click the 'Load Image' button and when you click the 'Verify Image' button. This ensures that you are loading and verify the same location. Thanks, Ricky

Forum Post: CCS/TMS320F28377D: Changing Boot mode Pins

$
0
0
Part Number: TMS320F28377D Tool/software: Code Composer Studio Hello Everyone, I am working in a project with TMS320C28377D and I want to change the boot mode pins to GPIOs 8 and 9, but before doing this I did a little experiment. I know that, by the default, the pins are 72 and 84 and if they are both set to `1`, the CPU will boot to Flash. Anyway, if I program the OTP BOOTCTRL register as 0x49550B5A, I think it should work the same, but it does not so my application program does not start. Am I missing any step? This is the listing of the DCSM_Z1_ZoneSelectBlock.asm file I use. .sect "dcsm_otp_z1_linkpointer" ;; .long 0x1FFFFFFF ;Z1-LINKPOINTER1 ;; .long 0xFFFFFFFF ;Reserved ;; .long 0x1FFFFFFF ;Z1-LINKPOINTER2 ;; .long 0xFFFFFFFF ;Reserved ;; .long 0x1FFFFFFF ;Z1-LINKPOINTER3 ;; .long 0xFFFFFFFF ;Reserved .sect "dcsm_otp_z1_pswdlock" ;; .long 0xFFFFFFFF ;Z1-PSWDLOCK ;; .long 0xFFFFFFFF ;Reserved .sect "dcsm_otp_z1_crclock" ;; .long 0xFFFFFFFF ;Z1-CRCLOCK ;; .long 0xFFFFFFFF ;Reserved .sect "dcsm_otp_z1_bootctrl" .long 0xFFFFFFFF ;Z1-GPREG3 .long 0x49550B5A ;Z1-BOOTCTRL .sect "dcsm_zsel_z1" ;; .long 0xFFFFFFFF ;Z1-EXEONLYRAM ;; .long 0xFFFFFFFF ;Z1-EXEONLYSECT ;; .long 0xFFFFFFFF ;Z1-GRABRAM ;; .long 0xFFFFFFFF ;Z1-GRABSECT ;; .long 0xFFFFFFFF ;Z1-CSMPSWD0 (LSW of 128-bit password) ;; .long 0xFFFFFFFF ;Z1-CSMPSWD1 ;; .long 0xFFFFFFFF ;Z1-CSMPSWD2 ;; .long 0xFFFFFFFF ;Z1-CSMPSWD3 (MSW of 128-bit password) This is the listing of the 28X7x_dscm_lnk_cpu1.cmd MEMORY { PAGE 0 : /* Program Memory */ /* Z1 OTP. LinkPointers */ DCSM_OTP_Z1_LINKPOINTER : origin = 0x78000, length = 0x00000C /* Z1 OTP. PSWDLOCK/RESERVED */ DCSM_OTP_Z1_PSWDLOCK : origin = 0x78010, length = 0x000004 /* Z1 OTP. CRCLOCK/RESERVED */ DCSM_OTP_Z1_CRCLOCK : origin = 0x78014, length = 0x000004 /* Z1 OTP. RESERVED/BOOTCTRL */ DCSM_OTP_Z1_BOOTCTRL : origin = 0x7801C, length = 0x000004 /* DCSM Z1 Zone Select Contents (!!Movable!!) */ /* Z1 OTP. Z1 password locations / Flash and RAM partitioning */ DCSM_ZSEL_Z1_P0 : origin = 0x78020, length = 0x000010 /* Z2 OTP. LinkPointers */ DCSM_OTP_Z2_LINKPOINTER : origin = 0x78200, length = 0x00000C /* Z2 OTP. GPREG1/GPREG2 */ DCSM_OTP_Z2_GPREG : origin = 0x7820C, length = 0x000004 /* Z2 OTP. PSWDLOCK/RESERVED */ DCSM_OTP_Z2_PSWDLOCK : origin = 0x78210, length = 0x000004 /* Z2 OTP. CRCLOCK/RESERVED */ DCSM_OTP_Z2_CRCLOCK : origin = 0x78214, length = 0x000004 /* Z2 OTP. GPREG3/BOOTCTRL */ DCSM_OTP_Z2_BOOTCTRL : origin = 0x7821C, length = 0x000004 /* DCSM Z1 Zone Select Contents (!!Movable!!) */ /* Z2 OTP. Z2 password locations / Flash and RAM partitioning */ DCSM_ZSEL_Z2_P0 : origin = 0x78220, length = 0x000010 } SECTIONS { dcsm_otp_z1_linkpointer : > DCSM_OTP_Z1_LINKPOINTER PAGE = 0, type = DSECT dcsm_otp_z1_pswdlock : > DCSM_OTP_Z1_PSWDLOCK PAGE = 0, type = DSECT dcsm_otp_z1_crclock : > DCSM_OTP_Z1_CRCLOCK PAGE = 0, type = DSECT dcsm_otp_z1_bootctrl : > DCSM_OTP_Z1_BOOTCTRL PAGE = 0 dcsm_zsel_z1 : > DCSM_ZSEL_Z1_P0 PAGE = 0, type = DSECT dcsm_otp_z2_linkpointer : > DCSM_OTP_Z2_LINKPOINTER PAGE = 0, type = DSECT dcsm_otp_z2_pswdlock : > DCSM_OTP_Z2_PSWDLOCK PAGE = 0, type = DSECT dcsm_otp_z2_crclock : > DCSM_OTP_Z2_CRCLOCK PAGE = 0, type = DSECT dcsm_otp_z2_bootctrl : > DCSM_OTP_Z2_BOOTCTRL PAGE = 0 dcsm_zsel_z2 : > DCSM_ZSEL_Z2_P0 PAGE = 0, type = DSECT } This is the OTP memory at address 0x7801C Can anyone help me with this issue? Best regards, Andreu

Forum Post: RE: TMS320F280049: GPIO39 shorting intput.

$
0
0
Can you share some schematic? I'm not sure this is a GPIO issue.

Forum Post: RE: TMS320F28377S: How to update TBCTR

$
0
0
Okay in general, No it's not a problem and you can set TBCTR to what you want. There would only be a problem if the specific customer's system had a requirement for TBCTR which in this case it seems to not be an issue. Nima

Forum Post: RE: MSP430F2254: Part compatibility between MSP430F2254TDA and MSP430F2254TDAR. SW isn't working.

$
0
0
> DCOCTL = CALDCO_1MHZ; > BCSCTL1 = CALBC1_1MHZ; > BCSCTL2 = 0x00; <--- here My first guess is that your clock calibration constants have been erased (0xFF is far out of range for either register). A simple LED-blinker that doesn't use those constants wouldn't know the difference. It would be interesting to know what the memory contents of addresses 0x10F8-10FF are. Erasing InfoA accidentally is easier than one might think. The constants can be re-generated fairly easily if you have an external 32kHz clock source.

Forum Post: RE: CCS/MSP430F5529: Problem UART : Using two UART (USCIA0 & USCIA1) in the same time

$
0
0
Hello, I reckon what Bruce was referring to is that the array uartReceive[] and the variable uart_time_out are referenced by both ISRs which could cause an issue if one ISR interferes with one of the variables without the other one knowing. It would be best to have separate arrays and variables for both ISRs to work with. Best regards, Matt

Forum Post: RE: MSP432P411Y: Nmax_ers specification

$
0
0
Brian, Just to confirm, your understanding is correct. Regards, Chris

Forum Post: RE: F28M35H52C: NMI Watchdog on M3 and C28

$
0
0
Hi Vivek, I found this link https://e2e.ti.com/support/microcontrollers/c2000/f/171/t/501981?Watchdog-timer-for-Concerto-C28x in which you mentioned how to set up NMI C28x. Force NMI on C28x by setting a flag in CNMIFLGFRC register. This will generate NMI on C28x. Inside NMI handler wait for CNMIWDCNT to timeout (you could modify the CNMIWDPRD to minimize the wait) so that it resets the C28x. Reset on C28x will generate NMI on M3 In M3 NMI handler again wait so that MNMIWDCNT times out and issue a reset. This will reset full device/system. I am unclear about the first step. Can you explain where this step has to be done? Is it on the main loop?

Forum Post: RE: RTOS/MSP432E401Y: Some questions about the bootloader(FLASH base)

$
0
0
Gary, This firmware example does not exist. I have inquired from the team and received this feedback "TFTP is very different from MQTT and you would not be able to use the MQTT library for TFTP functionality". Regards, Chris

Forum Post: TMS320F28335: External Memory Interface: Can read/write corruption occur if an external memory read/write is interrupted with another external memory read/write?

$
0
0
Part Number: TMS320F28335 Hello, I am using External Memory Interface Zone 0 and 6: Zone 6 is for external RAM and Zone 0 is for an FPGA. What would happen if an interrupt occurs during an Zone 0 read/write and then the ISR performs a Zone 0 read/write? Would the previous read/write be corrupted? Thanks, Stephen

Forum Post: RE: TM4C1294NCPDT: GPTM Timer 0 problem

$
0
0
Hi Ralph, I've included some screen shot from an emulation that I conducted that shows you how Timer0 is not being RESET. If you look in the code, I commented out the code where I was writing to the TAV register and replaced it with the TimerLoadGet() followed by the TimerLoadSet() instruction. I set a break point right before the timer is re-enabled. On the right you will see the Timer0 registers. The program I am running is starting Timer0, running an operation, and then stopping Timer0. If you remember, I'm using it like a WatchDog. If the timer expires, it indicates an error. When I enable the Timer, I'm expecting the Count to be RESET. If you look at the screen shots, you can see where the TimerLoadGet() pulls the TAILR value and Sets is back to the same value. You can also see the TAR and TAV values as they change. What I'm expecting to see is the TAV and TAR values be somewhere close to 0 but as you can see, it continues to increase until it reaches the TAILR value. For this operation to run properly, does the timer need to be enabled? If the timer is disabled, how can I reset the count value? The code that I commented out where I was writing to the TAV value works but I think this was causing the problems I mentioned in the previous posts. Thanks, JC(Please visit the site to view this file)

Forum Post: RE: TMS320F280049: The VDD decoupling capacitor is smaller than recommended value

$
0
0
Hi Rayna, The minimum capacitance recommendation is to ensure good noise performance and stability. Are they using the LDO or the DC-DC?

Forum Post: TMS320F28034: HALT mode

$
0
0
Part Number: TMS320F28034 Hello, customer uses the HALT mode and wakes the MCU every 5s up on a IO pin. Sometimes the MCU doesn't wake up anymore. In this situation the HALT current rises from 400uA to 800uA. Access with the debugger is not possible. Only a reset can wake the MCU. Regards, Holger

Forum Post: RE: TMS320F28388D: IEEE 1588 Usage in Control & Automation

$
0
0
Hello, I cannot find the folder "libraries\communications\Ethernet" in the current 1.03.00.00 version C2000Ware package. There are PMBus and usb folders under communications, but no Ethernet. Maybe the current C2000Ware version does not support the F28388D device's Ethernet interface, yet? Thank you.
Viewing all 232395 articles
Browse latest View live


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