From: Jay P. <jay...@tr...> - 2008-03-09 04:59:24
|
This link http://www.nongnu.org/avr-libc/user-manual/ has documentation for the avr libc. There is a section describing how to declare and use ISR's including definitions of the different vectors. ----------------------------------------------------- Jay Phillips Tronix LLC - http://tronixllc.com -----Original Message----- From: gum...@li... [mailto:gum...@li...] On Behalf Of Justin Rajewski Sent: Saturday, March 08, 2008 8:32 PM To: gum...@li... Subject: Re: [Gumstix-users] Robostix origin? I was looking in the RC input files and found ISR( RCI_CAPT_vect ) { is this where the program goes when the capture happens? How does this work? I am used to something like void interrupt org 0x16 { //org sets the location in the ROM to 0x16 Thanks, Justin Justin Rajewski wrote: > > I an writing a code to interface with a ultrasonic sensor. The sensor > takes a short pulse input then returns a pulse whos length corresponds to > the time of the echo. First is it possible to use timer1 for PWM for > servos and capture the input? > > The capture creates an interrupt and then the code goes to 0x0016. How do > I set the origin of the interrupt function there? > > Thanks, > Justin > -- View this message in context: http://www.nabble.com/Robostix-origin--tp15915475p15923810.html Sent from the Gumstix mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ gumstix-users mailing list gum...@li... https://lists.sourceforge.net/lists/listinfo/gumstix-users |