Jump to content
43oh

Is this an error in the 2802x documentation?


Recommended Posts

Trying to figure out interrupts from GPIO pins. I think I found an error in one of the figs for the 2802x (tms320f28027.pdf Revised Jul 2012).

 

If I understand the function of XINT#CR and XINT#CTR where # is 1 to 3, the number should match to XINT#. In the figure, they do not.

 

Another question. Am I correct in understanding that only three GPIO pins at a time can cause interrupts? I want to attach 4 quadrature encoders as inputs. Will I have to poll these rather than use interrupts?

post-71-14264717206537_thumb.png

Link to post
Share on other sites

Pjkim,

 

Yes the diagram is incorrect. It should be XINT1CR/XINT1CTR...etc.

 

Yes, you are correct. Only 3 GPIOs at any given time can be used to create an interrupt, but you may select any 3 GPIOs. You may want to look at using the capture module. You could add a little external hardware to figure out the direction and then just use one of the quadrature signals piped into the capture to figure out rotations/velocity etc. There is only one channel though, so you'll probably need to use external interrupts and the capture.

 

Trey

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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.

×
×
  • Create New...