View Single Post
  #5   Spotlight this post!  
Unread 12-04-2014, 16:34
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,065
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: On interrupts and analog sampling

Quote:
Originally Posted by adciv View Post
I want to eliminate the processor time used by needles polling of inputs that have not changed.
The only polling that should be going on in your code is in a control loop when your controller needs the feedback. As Mark mentioned in his post, the FPGA receives and processes the inputs independently of the CPU, and makes the results available on-demand from the CPU.

If you are considering running your controller code in an Interrupt Service Routine that is almost always a very bad idea.


Reply With Quote