2008-01-08 21:51:20     How to know rising or falling when both PF_EDGE and PF_BOTH setted

Document created by Aaronwu Employee on Aug 4, 2013
Version 1Show Document
  • View in full screen mode

2008-01-08 21:51:20     How to know rising or falling when both PF_EDGE and PF_BOTH setted

Wei Jiang (CHINA)

Message: 49375   

 

Dear  all,

 

My CPU is Blackfin561. .

 

I used an PFx as input and enable both rising and falling edge, my question is how to know rising or falling in the interrupt service function?

 

The manual said: "If any edge occurred, pin reads as 1; otherwise, pin reads as 0."  So it seems that I can't read the Flag value registers to get the value..

 

Thanks,

 

           Wei , Jiang

QuoteReplyEditDelete

 

 

2008-01-09 00:41:55     Re: How to know rising or falling when both PF_EDGE and PF_BOTH setted

Mike Frysinger (UNITED STATES)

Message: 49378    as you've discovered, it is not possible to know on BF561 and BF53x when you have both edges enabled

 

on newer parts, the hardware will expose the information, but not on older parts

QuoteReplyEditDelete

 

 

2008-01-09 23:36:32     Re: How to know rising or falling when both PF_EDGE and PF_BOTH setted

Wei Jiang (CHINA)

Message: 49423   

 

Dear Mike,

 

         Thanks a lot..

Attachments

    Outcomes