|
Re: servo range of motion
Quote:
|
Originally Posted by tux
I see some sample code in the default code like this ...
Example: The following would generate a 40KHz PWM with a 50% duty cycle on the CCP2 pin (PWM OUT 1):
CCP2CON = 0x3C;
PR2 = 0xF9;
CCPR2L = 0x7F;
T2CON = 0;
T2CONbits.TMR2ON = 1;
Setup_PWM_Output_Type(USER_CCP,IFI_PWM,IFI_PWM,IFI _PWM);
but search as I might, I do not see anything telling what this is all about.
|
This is from the IR beacon code used in last year's game.
-Kevin
Edit: Actually, it's early beacon code circa November 2003.
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
Last edited by Kevin Watson : 07-05-2005 at 02:36.
|