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

Forum Post: RE: TMS320F28377D: External Mode Simulink error

$
0
0
Hello! Thank you for the response Below I listed all the ways that I referred from some similar thread but it all failed: - The pins have been configured for SCI_A communication correctly (GPIO29 and GPIO28 for TX and RX, respectively). - Changing the oscillator frequency from 20MHz to 10MHz or use internal oscillator. - The COM port has been assigned correctly as Device Management in Windows shown. (COM3 or COM4, I tried both) And I tried to send data via SCI-A to the Terminal in CCS, the Terminal didn't show anything. The links below are the board and the emulator I used: Please check it for me. Thank you

Forum Post: RE: MSP432E401Y: MSP432 to feed STEP pulses to DRV8711

$
0
0
Chris, Thank you for your reply. I understtod that a repetitive pulses are possible by hardware basis. By the way do you have any hardware solutions for gating? Or "burst pulse" would be a right word..

Forum Post: RE: Re Flash MSP430 with Raspberry Pi 3 Model B+

$
0
0
Hi We also have the tool of uniflash that support CLI. Do you install the Linux in the Raspberry Pi 3? If so you can install the uniflash to do that. Best regards Gary

Forum Post: TMS320F280049: ROM code

$
0
0
Part Number: TMS320F280049 Hello Support team. Thanks a lot for giving support. I would like to know whether the below two devices has same ROM code or different. F280049PZS F280049PZQR Br KORO

Forum Post: MSP430F5335: Problem with nested interrupts and LPM

$
0
0
Part Number: MSP430F5335 I am observing an issue with nested interrupts. I know I should avoid using nested interrupts but believe me, in this case there was no other choice. This is the scenario: - MSP is in Low Power Mode 3 (LPM3). - RTC interrupt occurs. - Inside the RTC's ISR, I set GIE to enable nesting. - TA0 (or others) interrupts before returning from RTC's ISR (nesting). - Inside the TA0 I change the Status Register (SR) bits to exit LPM (using __bic_SR_register_on_exit). - The MSP does not respond anymore. Note: If I don't try exiting LPM from the nested interrupt, the MSP behaves as expected. In the following thread, Jens-Michael Gross, mentioned that "the nested interrupt cannot exit LPM". https://e2e.ti.com/support/microcontrollers/msp430/f/166/t/349661?Nested-interrupts-and-jump-table I understand the SR and PC are saved in the stack twice. Then, at the end of the nested interrupt ISR, the latest SR saved in the stack is modified (to exit LPM) and retrieved, then the PC will retrieved an instruction from the RTC's ISR and will continue executing the RTC's ISR. Then, at the end of the RTC's ISR, the SR will be retrieved again form the stack with the values saved before entering the RTC's ISR. For that reason, the MSP will not go out form LPM in that moment. But, what I don't understand is why the MSP doesn't wake up at all, later when another interrupt occurs and there is no nesting enabled. I would really appreciate any inputs on this matter. Thanks in advance.

Forum Post: RE: TMS320F280049: CAN F280049 identify CAN broadcasting frame with ID 0xFF?

$
0
0
Hi Joseph, I have to admit this is my first time learning about HLP. Is that a function in 280049? Could you please share more details? Our aim is make 280049 be able to achieve point to point CAN communication (with identifier and masks), and be able to receive broadcasting CAN frame(ID: 0XFF).

Forum Post: RE: MSP430FR6047: MSP430FR6047

$
0
0
Hi Eddie, yes. i have downloaded the updated version SW to my PC. is it true that the version of firmware is updated automatically while connected to the board? I have checked the version of MCU of our board is rev. B. We indeed refer to the FAQ.pdf for troubleshooting. To decouple the transducer issue, the probes of oscilloscope was directly contact the point of board and connect with USB /PC with updated USS. But the configurations parameter such as excitation frequency /pulse number cannot either be probed in the oscilloscope after tuning the setting of oscilloscope. we doubt our issue is hardware issue. Shipping back this board and exchange a new board before warranty (Mar. 14th) maybe an alternative for us to continue out project. seeking for your advice. Thank you.

Forum Post: RE: TMS320F28075: tmd320f28075

$
0
0
Thanks for your reply. In TMS320F28075 (100 pin package), there is no EPWM3,EPWM4, EPWM5 PIN. So I want to use EPWM2 synchronize EPWM6.

Forum Post: CCS/TMS320F28027: TMS320F28027: Piccolo HVPSFB(PCMC) FET Switching timing

$
0
0
Part Number: TMS320F28027 Tool/software: Code Composer Studio Dear Ti community I'm developing PCMC on HVPSFB. To understand FET switching timing,I made time chart. I insert DCAEV1 the middle of EPWM1 up count and down count. (SR_mode = 2) But,the time chart was as follows. Q2,Q3,Q5,Q6 are strange. So,I want you to point a mistake out. About Q2,Q3. First,COMP_A = 310,COMP_B = 20. Count up EPWM2_CNT and soon,EPWM2_B is high because of COMP_B match. After that EPWM2_B is low because of 1st DCAEV1 and soon be high because of COMP_B match. Then,1st interrupt start and EPWM2_action change. COMP_A/B_Shadow don't change(A:310→310 B:20→20), so COMP_A/B don't change at 3rd SYNC. Then 2nd interrupt start and EPWM2_action change. Before 4th SYNC , COMP_A/B_Shadow change(A:310→20 B:20→310), so COMP_A/B change at 4th SYNC. At 4th SYNC,EPWM2_B is low because of CNT = 0. And soon ,EPWM2_A is high because of COMP_A match . Then 3rd interrupt start and EPWM2_action change. At 6th SYNC,EPWM2_A is low because of CNT = 0. And soon ,EPWM2_A is high because of COMP_A match . After 6th SYNC,EPWM2_COMP_A/B_shadow change(A:20→310 B:310→20). COMP_A/B change at 4th DCAEV1 and EPWM2_A is low because of 4th DCAEV1 . And soon ,EPWM2_B is high because of COMP_B match . Then 4th interrupt start and EPWM2_action change. Before 8th SYNC,EPWM2_COMP_A/B_shadow change(A:310→20 B:20→310). So COMP_A/B change at 8th SYNC and EPWM2_B is high because of CNT = 0 . And soon ,EPWM2_A is high because of COMP_A match . ・・・ About Q5,Q6 First,COMP_A = 310,COMP_B = 20. When count start ,EPWM4_B is high because of CNT = 0. And soon , EPWM4_B is low because of COMP_B match. At 1st DCAEV1 , EPWM4_B is high because of CNT = 0. And soon , EPWM4_B is low because of COMP_B match. Then,1st interrupt start and EPWM4_action change. And soon EPWM4_action change before 2nd SYNC. At 2nd SYNC , EPWM4_A is high because of CNT = 0. After 2nd SYNC, EPWM4_COMP_A/B_shadow change(A:310→20 B:20→310). At 2nd DCAEV1 , COMP_A/B change,and soon EPWM4_B is high because of COMP_A match. After that, EPWM4_A/B don't change. Because the condition to be low EPWM_A/B is only when CNT = 0 between interrupt and SYNC(that means EPWM4_action②,④).

Forum Post: RE: TMS570LS1224: TMS570 SPI connect with M95040WP EEPROM(8bit)

$
0
0
Hi Miro: I have read the topic. From HALCoGen the function only provide uint16* pointed data. But I connect TMS570 with EEPROM M95040WP which is BYTE width operation sequence. e.g. I want to send uint8 data1[4] = {0x45,0x21,0x23,0x34}; I want to send uint8 data2[3] = {0x45,0x11,0x23}; Would you kindly tell me What should I do? Best Regards Fred

Forum Post: RE: TMS320F28075: tmd320f28075

$
0
0
one more question, from the datasheet, the EPWM3 cann't used to synchronize EPWM4, is that right?

Forum Post: RE: MSP430F5335: Problem with nested interrupts and LPM

$
0
0
I don't have an F5335. When I run this program on an F5529 (Launchpad), it functions as expected. I'm not sure what you and I are doing differently. /// // nest-5529 // If nesting works, LED1 blinks 2Hz, LED2 0.5Hz // #include #define HZ 1000000UL // 1MHz from reset int main(void) { WDTCTL = WDTPW | WDTHOLD; // stop watchdog timer P4OUT &= ~BIT7; // Launchpad LED2 P4DIR |= BIT7; P1OUT &= ~BIT0; // Launchpad LED1 P1DIR |= BIT0; // Blink at 2Hz from 4 interrupts/sec TA0CCR0 = HZ/4/4; // HZ/4 with ID=2 TA0CCTL0 = CCIE; TA0CTL = TASSEL_2 | ID_2 | MC_1 | TACLR; // SMCLK/4, Up [,Clear] // RTC in counter mode, interrupt via PS1 1/sec RTCPS0CTL = RT0PSDIV_7|(0*RT0PSHOLD); // ACLK/256 RTCPS1CTL = RT1SSEL_3|RT1PSDIV_6|(0*RT1PSHOLD)|RT1IP_6|RT1PSIE; // PS0/128, count+interrupt RTCCTL0 = 0; RTCCTL1 = (0*RTCHOLD); // Run __enable_interrupt(); while (1) { LPM3; } /*NOTREACHED*/ return 0; } #pragma vector=TIMER0_A0_VECTOR __interrupt void TA0_0_ISR(void) { P1OUT ^= BIT0; // LED1 __bic_SR_register_on_exit(LPM3_bits); // Wake up half the time return; } #pragma vector=RTC_VECTOR __interrupt void RTC_ISR(void) { (void)RTCIV; // We know it's PS1 P4OUT ^= BIT7; // LED2 __bis_SR_register(GIE); // Allow nesting __delay_cycles(3*HZ/4); // 3/4-second visibly blocks TA0 without GIE return; }

Forum Post: F28M35H52C: mini IO for USB function

$
0
0
Part Number: F28M35H52C There are 6 IO for onre USB in demon board: M3_USB0DM,M3_USB0DP,M3_USB0PFLT,M3_USB0VBUS,M3_USB0EPEN,M3_USB0ID. While we don't need so many function,we just need mini function:normal communication,Which are necassary and which are not?how to setup these IO?

Forum Post: RE: F28M35H52C: mini IO for USB function

$
0
0
Do you have demon schematics for mini usb fcunction?

Forum Post: RE: TMS320F28069 : TMS320F28069 How do I enter serial boot mode?

$
0
0
Are you still facing this issue, if so please provide more details. Regards Baskaran

Forum Post: RE: TMS320F28379D: TMS320F28379D:

$
0
0
Dear Basile, Thank you for your immediate reply.

Forum Post: RE: TMS320F28235: Flash erase time

$
0
0
Kevin, After another round test with customer, here's the summary: 1) Over 10 pcs F28335's Flash erase time (total Flash) is over 40s, after 1 year filed running; 2) Filed temperature is quite good like: 10~35C; 3) Their application doesn't do any Flash erase/write operation; the issue was reported, just because they updated the firmware and found it; 4) Replace the F28335 with another one on the same board, the erase time (total Flash) is about 15s, which is normal; 5) The normal and "un-normal" F28335 current consumption during erasing, are the same; 6) If the F28335 total Flash erase time is over 40s, each sector's erase time are the same, there's no specific sector costing longer time; 7) All of the F28335 are erased by both JTAG and customer's bootloader, the erase time are the same. Is this normal? Customer has the concern on the max erase time. Can you provide me a draft max time? What's the detailed logic for Flash erasing by Flash API? Is there any Flash API to identify the erase time? Thanks a lot. Br, Jordan

Forum Post: TMS320F28035: Voltage sense with ADC input

$
0
0
Part Number: TMS320F28035 Hello, We want to sense a voltage varying from 40-100 V range, at the ADCINB5 pin of TMS320F28035 micro-controller. We are using the following voltage divider: Vsense pin is connected to the ADCINB5. When Vcc = 48V, the Vsense should be 1.67 V. But, I see a voltage of 1.5V. So, can you please help me with why is this change in voltage observed? Is there anything to do with the ADC configuration of the channel? Thanks, Shalini Addepalli

Forum Post: RE: TMS320F28377S: ePWMxA and ePWMxB are controlled by different TZ

$
0
0
Nima, Yes, two DC events can accomplish ePWMxA and ePWMxB' one shot function. Is it possible to accomplish both "one shot" and "CBC"? Actually, customer's request on ePWM1A and ePWM1B are: 1) They are inverted; 2) They both are controlled by "one shot" and "CBC", like TZ1 for ePWM1A and ePWM1B "one shot", while TZ2 for their CBC; 3) During "one shot" or "CBC", ePWM1A is always shut down first, 2~2.5us (no later ePWM1B is shut down; In this case, it's not possible to use two events to accomplish. Do you have any other suggestion? We are thinking to do in this way: TZ setting as highest priority and nested enabled, it first shuts down ePWM1A, then interrupt responses and software delay 2~2.5us, then shuts down ePWM2A. Br, Jordan

Forum Post: RE: TMS320F28379D: FAPI "ByByte" functions

$
0
0
Hi Vamsi, Thanks! Best regards, Adria
Viewing all 217136 articles
Browse latest View live