View Single Post
  #5   Spotlight this post!  
Unread 23-02-2004, 22:45
Ryan Cumings's Avatar
Ryan Cumings Ryan Cumings is offline
Programmer and University Rejected
#0134 (Team Discovery)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2000
Location: Pembroke, NH
Posts: 65
Ryan Cumings is an unknown quantity at this point
Send a message via AIM to Ryan Cumings
Re: interrupts and putdata()

Quote:
Originally Posted by Jeff McCune
It's fine to call putdata more often than needed, but it would probably be a bad idea to call putdata from an interrupt handler because of timing issues. The interrupt pin would be disabled for as long as putdata would take to execute. I'd just set your PWM values and call putdata as you normally do.
You may want to just use the Generate PWM function which will update PWMs 13,14,15,16 without needing to call putdata.
__________________
Suddenly being rejected from college feels right during the build season. Now I am a mentor.