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.