• 0
Sign in to follow this  
Glen Grenier

How to configure a one shot push button

Question

Hi all,  brand new to the forum and just received my analog 2 discovery. Pretty impressed with it so far.  Actually I'm working on an interrupt driven spi interface to a SPI accelerometer.  All is working well,  but I would like to configure a button...say in the Static I/O tool, or the patterns tool whereby it can represent my interrupt in. 

I want to be able to trigger a single interrupt,  this will trigger my Interrupt Service Routine, my scope and logic analyzer and I will be able to observe the Single SPI transaction.

So,  restating the question :  "I just want to configure a pushbutton using a Analog discovery 2 instrument that will act like a button driving a one shot (Monostable Multivibrator in the ancient vernacular)  with a pulse length of about 20us.   I push the button say in the Static logic tool and 20 us later it returns to zero.  

Any quick ideas here...I could probably read a while and figure out a strategy but I'm looking for a quick fix.. Thanks.

Glen

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Hi, Glen

Check this, if it does not work for you let me know: ( also, instead of a button you can set a trigger for you SPI ... at protocol tab -> SPI )

 

Remember to hit Single for this purpose.

regards,

João Paulo N Bino

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this