View Single Post
Old 09-22-2014, 06:13 PM   #1140 (permalink)
MPaulHolmes
PaulH
 
MPaulHolmes's Avatar
 
Join Date: Feb 2008
Location: Maricopa, AZ (sort of. Actually outside of town)
Posts: 3,832

Michael's Electric Beetle - '71 Volkswagen Superbeetle 500000
Thanks: 1,368
Thanked 1,168 Times in 760 Posts
I tested the time the FOC code takes to execute in the interrupt. I have 3000 cycles available, and it took between 455 and 498. haha. Lots of room! And that was all with just C. I could probably get it down to like 490 with a few more optimizations, but why bother?! Microchip's code (with assembly language) took 1/3 of the 30MHz. Mine is 1/6. That's 2 times slower. am I missing something? LOL. I did whip out every trick in the book.
__________________
kits and boards
  Reply With Quote
The Following 2 Users Say Thank You to MPaulHolmes For This Useful Post:
e*clipse (09-23-2014), thingstodo (09-23-2014)