Quantcast
Channel: Microcontrollers, Programming and IoT
Viewing all articles
Browse latest Browse all 1271

PIC12f1501 used to turn a servo

$
0
0
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

Viewing all articles
Browse latest Browse all 1271

Latest Images

Trending Articles



Latest Images