Download Pulse Width Modulation

Transcript
Setup using CodeVision
This will position the servo motor:
while (1)
{
OCR1A = 1000;
delay_ms (5000);
OCR1A = 2000;
delay_ms (5000);
};
11/29/2010
//position the servo to the left – 0 degrees
//delay for 5 seconds
//position the servo to the right – 180 degrees
//delay for 5 seconds
71