Error in using ePWM (TI F28027 LaunchPad) - Error evaluating 'InitFcn' callback of C280x/C2833x ePWM block (mask) 'untitled/ePWM'.
Show older comments
I want to measure speed of motor, for that purpose I'm generating interrupt everytime motor makes one revolution. Now to calculate speed, I need to count how many pulses have been produced in specific time period. For this purpose I planned to use timer using ePWM and generating interrupt at every 1 sec. However it seems I cannot generate time dealys more than 1.something mSec (it gave me error). So for test purposes I tried generating pulse of 1mSec period, however I ran into following problem. Please help me in fixing this error. I'm using MATLAB2018a with TI C2000 F28027F LaunchPad which as base frequency of 60Mhz. Here's how error looks

For reference purposes, I'm also attaching screenshots of ePWM configuration if that helps (yeah right, I have no clue what I'm doing wrong, pls help me!)



Also, here's the snapshot of interrupt settings for ePWM1 interrupt.

Let me know if you need any more information, moderators may remove information which they think is unnecessary and will rather complicate things than being helpful to future visitors. Thanks in advance.
Accepted Answer
More Answers (1)
ayad
on 21 Feb 2024
0 votes
I,m also have the same error
Categories
Find more on Deployment, Integration, and Supported Hardware in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!