View Single Post
Old 05-25-2009, 10:42 AM   #1398 (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,202 Times in 765 Posts
I'm doing the PI thing at 1kHz right now, but inside the interrupt that's being called at 16 kHz. I do a quick test of:

if (ISRCounter % 16 == 0)
do PI stuff...

if (ISRCounter % 32000 == 0)
do temperature stuff.


So, most of the time, I'm only doing some quick things related to current.
__________________
kits and boards
  Reply With Quote