Hi all
Could you maybe tell me why the following code (which compiles fine) will not rotate the servo.
Below is the code.
//1501Servo
#define _XTAL_FREQ 16000000
#include <xc.h>
#pragma config CLKOUTEN = OFF
#pragma config WDTE = OFF // or control in software - SWDTEN
#pragma config PWRTE = OFF
#pragma config CP = OFF
#pragma config BOREN = OFF
#pragma config MCLRE = OFF
#pragma config FOSC = INTOSC
#pragma config STVREN = ON
#pragma config LPBOR = OFF
#pragma config BORV = LO
#pragma...
PIC12f1501 used to turn a servo
Could you maybe tell me why the following code (which compiles fine) will not rotate the servo.
Below is the code.
//1501Servo
#define _XTAL_FREQ 16000000
#include <xc.h>
#pragma config CLKOUTEN = OFF
#pragma config WDTE = OFF // or control in software - SWDTEN
#pragma config PWRTE = OFF
#pragma config CP = OFF
#pragma config BOREN = OFF
#pragma config MCLRE = OFF
#pragma config FOSC = INTOSC
#pragma config STVREN = ON
#pragma config LPBOR = OFF
#pragma config BORV = LO
#pragma...
PIC12f1501 used to turn a servo