Jump to content

Recommended Posts

Does anybody have any experiance writting interrupts for the 16f676. I am having problems with the interrupt routines not being able to run more than once. This happens even if the flag bit is cleared and the enable bits are set in the isr. Any suggestions? :D

Share this post


Link to post
Share on other sites

Gestalt,

 

Does anybody have any experiance writting interrupts for the 16f676. I am having problems with the interrupt routines not being able to run more than once. This happens even if the flag bit is cleared and the enable bits are set in the isr. Any suggestions?
Any particular source of interrupts causing the problem ?

 

Regards

Dave

Share this post


Link to post
Share on other sites
Does anybody have any experiance writting interrupts for the 16f676. I am having problems with the interrupt routines not being able to run more than once. This happens even if the flag bit is cleared and the enable bits are set in the isr. Any suggestions?

 

This PIC does not support nested interrupts of the same type. This means you should not set the enable bit for an interrupt while inside the interrupt handler for that particular interrupt.

 

What type of interrupt? For example, if you are using a interrupt on port change then you must also read the port before clearing the flag otherwise the interrupt flag is immediately set again.

Share this post


Link to post
Share on other sites

Wow, I actually found the source of my problems. I needed a pull down resistor on the INTE port. Works just fine now. Sorry about that. Can't believe I overlooked that!! Thanks for the input. :lol:

Share this post


Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...