View Single Post
  #14   Spotlight this post!  
Unread 12-07-2005, 18:05
billbo911's Avatar
billbo911 billbo911 is online now
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,353
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: Measuring a Pulse Width

Quote:
Originally Posted by Kevin Watson
Mike is right and needs a +2.5vdc offset. A waveform generator will output a waveform 1/2 Vp-p (2.5v) above ground and 1/2 Vp-p below ground. The offset moves the entire waveform above ground.

-Kevin
Knowing the specifics of the signal generator makes a huge difference. I have used several different generators and they are not all created equal. I did make an assumption . Some generators have a selection for coupling, AC/DC, much as a scope has. In AC, there is no offset and the signal is averaged around 0 vdc. In DC, you set the amount of offset, + or - relative to 0 vdc. Your correct, when DC coupled, a +2.5vdc offset would be needed to shift a 5vp-p signal to run from 0vdc to 5vdc.

Thanks for the link to the IR receiver code. I have been wanting to learn more about CCP functionality and usage. This should go a long way in building my understanding. Now that I've learned a wee little bit about C, I can at least follow most of what is happening.