Thread: PWM inputs?
View Single Post
  #7   Spotlight this post!  
Unread 20-05-2005, 21:08
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: PWM inputs?

Quote:
Originally Posted by Mike Betts
Kevin, et al,

Use DIO3 and use both rising and falling edges as interrupts. Read Port B within the interrupt handler to determine which edge you are processing...

Mike
This is exactly how the RC decoded the modulated IR signals from 2004. The code in receiver.c would be a great starting point. Receiver.c can be found in edu_tracker.zip and frc_tracker.zip located here: http://kevin.org/frc/2004.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org