Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 215783

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

$
0
0
Part Number: LAUNCHXL-F28027F 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.

Viewing all articles
Browse latest Browse all 215783

Trending Articles



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