This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/LAUNCHXL-F28027F: questions about the instaspin interrupt time in the 28027F

Part Number: LAUNCHXL-F28027F
Other Parts Discussed in Thread: MOTORWARE

Tool/software: Code Composer Studio

Hi,everyone .

I use the instaspin proram in the launchpad-28027F and the DRV8305EVM.

I want to test the program which is in the mainISR code execution time in the lab05b.I put the toggle LED code in the start line and the end line in the mainISR code.

I use a oscilloscope to test the toggle LED time to test the mainISR code execution time, I use this method Successfully tested the execution time in launchpad-.28069M.

and then I want to test the  mainISR code execution time in  launchpad-28027F and the DRV8305EVM.

but I find that some problems in the  instaspin interrupt time in the 28027F code.

I configure the pwm freq  = 45k,  the pwm_per_isr_tick = 3, so the isr freq = 15k,

I put the code in the mainISR function.

 HAL_toggleLed(halHandle,(GPIO_Number_e)HAL_Gpio_LED2);

the ISR freq should be equal to the LED blind frequency.

but I use the oscilloscope test the led blind frequency is equal to 45k.

perhaps the pwm_per_isr_tick does not work.

and I use the original motorware18 program,so the code should be right. and the motor spin well.

Do you test the mainISR frequency in the 28027F program?

especially when the pwm_per_isr_tick is equal to 2 or 3.perhaps the pwm_per_isr_tick does not work.

I do not know whether it is the motorware program has a mainISR frequency bug.

Please give a hand ,thanks.

  • Sorry,please pardon me.

    I have find that the LED is GPIO0,and it is also the EPWM1A. I am so careless.

    and I use the GPIO12 having Successfully tested the execution time in 28027F.

    in lab05b the mainisr code execution time is:

    launchpad-28069M: ISR frequency = 15k   the  mainisr code execution time = 28us   the cpu using percent = 28/66.67 = 41.99%;

    launchpad-28027F:  ISR frequency = 15k   the  mainisr code execution time = 60us    the cpu using percent = 42.4us/66.67us = 63.6%;

    28027F is 60M ,28069 is 90M.

    28us*90/60 = 42us ~ 42.4us.

    for your information.

  • The code is executed in RAM on F28069, but it is executed in Flash on F28027, so that's a major execution time difference between two, not only from CPU frequency.