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

Forum Post: RE: CCS/MSP432P401Y: MSP low-power microcontroller forum

$
0
0
The ST7026 supports SPI or I2C. If you must use the SPI interface, then you need 'bit-bang' the A0 bit (parameter or instruction) with the CPU or perhaps use a timerA peripheral. The MSP432P401Y does not have the LCD peripheral. The eUSCI peripheral typically used from SPI does not support 9-bit data. Regards, Chris

Forum Post: RE: CCS/TMS320F28379D: Serial Flash Programmer Attempting Autobaud to load kernel

$
0
0
When you boot the device to SCI boot mode which runs the SCI bootloader, the SCI bootloader is using different SCI pins then you are connected to. Please make sure the bootloader and the kernel are using the same pins which you are using (28/29). sal

Forum Post: RE: CCS/TMS320F28377D: FATFS error

$
0
0
Hi Kyu, Have you been able to get the usb_host_msc example working as it is? Please do this first. sal

Forum Post: RE: MSP432P401R: I2c test does not work?

$
0
0
Hello, Is the ICM-20948 holding the clock line low (clock stretching)? Can you show the I2C waveforms for the working and non-working cases? Regards, Chris

Forum Post: RE: TM4C1294NCPDT: GPTM Timer 0 problem

$
0
0
I'm using 4 different timers but they are all initialized in the same manner. In the code below, I only included one of the Case statements that shows how the peripheral is enabled. (The other 3 are the same). The bottom part of the code shows the actual initialization. Looking at the screen shots I sent you, the TAILD bit is set to 0 so I would expect to see the clock being reset on the next timing cycle. As I mentioned in my last post, I tried keeping the timer enabled but I still didn't see the count value reset as I would expect. The only method I have found that has worked somewhat effective is by writing the TIMER_O_TAV value to 0x00000001 and looping until it changes. For the timer reset code, I'd like to implement the best practices for this processor so the timer can remain enabled or disabled. Thanks again for the help, Joe //== Measurement Timer [TIMER3 A] == //This timer is used to indicate when the ISO_SPARE1 line should be toggled. //This timer sets the measurement duty cycle of the sensors. case MEASUREMENT_TIMER: ROM_SysCtlPeripheralEnable(SYSCTL_PERIPH_TIMER3); //-- Make sure the Timer3 peripheral is Ready while ( !(ROM_SysCtlPeripheralReady(SYSCTL_PERIPH_TIMER3) || g_dwEventHandler. s_dwEventHandler . ERROR_TimeoutOp ) ) { } break ; default : return ; } // Configure Timer A as a 32-bit periodic timer. TimerConfigure (dwBaseAddress, TIMER_CFG_PERIODIC_UP); //Set Timer to run off of the Precision Internal Oscillator (16MHz) TimerClockSourceSet (dwBaseAddress, 0x00000000 | TIMER_CLOCK_PIOSC ); //Set Timer A interval TimerLoadSet (dwBaseAddress, TIMER_A, dwTimerValue); //Ensure the Timer Interrupt Flag is cleared. TimerIntClear (dwBaseAddress, TIMER_TIMA_TIMEOUT); #if DIRECTIVE_REMOVE_MSG_TIMER == TIMER_ON HWREG(dwBaseAddress + TIMER_O_CTL) |= TASTALL; #endif //Configure Timer A interrupt for timer timeout. TimerIntEnable (dwBaseAddress,TIMER_TIMA_TIMEOUT);

Forum Post: RE: TMS570LS3137: Flexray code example - debug recommendations

$
0
0
Please help me understand a couple of aspects in the Hercules development and how those relate to the Flexray code example: 1. I understand now that the original Flexray example is for the LS202xx series and therefore we should adjust the PLL when running the code in the LS3137. I pulled an example for the LS3137 and did see minor differences in how each of the PLL1, 2, and 3 are setup. Should I just copy those configurations over? Any special settings that might be related to the Flexray example? 2. In the Flexray example I could not find any linker command files. I do see one in the generic LS3137 code example - should I also just copy and include the sys_link.cmd file? If so, should I configure it in any special way? Thank you!

Forum Post: RE: MSP430FR5972: MSP430FR5972

$
0
0
Hello Wei Thanks for your prompt reply. However, whilst your links went to general examples of MSP430FR58xx code, there was nothing at all regarding State Machines. One clarification from my side - my inquiry was for MSP430 Assembler code in general, not specifically for the MSP430FR5972 . Unfortunately, I couldn't work out how to just enter MSP430 in the title field of my post - the system demanded a specific micro, sorry if that confused matters. So, it is the State Machine aspect that I am specifically interested in, implemented in Assembler on any MSP430 device . I guess I am looking for how to implement a Case or Switch statement in Assembler, since that is the heart of a State Machine. I look forward to more comments. Thank you - John

Forum Post: TMS320F280049: About the actual ADC resolution

$
0
0
Part Number: TMS320F280049 Customer is asking for the actual ADC resolution for F280049. They said for F2803x the actual ADC resolution is closed to 10/11 bits, so they wonder whether F280049 can achieve true 12 bits or not. Besides, I know the oversampling scheme can improve the ADC accuracy. Could you help explain the relationship between the oversampling number and ADC resolution improvement, like 4 times oversampling can increase the ADC resolution with 1 bit? Thank you. 请使用手机"扫一扫"x

Forum Post: TIDM-PSFB-DCDC: Can't place order

$
0
0
Part Number: TIDM-PSFB-DCDC How can i buy Phase-Shifted Full Bridge DC/DC Power Converter Board( TIDM-PSFB-DCDC )? Or Do you have a similar product?

Forum Post: RE: TMS320F280049: Race condition for TBPHS and CMPA value load at the same time and AQ has work to do at CMPA counter up

$
0
0
Sheldon, [quote user="Sheldon He"]CMPA value and TBPHS value are loaded at the exact same time with the exact same value[/quote] These are 2 asynchronous events - CPU loading the CMPA value in immediate mode and a Sync event loading the TBPHS value in to the Time base counter. If indeed the CMPA value is updated by the time TBPHS is loaded in to the counter - then the CMP event will have effect. But I would suggest that you avoid such boundary conditions, particularly because you are dealing with the immediate mode of operation.

Forum Post: RE: MSP430FR5994: Landing Pad recommendations for the 80 pin LQFP

$
0
0
I already tried that. UltraLibrarian does not support my CAD tool. I exported the DFX and used DWG to measure the pads. The DFX files were dimensionless. If I assume that the dimensions are mils then the width of the pad is 0.35mm x 1.00mm which left 0.14mm spacing between the pads (about 5.5mil spacing). I was expecting the typical 6mils, so I either measured something else or my assumption of the dimension unit was wrong. In the end, I just downloaded the Gerbers for the Launchpad and measured the pads. Those measurements said that the pads are 0.3mm x 1.6mm, much more believable. (warning recreational griping ahead): This is a lot of trouble for customers who just wanted to search the pad library of their CAD tool for a matching footprint. In my opinion this should information should be part of the datasheet instead of requiring users to download UltraLibrarian (about 2Gb of disk space and comes with an annoying upgrade nag screen to pay for an upgrade). Most CAD tools come with pre-made library footprints so why do I have to use UltraLibrarian to get a footprint when I can just look it up? And why should I have to learn another tool chain ecosystem for information that should be part of the datasheet? If the footprint was completely different standard then yeah maybe but this is not the case with this LQFP. And why does TI make customers go through their "Where's Waldo" website jungle to find the small print that you circled above in red? You don't have to answer the above, I am just venting about TI's new one size fits all solution darling. I am using the Gerber dimensions to identify the needed footprint.

Forum Post: CCS/TMS320F28377S: ASM program

$
0
0
Part Number: TMS320F28377S Tool/software: Code Composer Studio The following are examples of assembly language programs. Please help check if it is correct. MOVL XAR2, #Array1 ;Array1 is defined by C language program, Uint16 *Array1; MOV @AR0, #5 MOVL ACC, *+XAR2[AR0] ;This line is equivalent to ACC=((Uint32)Array1[11]<<16)+((Uint32)Array1[10]). MOVL AL, *+XAR2[AR0] ;This line is equivalent to AL=(Uint16)Array1[5]. Is the above understanding of the program correct? In indirect addressing mode “loc32”, does *+XAR2[AR0] represent an address value equal to the value of XAR2 plus the value of AR0 multiplied by 2?

Forum Post: RE: CCS/MSP430G2210: Error Message : Target must be connected before loading program

$
0
0
I had the same issue when I copied a project. Checking the "Connect to the target on debugger startup" box fixed it for me. For some reason this box got unchecked when I copied the project.

Forum Post: RE: TIDM-HV-1PH-DCAC: ADC Sensing - Incorrect readings

$
0
0
Thanks , DC test will help up to isolate the true HW error. Will wait for your feedback.

Forum Post: RE: TIDM-1000: tidm1000

$
0
0
1. There is no path for the code to run on UCD3138 as it is designed for C2000. This will be an exercise you will need to take for your development. 2. The doc has a issue , you are correct the connection should not be there. I will file this as a bug and have it fixed.

Forum Post: EK-TM4C123GXL: Tivaware setting GPIO input interrupt priority

$
0
0
Part Number: EK-TM4C123GXL On the TM4C123GXL I am trying to figure out the correct way to set the interrupt priority for a GPIO input. I have configure GPIO pin PF4 as an interrupt to be trigger on a falling edge but when setting the priority level using the IntPrioritySet(uint32_t ui32Interrupt, uint8_t ui8Priority) function in interrupt.h I am unsure if for the interrupt parameter I use INT_GPIOP4 or INT_GPIOF macro or a combination of the two? Any responses are appreciated.

Forum Post: CCS/MSP432P401R: I want to get my power down during sleep() function

$
0
0
Part Number: MSP432P401R Tool/software: Code Composer Studio Hello, I'm currently writing an application and I want to get my power down during the "sleep()" period, now set as the 30s. But, I need some guidance regarding Low Power Modes. I'm using TI-RTOS, and many other HW resources, such as digital inputs, ADC, wifi CC3120Boost module. The general idea of the project is to sample signals, process them and send them using a TCP socket and MQTT protocol. I'm not an expert in CSS or MSP432 microcontroller. So I need to know a method to consume less power during my sleep period. I'm just setting up one Thread. 97 mW is too much for my idle period. The main loop contained in MScCM_client_app.c is as follows: while(1){ //The following happens every two or three days (according to user) GPIO_write(Board_GPIO_LED1, Board_GPIO_LED_OFF); sleep(30); GPIO_write(Board_GPIO_LED1, Board_GPIO_LED_ON); memset(RESULT, 0, sizeof(RESULT)); Get_Sample(); Cmp_Sample(); ref=NO_REF; Ana=SFFT; Send_Msg(); memset(RESULT, 0, sizeof(RESULT)); Get_Sample2(); ref=NO_REF; Ana=ENV; Send_Msg(); } } I'm attaching the whole file as well, Thanks, Esteban Valverde(Please visit the site to view this file)

Forum Post: TMS320F28235: ECAP on GPIO24, failed to init an interrupt

$
0
0
Part Number: TMS320F28235 Hi, We faced one issue on F28235 GPIO24 as ECAP. GPIO24 is used as ECAP, to detect a falling edge and init an interrupt. Sometimes, the interrupt is not initiated. In details: 1) GPIO24 is external pullup by 10K resistor; 2) IGBT driver's fault signal (5V), goes to level IC (74xxxxx) and output 3.3V, it goes through 10 Ohm resistor to GPIO24. 1000pF is placed to GPIO24. 3) When no error from IGBT driver, the signal on GPIO24 is always high (3.3V); when IGBT driver's error happens, the signal changes from high to low, without return back to high. It means that, there's only one falling edge. It happened that, 5% ECAP interrupt can't be initiated. What test we did: 1) Connected with the emulator and use emulator to control the code's start/stop, every interrupt can be initiated. 2) Connected with emulator, but CCS is not connected with the device, still, ECAP interrupt can't be initiated in a low rate. 3) Disconnect the 10 Ohm, and place a PWM signal to GPIO24, every interrupt can be initiated. 4) GPIO24 sample window are changed, without any improvement. 5) The oscilloscope on GPIO24, is nearly the same on case 1) and 2). The falling edge is quite good. 6) Pin123 is used as an input GPIO. If place an external 3.3K pull-down, 100% the issue happened. 7) Through the CAN port, we see that, when the IGBT driver is OK, GPIO24 is high (GPADAT.bit.GPIO24==1). When driver is not OK, GPIO24 switches to low (GPADAT.bit.GPIO24==0). There's the switch from 1 to 0, when CAP interrupt can't be initiated. 8) We are quite sure that, there's no bug in the code. It works well. What could be the issue? Thanks a lot. Br, Jordan

Forum Post: CCS/TMS320F28030: CSS On Chip flash programmer

$
0
0
Part Number: TMS320F28030 Tool/software: Code Composer Studio In Code composer 7.x, in the debugger where is On Chip programmer located, It not under tools -> On chip flash thanks

Forum Post: RE: DK-TM4C129X: Need Source Code for USB Bulk Windows Application

$
0
0
Hello Phil, If you have the full TivaWare install on your PC, you can find the source code at [Install Path]\TivaWare_C_Series-2.1.4.178\tools\usb_bulk_example
Viewing all 217102 articles
Browse latest View live


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